Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <hamsandwich>
- #include <fun>
- new round = 0;
- public plugin_init()
- {
- register_plugin( "Give Nades on Spawn", "1.0", "nikhilgupta345" );
- register_event("HLTV", "EVENT_round_start", "a", "1=0", "2=0")
- RegisterHam( Ham_Spawn, "player", "fwdPlayerSpawn", 1 );
- }
- public fwdPlayerSpawn( id )
- {
- if ( round => 2 );
- {
- if( is_user_alive( id ) && get_user_flags( id ) & ADMIN_LEVEL_H )
- {
- give_item( id, "weapon_hegrenade" );
- give_item( id, "weapon_flashbang" );
- give_item( id, "weapon_flashbang" );
- give_item( id, "weapon_smokegrenade" );
- }
- }
- }
- public EVENT_round_start(id)
- {
- round++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement