SHARE
TWEET

Untitled

a guest Jun 19th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. #include <fun>
  4.  
  5. new round = 0;
  6.  
  7. public plugin_init()  
  8. {
  9. register_plugin( "Give Nades on Spawn", "1.0", "nikhilgupta345" );
  10. register_event("HLTV", "EVENT_round_start", "a", "1=0", "2=0")
  11. RegisterHam( Ham_Spawn, "player", "fwdPlayerSpawn", 1 );
  12. }
  13.  
  14. public fwdPlayerSpawn( id )
  15. {
  16. if ( round => 2 );
  17. {
  18. if( is_user_alive( id ) && get_user_flags( id ) & ADMIN_LEVEL_H )  
  19. {
  20. give_item( id, "weapon_hegrenade" );
  21. give_item( id, "weapon_flashbang" );
  22. give_item( id, "weapon_flashbang" );
  23. give_item( id, "weapon_smokegrenade" );
  24. }
  25. }
  26. }  
  27.  
  28. public EVENT_round_start(id)
  29. {
  30. round++;
  31. }
RAW Paste Data
Top