Advertisement
Guest User

gsc

a guest
Jul 24th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. #using scripts\codescripts\struct;
  2.  
  3. #using scripts\shared\callbacks_shared;
  4. #using scripts\shared\system_shared;
  5.  
  6. #insert scripts\shared\shared.gsh;
  7.  
  8.  
  9. #using scripts\zm\_zm;
  10.  
  11. #using scripts\zm\_load;
  12. #using scripts\zm\_zm_weapons;
  13.  
  14.  
  15. //*****************************************************************************
  16. // MAIN
  17. //*****************************************************************************
  18.  
  19. function init()
  20. {
  21. currentMap = tolower(GetDvarString("mapname"));
  22. if(currentMap!="zm_zod"&&currentMap!="zm_tomb") {
  23. weapon = getWeapon("pistol_burst");
  24. level.start_weapon = (weapon);
  25. level.default_laststandpistol = GetWeapon("pistol_burst");
  26. level.default_solo_laststandpistol = GetWeapon("pistol_burst");
  27. level.laststandpistol = level.default_laststandpistol;
  28. }
  29.  
  30. callback::on_spawned( &on_player_spawned );
  31. }
  32.  
  33. function on_player_spawned()
  34. {
  35. currentMap = tolower(GetDvarString("mapname"));
  36. if(currentMap=="zm_prototype"||currentMap=="zm_asylum"||currentMap=="zm_sumpf"||currentMap=="zm_theater"||currentMap=="zm_cosmodrome"||currentMap=="zm_temple"||currentMap=="zm_moon")
  37. {
  38. players = GetPlayers();
  39. player_1 = players[0];
  40. player_2 = players[1];
  41. player_3 = players[2];
  42. player_4 = players[3];
  43. if ( self.playername == ""+player_1.playername+"" )
  44. {
  45. self TakeWeapon("pistol_m1911");
  46. weapon = getWeapon("pistol_burst");
  47. self GiveWeapon("pistol_burst");
  48. //self GiveMaxAmmo(weapon);
  49. self SwitchToWeapon("pistol_burst");
  50. }
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement