Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <cl_buy>
  3.  
  4. #define VERSION "0.0.1"
  5. #define PLUGIN "No Awp"
  6.  
  7. new g_bItemBought[33];
  8.  
  9. public plugin_init()
  10. {
  11. register_plugin(PLUGIN, VERSION, "ConnorMcLeod")
  12. register_event("HLTV", "EventRoundStart", "a", "1=0", "2=0")
  13. }
  14.  
  15. public client_connect ( id )
  16. g_bItemBought [ id ] = false;
  17.  
  18. public EventRoundStart()
  19. arrayset( g_bItemBought, false, 33 )
  20.  
  21.  
  22. public client_buy(id, iItem) {
  23.  
  24. if( iItem == CSW_SMOKEGRENADE)
  25. {
  26. if ( g_bItemBought [ id ] )
  27. {
  28. g_bItemBought[id] = true
  29. give_weapon(CSW_SMOKEGRENADE);
  30. //return PLUGIN_HANDLED
  31. }
  32. else
  33. {
  34. client_print ( id, print_chat, "[ZP] Max limit grenades per round!" )
  35. return PLUGIN_HANDLED
  36. }
  37. }
  38. return PLUGIN_CONTINUE
  39. }
  40. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  41. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
  42. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement