Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function new_start_weapon()
- {
- level flag::wait_till( "all_players_connected" );
- take_old_weapon = true; // to give the weapon in addition to starting weapon, set this to false
- players = GetPlayers();
- foreach( player in players )
- {
- old_gun = player GetCurrentWeapon();
- if( !take_old_weapon )
- player TakeWeapon( old_gun );
- gun = GetWeapon( "ray_gun" ); // Change to your weapon file console name
- player GiveWeapon( gun );
- player SwitchToWeapon( gun );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment