Raised This Month: $60 Target: $400
 15% 

Golden Deagle For vip ADMIN_LEVEL_H


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mohamed null
BANNED
Join Date: Sep 2020
Location: Algeria
Old Yesterday , 14:13   Golden Deagle For vip ADMIN_LEVEL_H
Reply With Quote #1

pls guys can someone edit this ADMIN_LEVEL_H for vip online say /gold say_team /gold
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>

#include <fakemeta>

#include <fun>

#include <hamsandwich>

#include <cstrike>

#include <amxmisc>



#define is_valid_player(%1) (1 <= %1 <= 32)

#define PLUGIN "Golden Deagle"

#define VERSION "2.0"

#define AUTHOR "null"





new DEAGLE_V_MODEL[64] = "models/v_goldendeagle.mdl"

new DEAGLE_P_MODEL[64] = "models/p_goldendeagle.mdl"



/* Pcvars */

new cvar_dmgmultipliercvar_goldbulletscvar_custommodelcvar_costcvar_bulletscvar_keepdeaglecvar_zoom_type;



new 
bool:g_HasDeagle[33]



new 
g_hasZoom33 ]

new 
g_ZoomDist33 ] = 0

new bullets33 ]



// Sprite

new m_spriteTexture



const Wep_deagle = ((1<<CSW_DEAGLE))





public 
plugin_init() {

register_plugin(PLUGINVERSIONAUTHOR)



// The Cvars //

cvar_dmgmultiplier register_cvar("goldendeagle_dmg_multiplier""15")

cvar_custommodel register_cvar("goldendeagle_custom_model""1")

cvar_goldbullets register_cvar("goldendeagle_gold_bullets""1")

cvar_cost register_cvar("goldendeagle_cost""16000")

cvar_bullets register_cvar("goldendeagle_bullets""200")

cvar_keepdeagle register_cvar("goldendeagle_keep""1")

cvar_zoom_type register_cvar("goldendeagle_zoom_type""1")





// Register The Buy Cmd

register_clcmd("say /gold""CmdBuyDeagle")

register_clcmd("say_team /gold""CmdBuyDeagle")

register_concmd("amx_gold""CmdGiveDeagle"ADMIN_BAN"<name>")



//Death Msg

register_event("DeathMsg""Death""a")



// Weapon Pick Up

register_event("WeapPickup","checkModel","b""1=19")



// Current Weapon Event

register_event("CurWeapon""make_tracer""be""1=1""3>0")



// Ham TakeDamage

RegisterHam(Ham_TakeDamage"player""fw_TakeDamage")

register_forwardFM_CmdStart"fw_CmdStart")

register_forward(FM_CmdStart"fwCmdStart")

RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1)

}
public 
plugin_precache()

{

precache_model(DEAGLE_V_MODEL)

precache_model(DEAGLE_P_MODEL)

m_spriteTexture precache_model("sprites/dot.spr")

precache_sound("weapons/zoom.wav")

}
public 
client_connect(id)

{

g_HasDeagle[id] = false

}
public 
client_disconnect(id)

{

g_HasDeagle[id] = false

}
public 
Death()

{

g_HasDeagle[read_data(2)] = false

}
public 
fwHamPlayerSpawnPost(id)

{

if( !
is_user_aliveid ) )

return;



if( 
get_pcvar_numcvar_keepdeagle ) )

{

if( 
user_has_weaponidCSW_DEAGLE ) )

{

g_HasDeagle[id] = true

}
else {

g_HasDeagle[id] = false;

}

}

else {

g_HasDeagle[id] = false;

}

}
public 
checkModel(id)

{

if ( !
g_HasDeagle[id] )

return 
PLUGIN_HANDLED



new szWeapID read_data(2)



if ( 
szWeapID == CSW_DEAGLE && g_HasDeagle[id] == true && get_pcvar_num(cvar_custommodel) )

{

set_pev(idpev_viewmodel2DEAGLE_V_MODEL)

set_pev(idpev_weaponmodel2DEAGLE_P_MODEL)

}

return 
PLUGIN_HANDLED

}
public 
fw_TakeDamage(victiminflictorattackerFloat:damage)

{

if ( 
is_valid_playerattacker ) && get_user_weapon(attacker) == CSW_DEAGLE && g_HasDeagle[attacker] )

{

SetHamParamFloat(4damage get_pcvar_floatcvar_dmgmultiplier ) )

}
public 
fw_CmdStartiduc_handleseed )

{

if( !
is_user_aliveid ) )

return 
PLUGIN_HANDLED



if( ( get_ucuc_handleUC_Buttons ) & IN_ATTACK2 ) && !( pevidpev_oldbuttons ) & IN_ATTACK2 ) )

{

new 
szClipszAmmo

new szWeapID get_user_weaponidszClipszAmmo )



if( 
szWeapID == CSW_DEAGLE && g_HasDeagle[id] && !g_hasZoomid ] )

{

golden_deagle_zoomidget_pcvar_numcvar_zoom_type ) )

}

else if ( 
szWeapID == CSW_DEAGLE && g_HasDeagle[id] && g_hasZoom[id])

{

g_hasZoomid ] = false

cs_set_user_zoom
idCS_RESET_ZOOM)

}
return 
PLUGIN_HANDLED

}
public 
make_tracer(id)

{

if (
get_pcvar_num(cvar_goldbullets))

{

new 
clip,ammo

new wpnid get_user_weapon(id,clip,ammo)

new 
pteam[16]



get_user_team(idpteam15)



if ((
bullets[id] > clip) && (wpnid == CSW_DEAGLE) && g_HasDeagle[id])

{

new 
vec1[3], vec2[3]

get_user_origin(idvec11// origin; your camera point.

get_user_origin(idvec24// termina; where your bullet goes (4 is cs-only)





//BEAMENTPOINTS

message_beginMSG_BROADCAST,SVC_TEMPENTITY)

write_byte (0//TE_BEAMENTPOINTS 0

write_coord(vec1[0])

write_coord(vec1[1])

write_coord(vec1[2])

write_coord(vec2[0])

write_coord(vec2[1])

write_coord(vec2[2])

write_shortm_spriteTexture )

write_byte(1// framestart

write_byte(5// framerate

write_byte(2// life

write_byte(10// width

write_byte(0// noise

write_byte255 // r, g, b

write_byte215 // r, g, b

write_byte// r, g, b

write_byte(200// brightness

write_byte(150// speed

message_end()

}



bullets[id] = clip

}



}



public 
CmdBuyDeagle(id)

{

if ( !
is_user_alive(id) )

{

client_print(id,print_chat"[AMXX] To buy golden Deagle You need to be alive!")

return 
PLUGIN_HANDLED

}



new 
money cs_get_user_money(id)



if (
money >= get_pcvar_num(cvar_cost) && get_pcvar_num(cvar_bullets))

{

cs_set_user_money(idmoney get_pcvar_num(cvar_cost))

give_item(id"weapon_deagle")

give_item(id"ammo_50ae")

cs_set_user_bpammo(idCSW_DEAGLEget_pcvar_num(cvar_bullets))

g_HasDeagle[id] = true

}



else

{

client_print(idprint_chat"[AMXX] You dont have enough money to buy Golden Deagle. Cost $%d "get_pcvar_num(cvar_cost))

}

return 
PLUGIN_HANDLED

}



public 
CmdGiveDeagle(id,level,cid)

{

if (!
cmd_access(id,level,cid,2))

return 
PLUGIN_HANDLED;

new 
arg[32];

read_argv(1,arg,31);



new 
player cmd_target(id,arg,7);

if (!
player)

return 
PLUGIN_HANDLED;



new 
name[32];

get_user_name(player,name,31);



give_item(player"weapon_deagle")

g_HasDeagle[player] = true



return PLUGIN_HANDLED

}



stock drop_prim(id)

{

new 
weapons[32], num

get_user_weapons
(idweaponsnum)

for (new 
0numi++) {

if (
Wep_deagle & (1<<weapons))

{

static 
wname[32]

get_weaponname(weaponswnamesizeof wname 1)

engclient_cmd(id"drop"wname)

}

}

}
stock golden_deagle_zoomidtype )

{

g_hasZoomid ] = true;

switch( 
type )

{

case 
0cs_set_user_zoomidCS_RESET_ZOOM)

case 
1cs_set_user_zoomidCS_SET_AUGSG552_ZOOM)

case 
2:

{

cs_set_user_zoomidCS_SET_FIRST_ZOOM)

emit_soundidCHAN_ITEM"weapons/zoom.wav"0.202.400100 )

}

case 
3:

{

cs_set_user_zoomidCS_SET_SECOND_ZOOM)

emit_soundidCHAN_ITEM"weapons/zoom.wav"0.202.400100 )

}

case 
4:

{

g_ZoomDistid ]++

g_hasZoomid ] = false;

switch( 
g_ZoomDistid ] )

{

case 
1cs_set_user_zoomidCS_SET_AUGSG552_ZOOM)

case 
2:

{

cs_set_user_zoomidCS_SET_FIRST_ZOOM)

emit_soundidCHAN_ITEM"weapons/zoom.wav"0.202.400100 )

}

case 
3:

{

cs_set_user_zoomidCS_SET_SECOND_ZOOM)

emit_soundidCHAN_ITEM"weapons/zoom.wav"0.202.400100 )

}

case 
4:

{

g_ZoomDistid ] = 0;

cs_set_user_zoomidCS_RESET_ZOOM)
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1033{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/ 
Mohamed null is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old Yesterday , 14:25   Re: Golden Deagle For vip ADMIN_LEVEL_H
Reply With Quote #2

Stop being a pain in the a**. This is the scripting help section. If you don't have a clue how to script, do not use it.
Stop posting 10 threads per day.
Stop posting 10 comments per thread.
Be patient and stop spamming if nobody replies.
Nobody here is getting paid to help you nor is obliged to.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Mohamed null
BANNED
Join Date: Sep 2020
Location: Algeria
Old Yesterday , 14:30   Re: Golden Deagle For vip ADMIN_LEVEL_H
Reply With Quote #3

-_- Ok
Mohamed null is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:23.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode