Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Kingslayer Kyle
- //Add the code below underneath zm_usermap::main(); in function main() in your mapname.gsc
- callback::on_spawned( &on_player_spawned );
- //Add the code underneath to the bottom of your mapname.gsc
- //Where it says "weapon name here", change this to the name of your weapons.
- function on_player_spawned()
- {
- self thread giveStartWeapons();
- }
- function giveStartWeapons()
- {
- wait 5;
- self thread player1();
- self thread player2();
- self thread player3();
- self thread player4();
- }
- function player1() //Dempsey
- {
- players = GetPlayers();
- player_1 = players[0];
- if ( self.playername == ""+player_1.playername+"" )
- {
- self func_giveWeapon("pistol_standard");
- }
- }
- function player2() //Nikolai
- {
- players = GetPlayers();
- player_2 = players[1];
- if ( self.playername == ""+player_2.playername+"" )
- {
- self func_giveWeapon("pistol_revolver38");
- }
- }
- function player3() //Richtofen
- {
- players = GetPlayers();
- player_3 = players[2];
- if ( self.playername == ""+player_3.playername+"" )
- {
- self func_giveWeapon("pistol_burst");
- }
- }
- function player4() //Takeo
- {
- players = GetPlayers();
- player_4 = players[3];
- if ( self.playername == ""+player_4.playername+"" )
- {
- self func_giveWeapon("pistol_fullauto");
- }
- }
- function func_giveWeapon(weapon)
- {
- self TakeWeapon(self GetCurrentWeapon());
- weapon = getWeapon(weapon);
- self GiveWeapon(weapon);
- self GiveMaxAmmo(weapon);
- self SwitchToWeapon(weapon);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement