Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <cl_buy>
- #define VERSION "0.0.1"
- #define PLUGIN "No Awp"
- new g_bItemBought[33];
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, "ConnorMcLeod")
- register_event("HLTV", "EventRoundStart", "a", "1=0", "2=0")
- }
- public client_connect ( id )
- g_bItemBought [ id ] = false;
- public EventRoundStart()
- arrayset( g_bItemBought, false, 33 )
- public client_buy(id, iItem) {
- if( iItem == CSW_SMOKEGRENADE)
- {
- if ( g_bItemBought [ id ] )
- {
- g_bItemBought[id] = true
- give_weapon(CSW_SMOKEGRENADE);
- //return PLUGIN_HANDLED
- }
- else
- {
- client_print ( id, print_chat, "[ZP] Max limit grenades per round!" )
- return PLUGIN_HANDLED
- }
- }
- return PLUGIN_CONTINUE
- }
- /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
- *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement