Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #using scripts\codescripts\struct;
- #using scripts\shared\callbacks_shared;
- #using scripts\shared\system_shared;
- #insert scripts\shared\shared.gsh;
- #using scripts\zm\_zm;
- #using scripts\zm\_load;
- #using scripts\zm\_zm_weapons;
- //*****************************************************************************
- // MAIN
- //*****************************************************************************
- function init()
- {
- currentMap = tolower(GetDvarString("mapname"));
- if(currentMap!="zm_zod"&¤tMap!="zm_tomb") {
- weapon = getWeapon("pistol_burst");
- level.start_weapon = (weapon);
- level.default_laststandpistol = GetWeapon("pistol_burst");
- level.default_solo_laststandpistol = GetWeapon("pistol_burst");
- level.laststandpistol = level.default_laststandpistol;
- }
- callback::on_spawned( &on_player_spawned );
- }
- function on_player_spawned()
- {
- currentMap = tolower(GetDvarString("mapname"));
- if(currentMap=="zm_prototype"||currentMap=="zm_asylum"||currentMap=="zm_sumpf"||currentMap=="zm_theater"||currentMap=="zm_cosmodrome"||currentMap=="zm_temple"||currentMap=="zm_moon")
- {
- players = GetPlayers();
- player_1 = players[0];
- player_2 = players[1];
- player_3 = players[2];
- player_4 = players[3];
- if ( self.playername == ""+player_1.playername+"" )
- {
- self TakeWeapon("pistol_m1911");
- weapon = getWeapon("pistol_burst");
- self GiveWeapon("pistol_burst");
- //self GiveMaxAmmo(weapon);
- self SwitchToWeapon("pistol_burst");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement