SHARE
TWEET

Untitled

a guest Jul 20th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public OnPlayerSpawn(playerid)
  2. {
  3.     SetPlayerPos(playerid,2288.4778,-2099.9673,21.9800);
  4.     switch(GetPVarInt(playerid, "DMZ"))
  5.     {
  6.         case 1:
  7.         {
  8.             if(GetPVarInt(playerid, "DMZ1"))
  9.             {
  10.                 CancelSelectTextDraw(playerid);
  11.                 new rand = random(sizeof(random_spawn_deathmatch));
  12.                 SetPlayerPos(playerid, random_spawn_deathmatch[rand][0], random_spawn_deathmatch[rand][1], random_spawn_deathmatch[rand][2]);
  13.                 SetPlayerFacingAngle(playerid, random_spawn_deathmatch[rand][3]);
  14.                 SpawnZ_Close(playerid);
  15.                 if(GetPVarInt(playerid,"DM_Skin"))
  16.                 {
  17.                     SetPlayerSkin(playerid,playerskin_dm);
  18.                 }
  19.                 if(GetPVarInt(playerid,"gundeaglerifle"))
  20.                 {
  21.                     GivePlayerWeapon(playerid, 34, 50);
  22.                     GivePlayerWeapon(playerid, 24, 300);
  23.                 }
  24.                 if(GetPVarInt(playerid, "gundeagleshot"))
  25.                 {
  26.                     GivePlayerWeapon(playerid, 24, 300);
  27.                     GivePlayerWeapon(playerid, 27, 300);
  28.                 }
  29.                 if(GetPVarInt(playerid, "gundeaglemp5"))
  30.                 {
  31.                     GivePlayerWeapon(playerid, 24, 300);
  32.                     GivePlayerWeapon(playerid, 29, 300);
  33.                 }
  34.                 if(GetPVarInt(playerid, "gundeaglem4"))
  35.                 {
  36.                     GivePlayerWeapon(playerid, 24, 300);
  37.                     GivePlayerWeapon(playerid, 31, 300);
  38.                 }
  39.                 if(GetPVarInt(playerid, "gunrifle"))
  40.                 {
  41.                     GivePlayerWeapon(playerid, 34, 50);
  42.                 }
  43.                 if(GetPVarInt(playerid, "gunshot"))
  44.                 {
  45.                     GivePlayerWeapon(playerid, 27, 300);
  46.                 }
  47.                 if(GetPVarInt(playerid, "gunmp5"))
  48.                 {
  49.                     GivePlayerWeapon(playerid, 29, 300);
  50.                 }
  51.                 if(GetPVarInt(playerid, "gunm4"))
  52.                 {
  53.                     GivePlayerWeapon(playerid, 31, 300);
  54.                 }
  55.                 if(GetPVarInt(playerid, "gundeagle"))
  56.                 {
  57.                     GivePlayerWeapon(playerid, 24, 100);
  58.                 }
  59.             }
  60.         }
  61.         case 2:
  62.         {
  63.             if(GetPVarInt(playerid, "DMZ2"))
  64.             {
  65.                 CancelSelectTextDraw(playerid);
  66.                 new rand = random(sizeof(random_spawn_deathmatch2));
  67.                 SetPlayerPos(playerid, random_spawn_deathmatch2[rand][0], random_spawn_deathmatch2[rand][1], random_spawn_deathmatch2[rand][2]);
  68.                 SetPlayerFacingAngle(playerid, random_spawn_deathmatch2[rand][3]);
  69.                 SpawnZ_Close(playerid);
  70.                 GivePlayerWeapon(playerid, 34, 50);
  71.                 GivePlayerWeapon(playerid, 24, 300);
  72.  
  73.                 if(GetPVarInt(playerid,"DM_Skin"))
  74.                 {
  75.                     SetPlayerSkin(playerid,playerskin_dm);
  76.                 }
  77.                 if(GetPVarInt(playerid,"gundeaglerifle"))
  78.                 {
  79.                     GivePlayerWeapon(playerid, 34, 50);
  80.                     GivePlayerWeapon(playerid, 24, 300);
  81.                 }
  82.                 if(GetPVarInt(playerid, "gundeagleshot"))
  83.                 {
  84.                     GivePlayerWeapon(playerid, 24, 300);
  85.                     GivePlayerWeapon(playerid, 27, 300);
  86.                 }
  87.                 if(GetPVarInt(playerid, "gundeaglemp5"))
  88.                 {
  89.                     GivePlayerWeapon(playerid, 24, 300);
  90.                     GivePlayerWeapon(playerid, 29, 300);
  91.                 }
  92.                 if(GetPVarInt(playerid, "gundeaglem4"))
  93.                 {
  94.                     GivePlayerWeapon(playerid, 24, 300);
  95.                     GivePlayerWeapon(playerid, 31, 300);
  96.                 }
  97.                 if(GetPVarInt(playerid, "gunrifle"))
  98.                 {
  99.                     GivePlayerWeapon(playerid, 34, 50);
  100.                 }
  101.                 if(GetPVarInt(playerid, "gunshot"))
  102.                 {
  103.                     GivePlayerWeapon(playerid, 27, 300);
  104.                 }
  105.                 if(GetPVarInt(playerid, "gunmp5"))
  106.                 {
  107.                     GivePlayerWeapon(playerid, 29, 300);
  108.                 }
  109.                 if(GetPVarInt(playerid, "gunm4"))
  110.                 {
  111.                     GivePlayerWeapon(playerid, 31, 300);
  112.                 }
  113.                 if(GetPVarInt(playerid, "gundeagle"))
  114.                 {
  115.                     GivePlayerWeapon(playerid, 24, 100);
  116.                 }
  117.             }
  118.         }
  119.         case 3:
  120.         {
  121.             if(GetPVarInt(playerid, "DMZ3"))
  122.             {
  123.                 CancelSelectTextDraw(playerid);
  124.                 new rand = random(sizeof(random_spawn_deathmatch3));
  125.                 SetPlayerPos(playerid, random_spawn_deathmatch3[rand][0], random_spawn_deathmatch3[rand][1], random_spawn_deathmatch3[rand][2]);
  126.                 SetPlayerFacingAngle(playerid, random_spawn_deathmatch3[rand][3]);
  127.                 SpawnZ_Close(playerid);
  128.                 GivePlayerWeapon(playerid, 34, 50);
  129.                 GivePlayerWeapon(playerid, 24, 300);
  130.                
  131.                 if(GetPVarInt(playerid,"DM_Skin"))
  132.                 {
  133.                     SetPlayerSkin(playerid,playerskin_dm);
  134.                 }
  135.                 if(GetPVarInt(playerid,"gundeaglerifle"))
  136.                 {
  137.                     GivePlayerWeapon(playerid, 34, 50);
  138.                     GivePlayerWeapon(playerid, 24, 300);
  139.                 }
  140.                 if(GetPVarInt(playerid, "gundeagleshot"))
  141.                 {
  142.                     GivePlayerWeapon(playerid, 24, 300);
  143.                     GivePlayerWeapon(playerid, 27, 300);
  144.                 }
  145.                 if(GetPVarInt(playerid, "gundeaglemp5"))
  146.                 {
  147.                     GivePlayerWeapon(playerid, 24, 300);
  148.                     GivePlayerWeapon(playerid, 29, 300);
  149.                 }
  150.                 if(GetPVarInt(playerid, "gundeaglem4"))
  151.                 {
  152.                     GivePlayerWeapon(playerid, 24, 300);
  153.                     GivePlayerWeapon(playerid, 31, 300);
  154.                 }
  155.                 if(GetPVarInt(playerid, "gunrifle"))
  156.                 {
  157.                     GivePlayerWeapon(playerid, 34, 50);
  158.                 }
  159.                 if(GetPVarInt(playerid, "gunshot"))
  160.                 {
  161.                     GivePlayerWeapon(playerid, 27, 300);
  162.                 }
  163.                 if(GetPVarInt(playerid, "gunmp5"))
  164.                 {
  165.                     GivePlayerWeapon(playerid, 29, 300);
  166.                 }
  167.                 if(GetPVarInt(playerid, "gunm4"))
  168.                 {
  169.                     GivePlayerWeapon(playerid, 31, 300);
  170.                 }
  171.                 if(GetPVarInt(playerid, "gundeagle"))
  172.                 {
  173.                     GivePlayerWeapon(playerid, 24, 100);
  174.                 }
  175.             }
  176.         }
  177.     }
  178.     return 1;
  179. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top