Advertisement
Guest User

DeathMatchSystem

a guest
Jul 5th, 2018
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 58.25 KB | None | 0 0
  1. /*==========================//
  2. System Death Matchs By Vizi10.
  3. Link: http://forum.sa-mp.com/showthread.php?p=4034262#post4034262
  4. Download Link: http://www.mediafire.com/file/18fgtu1jzm2ptqa/SytemDeathMatchs.rar
  5.  
  6.  
  7. Cmds:
  8. /DeathMatchs (/DM)
  9. /Exit (For Exit On Dm)
  10. /gexit (For Exit On GunGame)
  11. /lockdm (For Lock Player Cant Join To Dm)
  12. /unlockdm (Unlock Dm Player)
  13. /SpecDm (Show DeathMatchs)
  14. /getalltodm (/gatd) (Get All Players To DM)
  15.  
  16. //==========================*/
  17.  
  18. //==========================//
  19. //          Includes        //
  20. //==========================//
  21. #include <a_samp>
  22. #include <streamer>
  23. #include <zcmd>
  24. #include <sscanf2>
  25. #if defined FILTERSCRIPT
  26.  
  27. #else
  28. #endif
  29.  
  30. //==========================//
  31. //           Enums          //
  32. //==========================//
  33. //pragma: tabsize
  34. #pragma tabsize -1
  35.  
  36. //Enum: GunGame
  37. enum GunGame
  38. {
  39.    pKills
  40. }
  41. new pInfo[MAX_PLAYERS][GunGame];
  42.  
  43. //Enum: ServerData
  44. enum ServerData
  45. {
  46.     EnableDisableDms,
  47.     EnableDisableDms2
  48. };
  49. new ServerInfo[ServerData];
  50. //==========================//
  51. //           New            //
  52. //==========================//
  53. //New: RandomWeap
  54. new RandomWeap[16][2] =
  55. {
  56.    {24, 10000},
  57.    {25, 10000},
  58.    {26, 10000},
  59.    {27, 10000},
  60.    {28, 10000},
  61.    {29, 10000},
  62.    {30, 10000},
  63.    {31, 10000},
  64.    {38, 10000},
  65.    {32, 10000},
  66.    {33, 10000},
  67.    {34, 10000},
  68.    {35, 10000},
  69.    {36, 10000},
  70.    {37, 10000},
  71.    {39, 10000}
  72. };
  73.  
  74. //New: RandomSpawnsInGunGameDm
  75. new Float:RandomSpawnsInGunGameDm[][] =
  76. {
  77.     {-1354.7908,1585.1763,1058.4766},
  78.     {-1381.9771,1561.9103,1055.5050},
  79.     {-1420.6321,1625.2117,1052.5313},
  80.     {-1431.4127,1598.6841,1054.2686},
  81.     {-1431.1558,1580.6210,1055.7191},
  82.     {-1452.3339,1573.5485,1057.8127},
  83.     {-1485.7253,1575.0419,1052.5313},
  84.     {-1486.9830,1642.5344,1060.6719},
  85.     {-1453.9332,1636.3170,1056.4219},
  86.     {-1398.9889,1646.1781,1052.5313},
  87.     {-1360.6580,1634.5712,1053.6692},
  88.     {-1370.5743,1627.5968,1055.4745},
  89.     {-1384.6478,1603.6626,1053.7109},
  90.     {-1408.2847,1588.2765,1053.0304},
  91.     {-1430.0840,1614.2112,1054.8364},
  92.     {-1467.7192,1589.5028,1052.7500},
  93.     {-1480.4510,1563.9604,1056.6328},
  94.     {-1464.8231,1555.9323,1052.5313},
  95.     {-1373.1975,1561.3285,1053.3608},
  96.     {-1422.9347,1567.7584,1052.5313}
  97. };
  98.  
  99. //New: RandomSpawnsInSnDm || RandomSpawnsInSn2Dm
  100. new Float:RandomSpawnsInSnDm[][] =
  101. {
  102.     {2235.3435,-1194.0099,1029.8043},
  103.     {2239.3425,-1192.5244,1033.7969},
  104.     {2236.0479,-1169.2697,1029.8043},
  105.     {2235.5190,-1158.5052,1029.7969},
  106.     {2215.2795,-1147.0376,1025.7969},
  107.     {2226.4348,-1183.1661,1029.7969},
  108.     {2189.7717,-1180.2969,1033.7896},
  109.     {2193.5444,-1147.3654,1033.7969},
  110.     {2189.7717,-1180.2969,1033.7896}
  111. };
  112. new Float:RandomSpawnsInSn2Dm[][] =
  113. {
  114.     {2323.0232,1083.4110,85.9312},
  115.     {2328.7368,1100.8381,79.5547},
  116.     {2210.2458,1137.6730,79.5547},
  117.     {2273.7837,1167.8197,79.5547},
  118.     {2258.5093,1064.2500,78.4569},
  119.     {2278.5840,1020.9462,79.5547},
  120.     {2319.2273,1112.5077,79.5546},
  121.     {2222.7090,1142.3660,79.5547},
  122.     {2195.2842,1003.7253,85.9375}
  123. };
  124.  
  125. //New: RandomSpawnsInWarDm
  126. new Float:RandomSpawnsInWarDm[][] =
  127. {
  128.     {2131.5806,-2259.3589,14.7744},
  129.     {2131.0081,-2284.1321,20.6643},
  130.     {2128.7102,-2266.1921,20.6704},
  131.     {2152.5974,-2276.9421,13.3047},
  132.     {2156.3250,-2248.1482,17.7497},
  133.     {2179.0366,-2249.7302,20.6746},
  134.     {2122.2422,-2269.2773,20.6719}
  135. };
  136.  
  137. //New: RandomSpawnsInDuelDm
  138. new Float:RandomSpawnsInDuelDm[][] =
  139. {
  140.     {-1423.7682,932.3826,1036.4064},
  141.     {-1443.3640,934.1019,1036.5010},
  142.     {-1484.4613,946.3587,1036.7660}
  143. };
  144.  
  145. //New: RandomSpawnsInRunDm
  146. new Float:RandomSpawnsInRunDm[][] =
  147. {
  148.     {-1395.8491,1267.9581,1039.8672},
  149.     {-1396.6462,1223.7681,1039.8672}
  150. };
  151.  
  152. //New: RandomSpawnsInFireDm
  153. new Float:RandomSpawnsInFireDm[][] =
  154. {
  155.     {-2675.0603,1429.3135,906.4609},
  156.     {-2678.2129,1422.7589,906.4609},
  157.     {-2673.2830,1410.2015,907.5703},
  158.     {-2645.8623,1400.0275,912.4063},
  159.     {-2674.8840,1400.1648,912.4063},
  160.     {-2673.6533,1428.7395,918.3516},
  161.     {-2660.8904,1414.9819,922.1953},
  162.     {-2673.2830,1410.2015,907.5703},
  163.     {-2665.7700,1403.2848,921.7340},
  164.     {-2675.0208,1410.1836,912.7240},
  165.     {-2658.7056,1410.3599,910.1703}
  166. };
  167.  
  168. //New: RandomSpawnsInMiniDm
  169. new Float:RandomSpawnsInMiniDm[][] =
  170. {
  171.     {349.9549,178.6237,1014.1875},
  172.     {337.1629,153.0374,1014.1875},
  173.     {357.2010,157.2562,1025.7891},
  174.     {351.9025,175.2921,1025.7891},
  175.     {366.5834,158.8154,1008.3828},
  176.     {352.0084,216.9990,1008.3828}
  177. };
  178.  
  179. //New: RandomSpawnsInRPGDm
  180. new Float:RandomSpawnsInRPGDm[][] =
  181. {
  182.     {301.7407,182.1317,1007.1719},
  183.     {242.2697,139.3974,1003.0234},
  184.     {244.8843,184.2928,1008.1719},
  185.     {230.1473,177.5007,1003.0313},
  186.     {222.2559,175.4764,1003.0267},
  187.     {189.8189,180.5645,1003.0234},
  188.     {217.4540,145.4677,1003.0234}
  189. };
  190.  
  191. //New: RandomSkinGunGame
  192. new RandomSkinGunGame[] =
  193. {
  194.   73, 115, 123,
  195.   171, 28, 20,
  196.   101, 107, 108
  197. };
  198.  
  199. //New: TextDraws
  200. new Text:Textdraw0;
  201. new Text:Textdraw1;
  202. new Text:Textdraw2;
  203. new Text:Textdraw3;
  204. new Text:Textdraw4;
  205. new Text:Textdraw5;
  206. new Text:Textdraw6;
  207. new Text:Textdraw7;
  208. new Text:Textdraw8;
  209. new Text:Textdraw9;
  210. new Text:Textdraw10;
  211. new Text:TextExitDm;
  212. new Text:TextExitDm2;
  213.  
  214. //New: InDM || InGG
  215. new InDM[MAX_PLAYERS];
  216. new InGG[MAX_PLAYERS]; //In GunGame
  217.  
  218. //New: TimerMDM || TimerRDM
  219. new TimerMDM[MAX_PLAYERS];
  220. new LockDM[MAX_PLAYERS];
  221.  
  222. //New: Streak
  223. new Skills[MAX_PLAYERS];
  224.  
  225. //=========================//
  226. //           defines        //
  227. //==========================//
  228. #define Dialog_Join 1
  229. #define Dialog_Spec 2
  230. #define Dialog_GetAll 3
  231. #define SOUND_GO 1057
  232.  
  233. //==========================//
  234. //         Publics          //
  235. //==========================//
  236. public OnFilterScriptInit()
  237. {
  238.         print("________________________________________________");
  239.         print("|         System DeathMatchs Loaded!           |");
  240.         print("|                   By Vizi10!                 |");
  241.         print("________________________________________________");
  242.        
  243.         SetTimerEx( "StartMinigunRPGDm" , 600000 , true , "ii" , 1 ); //600000Ms = 10Minute To Enable DM Minigun & DM RPG With Repating
  244.         DisableInteriorEnterExits();
  245.         UsePlayerPedAnims();
  246.         MapRunnisStadium();
  247.         MapGunGame();
  248.         ServerInfo[EnableDisableDms2] = 1;
  249.        
  250.         //Create the textdraws:
  251.         Textdraw1 = TextDrawCreate(620.000000, 112.000000, "_");
  252.         TextDrawBackgroundColor(Textdraw1, 255);
  253.         TextDrawFont(Textdraw1, 1);
  254.         TextDrawLetterSize(Textdraw1, 0.500000, 6.499997);
  255.         TextDrawColor(Textdraw1, -1);
  256.         TextDrawSetOutline(Textdraw1, 0);
  257.         TextDrawSetProportional(Textdraw1, 1);
  258.         TextDrawSetShadow(Textdraw1, 1);
  259.         TextDrawUseBox(Textdraw1, 1);
  260.         TextDrawBoxColor(Textdraw1, 170);
  261.         TextDrawTextSize(Textdraw1, 490.000000, 0.000000);
  262.  
  263.  
  264.                 Textdraw2 = TextDrawCreate(500.000000, 123.000000, "GunGame");
  265.                 TextDrawBackgroundColor(Textdraw2, 255);
  266.                 TextDrawFont(Textdraw2, 1);
  267.                 TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
  268.                 TextDrawColor(Textdraw2, 0xFFFF00AA);
  269.                 TextDrawSetOutline(Textdraw2, 0);
  270.                 TextDrawSetProportional(Textdraw2, 1);
  271.                 TextDrawSetShadow(Textdraw2, 1);
  272.  
  273.                 Textdraw3 = TextDrawCreate(501.000000, 143.000000, "~G~Kills:    ~w~%d");
  274.                 TextDrawBackgroundColor(Textdraw3, 255);
  275.                 TextDrawFont(Textdraw3, 1);
  276.                 TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
  277.                 TextDrawColor(Textdraw3, -1);
  278.                 TextDrawSetOutline(Textdraw3, 0);
  279.                 TextDrawSetProportional(Textdraw3, 1);
  280.                 TextDrawSetShadow(Textdraw3, 1);
  281.  
  282.                 Textdraw4 = TextDrawCreate(500.000000, 123.000000, "Sniper DM");
  283.                 TextDrawBackgroundColor(Textdraw4, 255);
  284.                 TextDrawFont(Textdraw4, 1);
  285.                 TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
  286.                 TextDrawColor(Textdraw4, 0xFFFF00AA);
  287.                 TextDrawSetOutline(Textdraw4, 0);
  288.                 TextDrawSetProportional(Textdraw4, 1);
  289.                 TextDrawSetShadow(Textdraw4, 1);
  290.                
  291.                 Textdraw5 = TextDrawCreate(500.000000, 123.000000, "War House");
  292.                 TextDrawBackgroundColor(Textdraw5, 255);
  293.                 TextDrawFont(Textdraw5, 1);
  294.                 TextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
  295.                 TextDrawColor(Textdraw5, 0xFFFF00AA);
  296.                 TextDrawSetOutline(Textdraw5, 0);
  297.                 TextDrawSetProportional(Textdraw5, 1);
  298.                 TextDrawSetShadow(Textdraw5, 1);
  299.                
  300.                 Textdraw6 = TextDrawCreate(500.000000, 123.000000, "Stadium Duel");
  301.                 TextDrawBackgroundColor(Textdraw6, 255);
  302.                 TextDrawFont(Textdraw6, 1);
  303.                 TextDrawLetterSize(Textdraw6, 0.500000, 1.000000);
  304.                 TextDrawColor(Textdraw6, 0xFFFF00AA);
  305.                 TextDrawSetOutline(Textdraw6, 0);
  306.                 TextDrawSetProportional(Textdraw6, 1);
  307.                 TextDrawSetShadow(Textdraw6, 1);
  308.                
  309.                 Textdraw7 = TextDrawCreate(500.000000, 123.000000, "Runnis Stadium");
  310.                 TextDrawBackgroundColor(Textdraw7, 255);
  311.                 TextDrawFont(Textdraw7, 1);
  312.                 TextDrawLetterSize(Textdraw7, 0.500000, 1.000000);
  313.                 TextDrawColor(Textdraw7, 0xFFFF00AA);
  314.                 TextDrawSetOutline(Textdraw7, 0);
  315.                 TextDrawSetProportional(Textdraw7, 1);
  316.                 TextDrawSetShadow(Textdraw7, 1);
  317.                
  318.                 Textdraw8 = TextDrawCreate(500.000000, 123.000000, "Fire DM");
  319.                 TextDrawBackgroundColor(Textdraw8, 255);
  320.                 TextDrawFont(Textdraw8, 1);
  321.                 TextDrawLetterSize(Textdraw8, 0.500000, 1.000000);
  322.                 TextDrawColor(Textdraw8, 0xFFFF00AA);
  323.                 TextDrawSetOutline(Textdraw8, 0);
  324.                 TextDrawSetProportional(Textdraw8, 1);
  325.                 TextDrawSetShadow(Textdraw8, 1);
  326.                
  327.                 Textdraw9 = TextDrawCreate(500.000000, 123.000000, "Minigun DM");
  328.                 TextDrawBackgroundColor(Textdraw9, 255);
  329.                 TextDrawFont(Textdraw9, 1);
  330.                 TextDrawLetterSize(Textdraw9, 0.500000, 1.000000);
  331.                 TextDrawColor(Textdraw9, 0xFFFF00AA);
  332.                 TextDrawSetOutline(Textdraw9, 0);
  333.                 TextDrawSetProportional(Textdraw9, 1);
  334.                 TextDrawSetShadow(Textdraw9, 1);
  335.                
  336.                 Textdraw10 = TextDrawCreate(500.000000, 123.000000, "RPG DM");
  337.                 TextDrawBackgroundColor(Textdraw10, 255);
  338.                 TextDrawFont(Textdraw10, 1);
  339.                 TextDrawLetterSize(Textdraw10, 0.500000, 1.000000);
  340.                 TextDrawColor(Textdraw10, 0xFFFF00AA);
  341.                 TextDrawSetOutline(Textdraw10, 0);
  342.                 TextDrawSetProportional(Textdraw10, 1);
  343.                 TextDrawSetShadow(Textdraw10, 1);
  344.                
  345.                 TextExitDm = TextDrawCreate(7.000000, 428.000000, "Use ~r~/exit~w~ For Exit On Dm! ~y~- ~w~Use ~r~.chat~w~ For DM Chat!");
  346.                 TextDrawBackgroundColor(TextExitDm, 255);
  347.                 TextDrawFont(TextExitDm, 1);
  348.                 TextDrawLetterSize(TextExitDm, 0.410000, 1.500000);
  349.                 TextDrawColor(TextExitDm, 0xFFFFFFAA);
  350.                 TextDrawSetOutline(TextExitDm, 1);
  351.                 TextDrawSetProportional(TextExitDm, 1);
  352.                
  353.                 TextExitDm2 = TextDrawCreate(7.000000, 428.000000, "Use ~r~/gexit~w~ For Exit On GunGame! ~y~- ~w~Use ~r~.chat~w~ For DM Chat!");
  354.                 TextDrawBackgroundColor(TextExitDm2, 255);
  355.                 TextDrawFont(TextExitDm2, 1);
  356.                 TextDrawLetterSize(TextExitDm2, 0.410000, 1.500000);
  357.                 TextDrawColor(TextExitDm2, 0xFFFFFFAA);
  358.                 TextDrawSetOutline(TextExitDm2, 1);
  359.                 TextDrawSetProportional(TextExitDm2, 1);
  360.                 return 1;
  361. }
  362. //OnPlayerConnect
  363. public OnPlayerConnect(playerid)
  364. {
  365.     InDM[playerid] = 0;
  366.     InGG[playerid] = 0;
  367.     LockDM[playerid] = 1;
  368.     return 1;
  369. }
  370.  
  371. public OnPlayerDisconnect(playerid, reason)
  372. {
  373.     HideAllTextDraws(playerid);
  374.     return 1;
  375. }
  376.  
  377. public OnPlayerDeath(playerid, killerid, reason)
  378. {
  379.     if(InGG[playerid]  == 1)
  380.     {
  381.         Skills[playerid] = 0;
  382.         pInfo[playerid][pKills] = 0;
  383.  
  384.         GameTextForPlayer(playerid, "~>~~r~Wasted~<~", 4000, 0);
  385.  
  386.         HideAllTextDraws(playerid);
  387.     }
  388.     if(InDM[playerid] == 1)
  389.     {
  390.         Skills[playerid] = 0;
  391.         pInfo[playerid][pKills] = 0;
  392.  
  393.  
  394.         GameTextForPlayer(playerid, "~>~~r~Wasted~<~", 4000, 0);
  395.  
  396.         HideAllTextDraws(playerid);
  397.     }
  398.     InDM[playerid] = 0;
  399.     InGG[playerid] = 0;
  400.     Skills[playerid] = 0;
  401.     pInfo[playerid][pKills] = 0;
  402.    
  403.     if(InDM[killerid] == 1)
  404.     {
  405.     pInfo[killerid][pKills]++;
  406.    
  407.    
  408.     new msg[100];
  409.     new ammount = random(10000);
  410.     GivePlayerMoney(killerid,ammount);
  411.     format(msg, sizeof(msg), "You received %d money for killing a %s.",ammount, ReturnPlayerName(playerid));
  412.     SendClientMessage(killerid,0xFFFF00AA,msg);
  413.     }
  414.    
  415.     if(InGG[killerid] == 1)
  416.     {
  417.    
  418.     new msg[150];
  419.     new ammount = random(10000);
  420.     GivePlayerMoney(killerid,ammount);
  421.     format(msg, sizeof(msg), "You received %d money for killing a %s.",ammount, ReturnPlayerName(playerid));
  422.     SendClientMessage(killerid,0xFFFF00AA,msg);
  423.    
  424.     pInfo[killerid][pKills]++;
  425.     new rando = random(sizeof(RandomWeap));
  426.     ResetPlayerWeapons(killerid),
  427.     GivePlayerWeapon(killerid,RandomWeap[rando][0],RandomWeap[rando][1]);
  428.     SendClientMessage(killerid,0xF5A9A9AA,"[GunGame] {D0F5A9}Your Gun Changed To The Next!");
  429.     }
  430.    
  431. if(InDM[killerid] || InGG[killerid] == 1)
  432.     {
  433.                 if(killerid != INVALID_PLAYER_ID)
  434.                 {
  435.                 new KillerName[MAX_PLAYER_NAME];
  436.                 GetPlayerName(killerid, KillerName, sizeof(KillerName));
  437.                 new text[128];
  438.                 Skills[killerid] ++;
  439.                 if(Skills[killerid] == 3)
  440.                 {
  441.                         format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 3 Player In Dm!", ReturnPlayerName(killerid));
  442.                         SendClientMessageToAll(0xF27ED2FF,text);
  443.                 }
  444.                 if(Skills[killerid] == 5)
  445.                 {
  446.                         format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 5 Player In Dm!", ReturnPlayerName(killerid));
  447.                         SendClientMessageToAll(0xF27ED2FF,text);
  448.                         SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 2500 money for 5 Kills!");
  449.                         GivePlayerMoney(killerid, 2500);
  450.  
  451.  
  452.                 }
  453.                 if(Skills[killerid] == 10)
  454.                 {
  455.                         format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 10 Player In Dm!", ReturnPlayerName(killerid));
  456.                         SendClientMessageToAll(0xF27ED2FF,text);
  457.                         SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 5500 money for 10 Kills!");
  458.                         GivePlayerMoney(killerid, 5500);
  459.  
  460.  
  461.                 }
  462.                 if(Skills[killerid] == 15)
  463.                 {
  464.                         format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 15 Player In Dm!", ReturnPlayerName(killerid));
  465.                         SendClientMessageToAll(0xF27ED2FF,text);
  466.                         SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 6500 money for 15 Kills!");
  467.                         GivePlayerMoney(killerid, 6500);
  468.  
  469.                 }
  470.                 if(Skills[killerid] == 20)
  471.                 {
  472.                         format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 20 Player In Dm!", ReturnPlayerName(killerid));
  473.                         SendClientMessageToAll(0xF27ED2FF,text);
  474.                         SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 9250 money for 20 Kills!");
  475.                         GivePlayerMoney(killerid, 9250);
  476.                 }
  477.                 if(Skills[killerid] == 25)
  478.                 {
  479.                         format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 25 Player In Dm!", ReturnPlayerName(killerid));
  480.                         SendClientMessageToAll(0xF27ED2FF,text);
  481.                         SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 9505 money for 25 Kills!");
  482.                         GivePlayerMoney(killerid, 9505);
  483.                 }
  484.                 if(Skills[killerid] == 30)
  485.                 {
  486.                         format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 30 Player In Dm!", ReturnPlayerName(killerid));
  487.                         SendClientMessageToAll(0xF27ED2FF,text);
  488.                         SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 10000 money for 30 Kills!");
  489.                         GivePlayerMoney(killerid, 10000);
  490.                 }
  491.                 if(Skills[killerid] == 40)
  492.                 {
  493.                         format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 40 Player In Dm!", ReturnPlayerName(killerid));
  494.                         SendClientMessageToAll(0xF27ED2FF,text);
  495.                         SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 10050 money for 40 Kills!");
  496.                         GivePlayerMoney(killerid, 10250);
  497.                 }
  498.                 if(Skills[killerid] == 50)
  499.                 {
  500.                         format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 50 Player In Dm!", ReturnPlayerName(killerid));
  501.                         SendClientMessageToAll(0xF27ED2FF,text);
  502.                         SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 12650 money for 50 Kills!");
  503.                         GivePlayerMoney(killerid, 12650);
  504.                 }
  505.                 if(Skills[killerid] == 60)
  506.                 {
  507.                         format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 60 Player In Dm!", ReturnPlayerName(killerid));
  508.                         SendClientMessageToAll(0xF27ED2FF,text);
  509.                         SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 10950 money for 60 Kills!");
  510.                         GivePlayerMoney(killerid, 10950);
  511.                 }
  512.                 if(Skills[killerid] == 100)
  513.                 {
  514.                         format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 100 Player In Dm!", ReturnPlayerName(killerid));
  515.                         SendClientMessageToAll(0xF27ED2FF,text);
  516.                         SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 15000 money for 100 Kills!");
  517.                         GivePlayerMoney(killerid, 15000);
  518.                 }
  519.  }
  520.  }
  521.  
  522.     return 1;
  523. }
  524. public OnPlayerUpdate(playerid)
  525. {
  526.         new string[127];
  527.         format(string,sizeof(string),"~G~Kills:    ~w~%d",pInfo[playerid][pKills]);
  528.         TextDrawSetString(Textdraw3,string);
  529.         return 1;
  530. }
  531.  
  532. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  533. {
  534. if(dialogid == Dialog_Join)
  535.     {
  536.         if(response)
  537.         {
  538.             if(listitem == 0)
  539.             {
  540.             if(InDM[playerid] || InGG[playerid]== 1) return SendClientMessage(playerid,0xF5A9A9AA,"You are currently in the DM!");
  541.             if(ServerInfo[EnableDisableDms2] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"All DeathMatchs Disabled By Admin!");
  542.             if(LockDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"You can not open to this DM because your manager has restricted you from DM!");
  543.  
  544.             new string[99];
  545.             format(string, sizeof(string), "*{FF0000}%s {FFFFFF}Joined To The GunGame!",ReturnPlayerName(playerid));
  546.             SendClientMessageToAll(0xFFFFFFFF,string);
  547.            
  548.             InGG[playerid] = 1;
  549.             InDM[playerid] = 1;
  550.             new rando = random(sizeof(RandomWeap));
  551.             ResetPlayerWeapons(playerid);
  552.             GivePlayerWeapon(playerid,RandomWeap[rando][0],RandomWeap[rando][1]);
  553.             SetPlayerArmour(playerid, 100);
  554.             SetPlayerHealth(playerid, 100);
  555.             SetPlayerColor(playerid, 0xFFFFFFAA);
  556.  
  557.             new rand = random(sizeof(RandomSkinGunGame));
  558.             SetPlayerSkin(playerid,RandomSkinGunGame[rand]);
  559.  
  560.             new Random = random(sizeof(RandomSpawnsInGunGameDm));
  561.             SetPlayerPos(playerid, RandomSpawnsInGunGameDm[Random][0], RandomSpawnsInGunGameDm[Random][1], RandomSpawnsInGunGameDm[Random][2]);
  562.             SetPlayerInterior(playerid, 14);
  563.             TogglePlayerControllable(playerid, false);
  564.             SetTimerEx("EndTextExitDm2", 5000, true, "ii", playerid, 1);
  565.             SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
  566.            
  567.             TextDrawShowForPlayer(playerid,Textdraw0);
  568.             TextDrawShowForPlayer(playerid,Textdraw1);
  569.             TextDrawShowForPlayer(playerid,Textdraw2);
  570.             TextDrawShowForPlayer(playerid,Textdraw3);
  571.             TextDrawShowForPlayer(playerid,TextExitDm2);
  572.             }            
  573.             if(listitem == 1)
  574.             {
  575.             if(InDM[playerid] == 1) return SendClientMessage(playerid,0xF5A9A9AA,"You are currently in the DM!");
  576.             if(ServerInfo[EnableDisableDms2] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"All DeathMatchs Disabled By Admin!");
  577.             if(LockDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"You can not open to this DM because your manager has restricted you from DM!");
  578.             new string[205];
  579.             format(string,sizeof(string),"*{FF0000}%s{FFFFFF} Joined To The SniperDm!",ReturnPlayerName(playerid));
  580.             SendClientMessageToAll(-1,string);
  581.             InDM[playerid] = 1;
  582.             ResetPlayerWeapons(playerid);
  583.             GivePlayerWeapon(playerid,34,750);
  584.             GivePlayerWeapon(playerid,4,1);
  585.             SetPlayerArmour(playerid, 100);
  586.             SetPlayerHealth(playerid, 100);
  587.             SetPlayerColor(playerid, 0xFFFFFFAA);
  588.             SetPlayerSkin(playerid,299);
  589.  
  590.             TogglePlayerControllable(playerid, false);
  591.             new Random = random(sizeof(RandomSpawnsInSnDm));
  592.             SetPlayerPos(playerid, RandomSpawnsInSnDm[Random][0], RandomSpawnsInSnDm[Random][1], RandomSpawnsInSnDm[Random][2]);
  593.             SetPlayerInterior(playerid, 15);
  594.  
  595.             SetTimerEx("EndTextExitDm", 5000, true, "ii", playerid, 1);
  596.             SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
  597.  
  598.             TextDrawShowForPlayer(playerid,Textdraw0);
  599.             TextDrawShowForPlayer(playerid,Textdraw1);
  600.             TextDrawShowForPlayer(playerid,Textdraw4);
  601.             TextDrawShowForPlayer(playerid,Textdraw3);
  602.             TextDrawShowForPlayer(playerid,TextExitDm);
  603.             }
  604.             if(listitem == 2)
  605.             {
  606.             new string[205];
  607.             format(string,sizeof(string),"*{FF0000}%s{FFFFFF} Joined To The SniperDm(2)!",ReturnPlayerName(playerid));
  608.             SendClientMessageToAll(-1,string);
  609.  
  610.             InDM[playerid] = 1;
  611.             ResetPlayerWeapons(playerid);
  612.             GivePlayerWeapon(playerid,34, 950);
  613.             GivePlayerWeapon(playerid,4, 1);
  614.             SetPlayerArmour(playerid, 100);
  615.             SetPlayerHealth(playerid, 100);
  616.             SetPlayerColor(playerid, 0xFFFFFFAA);
  617.             SetPlayerSkin(playerid, 299);
  618.  
  619.             TogglePlayerControllable(playerid, false);
  620.             new Random = random(sizeof(RandomSpawnsInSn2Dm));
  621.             SetPlayerPos(playerid, RandomSpawnsInSn2Dm[Random][0], RandomSpawnsInSn2Dm[Random][1], RandomSpawnsInSn2Dm[Random][2]);
  622.             SetPlayerVirtualWorld( playerid, 5 );
  623.  
  624.             SetTimerEx("EndTextExitDm", 5000, true, "ii", playerid, 1);
  625.             SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
  626.  
  627.             TextDrawShowForPlayer(playerid,Textdraw0);
  628.             TextDrawShowForPlayer(playerid,Textdraw1);
  629.             TextDrawShowForPlayer(playerid,Textdraw4);
  630.             TextDrawShowForPlayer(playerid,Textdraw3);
  631.             TextDrawShowForPlayer(playerid,TextExitDm);
  632.             }
  633.             if(listitem == 3)
  634.             {
  635.             if(InDM[playerid] == 1) return SendClientMessage(playerid,0xF5A9A9AA,"You are currently in the DM!");
  636.             if(ServerInfo[EnableDisableDms2] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"All DeathMatchs Disabled By Admin!");
  637.             if(LockDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"You can not open to this DM because your manager has restricted you from DM!");
  638.             new strin[216];
  639.             format(strin,sizeof(strin),"*{FF0000}%s {FFFFFF}Joined To The WarHouse!",ReturnPlayerName(playerid));
  640.             SendClientMessageToAll( -1, strin);
  641.  
  642.             ResetPlayerWeapons(playerid);
  643.             GivePlayerWeapon(playerid, 9, 1);
  644.             GivePlayerWeapon(playerid, 16, 500);
  645.             GivePlayerWeapon(playerid, 25, 500);
  646.             GivePlayerWeapon(playerid, 28, 500);
  647.             GivePlayerWeapon(playerid, 28, 500);
  648.             new Random = random(sizeof(RandomSpawnsInWarDm));
  649.             SetPlayerPos(playerid, RandomSpawnsInWarDm[Random][0], RandomSpawnsInWarDm[Random][1], RandomSpawnsInWarDm[Random][2]);
  650.             SetPlayerInterior(playerid, 0);
  651.  
  652.             SetPlayerArmour(playerid, 100);
  653.             SetPlayerHealth(playerid, 100);
  654.  
  655.             TogglePlayerControllable(playerid, false);
  656.             SetPlayerColor(playerid, 0xFFFFFFAA);
  657.             SetPlayerSkin(playerid, 299);
  658.             InDM[playerid] = 1;
  659.             SetTimerEx("EndTextExitDm", 5000, true, "ii", playerid, 1);
  660.             SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
  661.  
  662.             TextDrawShowForPlayer(playerid,Textdraw0);
  663.             TextDrawShowForPlayer(playerid,Textdraw1);
  664.             TextDrawShowForPlayer(playerid,Textdraw5);
  665.             TextDrawShowForPlayer(playerid,Textdraw3);
  666.             TextDrawShowForPlayer(playerid,TextExitDm);
  667.             }
  668.             if(listitem == 4)
  669.             {
  670.             if(InDM[playerid] == 1) return SendClientMessage(playerid,0xF5A9A9AA,"You are currently in the DM!");
  671.             if(ServerInfo[EnableDisableDms2] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"All DeathMatchs Disabled By Admin!");
  672.             if(LockDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"You can not open to this DM because your manager has restricted you from DM!");
  673.  
  674.             new string[102];
  675.             format(string, sizeof(string), "*{FF0000}%s {FFFFFF}Joined To The Stadium Duel!",ReturnPlayerName(playerid));
  676.             SendClientMessageToAll(0xFFFFFFFF,string);
  677.            
  678.             InDM[playerid] = 1;
  679.            
  680.             ResetPlayerWeapons(playerid);
  681.             GivePlayerWeapon(playerid, 33, 500);
  682.             GivePlayerWeapon(playerid, 31, 500);
  683.             GivePlayerWeapon(playerid, 24, 500);
  684.             GivePlayerWeapon(playerid, 27, 500);
  685.             GivePlayerWeapon(playerid, 9, 1);
  686.  
  687.             new Random = random(sizeof(RandomSpawnsInDuelDm));
  688.             SetPlayerPos(playerid, RandomSpawnsInDuelDm[Random][0], RandomSpawnsInDuelDm[Random][1], RandomSpawnsInDuelDm[Random][2]);
  689.             SetPlayerInterior(playerid, 15);
  690.  
  691.             SetPlayerArmour(playerid, 100);
  692.             SetPlayerHealth(playerid, 100);
  693.  
  694.             TogglePlayerControllable(playerid, false);
  695.             SetPlayerColor(playerid, 0xFFFFFFAA);
  696.             SetPlayerSkin(playerid, 299);
  697.  
  698.             SetTimerEx("EndTextExitDm", 5000, true, "ii", playerid, 1);
  699.             SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
  700.            
  701.             TextDrawShowForPlayer(playerid,Textdraw0);
  702.             TextDrawShowForPlayer(playerid,Textdraw1);
  703.             TextDrawShowForPlayer(playerid,Textdraw6);
  704.             TextDrawShowForPlayer(playerid,Textdraw3);
  705.             TextDrawShowForPlayer(playerid,TextExitDm);
  706.             }
  707.             if(listitem == 5)
  708.             {
  709.             if(InDM[playerid] == 1) return SendClientMessage(playerid,0xF5A9A9AA,"You are currently in the DM!");
  710.             if(ServerInfo[EnableDisableDms2] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"All DeathMatchs Disabled By Admin!");
  711.             if(LockDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"You can not open to this DM because your manager has restricted you from DM!");
  712.            
  713.             new string[134];
  714.             format(string, sizeof(string), "*{FF0000}%s {FFFFFF}Joined To The Runnis Stadium!",ReturnPlayerName(playerid));
  715.             SendClientMessageToAll(0xFFFFFFFF,string);
  716.  
  717.             ResetPlayerWeapons(playerid);
  718.             GivePlayerWeapon(playerid, 26, 500);
  719.             GivePlayerWeapon(playerid, 16, 2);
  720.             GivePlayerWeapon(playerid, 9, 2);
  721.             GivePlayerWeapon(playerid, 32, 500);
  722.  
  723.             new Random = random(sizeof(RandomSpawnsInRunDm));
  724.             SetPlayerPos(playerid, RandomSpawnsInRunDm[Random][0], RandomSpawnsInRunDm[Random][1], RandomSpawnsInRunDm[Random][2]);
  725.             SetPlayerInterior(playerid, 16);
  726.  
  727.             SetPlayerArmour(playerid, 100);
  728.             SetPlayerHealth(playerid, 100);
  729.  
  730.             TogglePlayerControllable(playerid, false);
  731.             SetPlayerColor(playerid, 0xFFFFFFAA);
  732.             SetPlayerSkin(playerid, 299);
  733.             InDM[playerid] = 1;
  734.             SetTimerEx("EndTextExitDm", 5000, true, "ii", playerid, 1);
  735.             SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
  736.  
  737.             TextDrawShowForPlayer(playerid,Textdraw0);
  738.             TextDrawShowForPlayer(playerid,Textdraw1);
  739.             TextDrawShowForPlayer(playerid,Textdraw7);
  740.             TextDrawShowForPlayer(playerid,Textdraw3);
  741.             TextDrawShowForPlayer(playerid,TextExitDm);
  742.             }
  743.             if(listitem == 6)
  744.             {
  745.             if(InDM[playerid] == 1) return SendClientMessage(playerid,0xF5A9A9AA,"You are currently in the DM!");
  746.             if(ServerInfo[EnableDisableDms2] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"All DeathMatchs Disabled By Admin!");
  747.             if(LockDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"You can not open to this DM because your manager has restricted you from DM!");
  748.             new string[342];
  749.             format(string, sizeof(string), "*{FF0000}%s {FFFFFF}Joined To The Fire DM!",ReturnPlayerName(playerid));
  750.             SendClientMessageToAll(0xFFFFFFFF,string);
  751.  
  752.             ResetPlayerWeapons(playerid);
  753.             GivePlayerWeapon(playerid, 18, 10);
  754.             GivePlayerWeapon(playerid, 27, 500);
  755.             GivePlayerWeapon(playerid, 9, 450);
  756.             GivePlayerWeapon(playerid, 42, 500);
  757.  
  758.             new Random = random(sizeof(RandomSpawnsInFireDm));
  759.             SetPlayerPos(playerid, RandomSpawnsInFireDm[Random][0], RandomSpawnsInFireDm[Random][1], RandomSpawnsInFireDm[Random][2]);
  760.             SetPlayerInterior(playerid, 3);
  761.  
  762.             SetPlayerArmour(playerid, 100);
  763.             SetPlayerHealth(playerid, 100);
  764.  
  765.             TogglePlayerControllable(playerid, false);
  766.             SetPlayerColor(playerid, 0xFFFFFFAA);
  767.             SetPlayerSkin(playerid, 299);
  768.             InDM[playerid] = 1;
  769.             SetTimerEx("EndTextExitDm", 5000, true, "ii", playerid, 1);
  770.             SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
  771.            
  772.             TextDrawShowForPlayer(playerid,Textdraw0);
  773.             TextDrawShowForPlayer(playerid,Textdraw1);
  774.             TextDrawShowForPlayer(playerid,Textdraw8);
  775.             TextDrawShowForPlayer(playerid,Textdraw3);
  776.             TextDrawShowForPlayer(playerid,TextExitDm);
  777.             }
  778.             if(listitem == 7)
  779.             {
  780.             if(TimerMDM[playerid] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"This dm has not started or you have completed your open packages to minigun dm!");
  781.             if(InDM[playerid] == 1) return SendClientMessage(playerid,0xF5A9A9AA,"You are currently in the DM!");
  782.             if(LockDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"You can not open to this DM because your manager has restricted you from DM!");
  783.             if(ServerInfo[EnableDisableDms2] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"All DeathMatchs Disabled By Admin!");
  784.  
  785.             new string[324];
  786.             format(string, sizeof(string), "*{FF0000}%s {FFFFFF}Joined To The Minigun DM!",ReturnPlayerName(playerid));
  787.             SendClientMessageToAll(0xFFFFFFFF,string);
  788.            
  789.             ResetPlayerWeapons(playerid);
  790.             GunMinigun(playerid);
  791.  
  792.             new Random = random(sizeof(RandomSpawnsInMiniDm));
  793.             SetPlayerPos(playerid, RandomSpawnsInMiniDm[Random][0], RandomSpawnsInMiniDm[Random][1], RandomSpawnsInMiniDm[Random][2]);
  794.             SetPlayerInterior(playerid, 3);
  795.  
  796.             SetPlayerArmour(playerid, 100);
  797.             SetPlayerHealth(playerid, 100);
  798.  
  799.             TogglePlayerControllable(playerid, false);
  800.             SetPlayerColor(playerid, 0xFFFFFFAA);
  801.             SetPlayerSkin(playerid, 299);
  802.             InDM[playerid] = 1;
  803.             TimerMDM[playerid] --;
  804.             SetTimerEx("EndTextExitDm", 5000, true, "ii", playerid, 1);
  805.             SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
  806.  
  807.             TextDrawShowForPlayer(playerid,Textdraw0);
  808.             TextDrawShowForPlayer(playerid,Textdraw1);
  809.             TextDrawShowForPlayer(playerid,Textdraw9);
  810.             TextDrawShowForPlayer(playerid,Textdraw3);
  811.             TextDrawShowForPlayer(playerid,TextExitDm);
  812.             }
  813.             if(listitem == 8)
  814.             {
  815.             if(TimerMDM[playerid] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"This dm has not started or you have completed your open packages to rpg dm!");
  816.             if(InDM[playerid] == 1) return SendClientMessage(playerid,0xF5A9A9AA,"You are currently in the DM!");
  817.             if(ServerInfo[EnableDisableDms2] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"All DeathMatchs Disabled By Admin!");
  818.             if(LockDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"You can not open to this DM because your manager has restricted you from DM!");
  819.  
  820.             new string[49];
  821.             format(string, sizeof(string), "*{FF0000}%s {FFFFFF}Joined To The RPG DM!",ReturnPlayerName(playerid));
  822.             SendClientMessageToAll(0xFFFFFFFF,string);
  823.            
  824.             ResetPlayerWeapons(playerid);
  825.             GunRPG(playerid);
  826.  
  827.             new Random = random(sizeof(RandomSpawnsInRPGDm));
  828.             SetPlayerPos(playerid, RandomSpawnsInRPGDm[Random][0], RandomSpawnsInRPGDm[Random][1], RandomSpawnsInRPGDm[Random][2]);
  829.             SetPlayerInterior(playerid, 3);
  830.  
  831.             SetPlayerArmour(playerid, 100);
  832.             SetPlayerHealth(playerid, 100);
  833.  
  834.             TogglePlayerControllable(playerid, false);
  835.             SetPlayerColor(playerid, 0xFFFFFFAA);
  836.             SetPlayerSkin(playerid, 299);
  837.             InDM[playerid] = 1;
  838.             TimerMDM[playerid] --;
  839.             SetTimerEx("EndTextExitDm", 5000, true, "ii", playerid, 1);
  840.             SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
  841.  
  842.             TextDrawShowForPlayer(playerid,Textdraw0);
  843.             TextDrawShowForPlayer(playerid,Textdraw1);
  844.             TextDrawShowForPlayer(playerid,Textdraw10);
  845.             TextDrawShowForPlayer(playerid,Textdraw3);
  846.             TextDrawShowForPlayer(playerid,TextExitDm);
  847.             }
  848.             if(listitem == 9)
  849.             {
  850.             if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xF5A9A9AA,"You Must Be Rcon To Use This CMD!");
  851.             if(ServerInfo[EnableDisableDms] == 0)
  852.             {
  853.             new str[92];
  854.             format(str,sizeof(str),"All DeathMatchs Disabled By %s(%i)",ReturnPlayerName(playerid),playerid);
  855.             SendClientMessageToAll(0xFFFFFF00,str);
  856.             for(new i = 0; i < MAX_PLAYERS; i++)
  857.             {
  858.             ServerInfo[EnableDisableDms] = 1;
  859.             ServerInfo[EnableDisableDms2] = 0;
  860.             }
  861.             }
  862.             else if(ServerInfo[EnableDisableDms] == 1)
  863.             {
  864.             new str2[90];
  865.             format(str2,sizeof(str2),"All DeathMatchs Enabled By %s(%i)",ReturnPlayerName(playerid),playerid);
  866.             SendClientMessageToAll(0xFFFFFF00,str2);
  867.             for(new i = 0; i < MAX_PLAYERS; i++)
  868.             {
  869.             ServerInfo[EnableDisableDms] = 0;
  870.             ServerInfo[EnableDisableDms2] = 1;
  871.             }
  872.             return 1;
  873.             }
  874.             }
  875.  
  876.             return 1;
  877.             }
  878.         }
  879. if(dialogid == Dialog_Spec)
  880.     {
  881.         if(response)
  882.         {
  883.             if(listitem == 0)
  884.             {
  885.             SetPlayerCameraPos(playerid, -1513.0974, 1555.8337, 1078.0361);
  886.             SetPlayerInterior(playerid, 14);
  887.             GameTextForPlayer(playerid, "~n~~n~~n~~r~Spectating", 4000, 4);
  888.             SetPlayerCameraLookAt(playerid, -1512.2557, 1556.3719, 1077.6871);
  889.             }
  890.             if(listitem == 1)
  891.             {
  892.             SetPlayerCameraPos(playerid, 2185.5244, -1187.5381, 1032.2285);
  893.             SetPlayerCameraLookAt(playerid, 2186.5088, -1187.3571, 1031.9500);
  894.             new Random = random(sizeof(RandomSpawnsInSnDm));
  895.             SetPlayerPos(playerid, RandomSpawnsInSnDm[Random][0], RandomSpawnsInSnDm[Random][1], RandomSpawnsInSnDm[Random][2]);
  896.             TogglePlayerControllable(playerid, false);
  897.             SetPlayerInterior(playerid, 15);
  898.             GameTextForPlayer(playerid, "~n~~n~~n~~r~Spectating", 4000, 4);
  899.  
  900.             }
  901.             if(listitem == 2)
  902.             {
  903.             GameTextForPlayer(playerid, "~n~~n~~n~~r~Spectating", 4000, 4);
  904.             SetPlayerCameraPos(playerid, 2153.5374, -2236.0247, 23.0537);
  905.  
  906.             SetPlayerCameraLookAt(playerid, 2153.3164, -2236.9983, 22.7437);
  907.             }
  908.             if(listitem == 3)
  909.             {
  910.             SetPlayerCameraPos(playerid, -1511.7810, 1015.4521, 1066.5496);
  911.             SetPlayerInterior(playerid, 15);
  912.             GameTextForPlayer(playerid, "~n~~n~~n~~r~Spectating", 4000, 4);
  913.             SetPlayerCameraLookAt(playerid, -1510.9148, 1014.9557, 1066.0948);
  914.             }
  915.             if(listitem == 4)
  916.             {
  917.             SetPlayerCameraPos(playerid, -1457.8232, 1214.8123, 1107.1438);
  918.             SetPlayerInterior(playerid, 16);
  919.             GameTextForPlayer(playerid, "~n~~n~~n~~r~Spectating", 4000, 4);
  920.             SetPlayerCameraLookAt(playerid, -1456.9370, 1215.2727, 1106.2087);
  921.             }
  922.             if(listitem == 5)
  923.             {
  924.             SetPlayerCameraPos(playerid, -2677.9175, 1422.1367, 920.0936);
  925.             TogglePlayerControllable(playerid, false);
  926.             SetPlayerCameraLookAt(playerid, -2677.0596, 1421.6204, 919.6352,CAMERA_CUT);
  927.             new Random = random(sizeof(RandomSpawnsInFireDm));
  928.             SetPlayerPos(playerid, RandomSpawnsInFireDm[Random][0], RandomSpawnsInFireDm[Random][1], RandomSpawnsInFireDm[Random][2]);
  929.             SetPlayerInterior(playerid, 3);
  930.  
  931.             GameTextForPlayer(playerid, "~n~~n~~n~~r~Spectating", 4000, 4);
  932.             }
  933.             if(listitem == 6)
  934.             {
  935.             SetPlayerCameraPos(playerid, 2183.1794, 1193.8442, 158.0637);
  936.             GameTextForPlayer(playerid, "~n~~n~~n~~r~Spectating", 4000, 4);
  937.             SetPlayerVirtualWorld(playerid,5);
  938.             SetPlayerCameraLookAt(playerid, 2183.7090, 1192.9993, 157.3437);
  939.             }
  940.             if(listitem == 7)
  941.             {
  942.             SetPlayerHealth( playerid, 0.00 );
  943.             SendClientMessage(playerid,0x008FFFAA,"Spectating Ended.");
  944.             }
  945.  
  946.             return 1;
  947.             }
  948.         }
  949. if(dialogid == Dialog_GetAll)
  950.     {
  951.         if(response)
  952.         {
  953.             if(listitem == 0)
  954.             {
  955.             new string[295];
  956.             format(string,sizeof(string),"{FFFFFF}Admin{FF0000} %s{FFFFFF} Get All Players To {FF0000}GunGame!",ReturnPlayerName(playerid));
  957.             SendClientMessageToAll(-1,string);
  958.             print(string);
  959.            
  960.             for(new i = 0; i < MAX_PLAYERS; i++)
  961.             {
  962.             HideAllTextDraws(i);
  963.             Skills[i] = 0;
  964.             pInfo[playerid][pKills] = 0;
  965.            
  966.             InGG[i] = 1;
  967.             InDM[i] = 1;
  968.             new rando = random(sizeof(RandomWeap));
  969.             ResetPlayerWeapons(i);
  970.             GivePlayerWeapon(i,RandomWeap[rando][0],RandomWeap[rando][1]);
  971.             SetPlayerArmour(i, 100);
  972.             SetPlayerHealth(i, 100);
  973.             SetPlayerColor(i, 0xFFFFFFAA);
  974.  
  975.             new rand = random(sizeof(RandomSkinGunGame));
  976.             SetPlayerSkin(i,RandomSkinGunGame[rand]);
  977.  
  978.             new Random = random(sizeof(RandomSpawnsInGunGameDm));
  979.             SetPlayerPos(i, RandomSpawnsInGunGameDm[Random][0], RandomSpawnsInGunGameDm[Random][1], RandomSpawnsInGunGameDm[Random][2]);
  980.             SetPlayerInterior(i, 14);
  981.             TogglePlayerControllable(i, false);
  982.             SetTimerEx("EndTextExitDm2", 5000, true, "ii", i, 1);
  983.             SetTimerEx("EndFreezeDm", 5000, false, "ii", i, 1);
  984.  
  985.             TextDrawShowForPlayer(i,Textdraw0);
  986.             TextDrawShowForPlayer(i,Textdraw1);
  987.             TextDrawShowForPlayer(i,Textdraw2);
  988.             TextDrawShowForPlayer(i,Textdraw3);
  989.             TextDrawShowForPlayer(i,TextExitDm2);
  990.             }
  991.             }
  992.             if(listitem == 1)
  993.             {
  994.             new string[220];
  995.             format(string,sizeof(string),"{FFFFFF}Admin{FF0000} %s{FFFFFF} Get All Players To {FF0000}Sniper DM!",ReturnPlayerName(playerid));
  996.             SendClientMessageToAll(-1,string);
  997.             printf(string);
  998.            
  999.             for(new i = 0; i < MAX_PLAYERS; i++)
  1000.             {
  1001.             HideAllTextDraws(i);
  1002.             Skills[i] = 0;
  1003.             pInfo[playerid][pKills] = 0;
  1004.            
  1005.             InDM[i] = 1;
  1006.             ResetPlayerWeapons(i);
  1007.             GivePlayerWeapon(i,34,750);
  1008.             SetPlayerArmour(i, 100);
  1009.             SetPlayerHealth(i, 100);
  1010.             SetPlayerColor(i, 0xFFFFFFAA);
  1011.             SetPlayerSkin(i,299);
  1012.  
  1013.             TogglePlayerControllable(i, false);
  1014.             new Random = random(sizeof(RandomSpawnsInSnDm));
  1015.             SetPlayerPos(i, RandomSpawnsInSnDm[Random][0], RandomSpawnsInSnDm[Random][1], RandomSpawnsInSnDm[Random][2]);
  1016.             SetPlayerInterior(i, 15);
  1017.  
  1018.             SetTimerEx("EndTextExitDm", 5000, true, "ii", i, 1);
  1019.             SetTimerEx("EndFreezeDm", 5000, false, "ii", i, 1);
  1020.  
  1021.             TextDrawShowForPlayer(i,Textdraw0);
  1022.             TextDrawShowForPlayer(i,Textdraw1);
  1023.             TextDrawShowForPlayer(i,Textdraw4);
  1024.             TextDrawShowForPlayer(i,Textdraw3);
  1025.             TextDrawShowForPlayer(i,TextExitDm);
  1026.             }
  1027.             }
  1028.             if(listitem == 2)
  1029.             {
  1030.             new string[205];
  1031.             format(string,sizeof(string),"{FFFFFF}Admin{FF0000} %s{FFFFFF} Get All Players To {FF0000}SniperDM{FFFFFF}({FF0000}2{FFFFFF})!",ReturnPlayerName(playerid));
  1032.             SendClientMessageToAll(-1,string);
  1033.             printf(string);
  1034.            
  1035.             for(new i = 0; i < MAX_PLAYERS; i++)
  1036.             {
  1037.             HideAllTextDraws(i);
  1038.             Skills[i] = 0;
  1039.             pInfo[playerid][pKills] = 0;
  1040.  
  1041.             InDM[i] = 1;
  1042.             ResetPlayerWeapons(i);
  1043.             GivePlayerWeapon(i,34, 950);
  1044.             SetPlayerArmour(i, 100);
  1045.             SetPlayerHealth(i, 100);
  1046.             SetPlayerColor(i, 0xFFFFFFAA);
  1047.             SetPlayerSkin(i, 299);
  1048.  
  1049.             TogglePlayerControllable(i, false);
  1050.             new Random = random(sizeof(RandomSpawnsInSn2Dm));
  1051.             SetPlayerPos(i, RandomSpawnsInSn2Dm[Random][0], RandomSpawnsInSn2Dm[Random][1], RandomSpawnsInSn2Dm[Random][2]);
  1052.             SetPlayerVirtualWorld(i,5);
  1053.  
  1054.             SetTimerEx("EndTextExitDm", 5000, true, "ii", i, 1);
  1055.             SetTimerEx("EndFreezeDm", 5000, false, "ii", i, 1);
  1056.  
  1057.             TextDrawShowForPlayer(i,Textdraw0);
  1058.             TextDrawShowForPlayer(i,Textdraw1);
  1059.             TextDrawShowForPlayer(i,Textdraw4);
  1060.             TextDrawShowForPlayer(i,Textdraw3);
  1061.             TextDrawShowForPlayer(i,TextExitDm);
  1062.             }
  1063.             }
  1064.             if(listitem == 3)
  1065.             {
  1066.             new string[200];
  1067.             format(string,sizeof(string),"{FFFFFF}Admin{FF0000} %s{FFFFFF} Get All Players To {FF0000}WarHouse!",ReturnPlayerName(playerid));
  1068.             SendClientMessageToAll(-1,string);
  1069.             printf(string);
  1070.            
  1071.             for(new i = 0; i < MAX_PLAYERS; i++)
  1072.             {
  1073.             Skills[i] = 0;
  1074.             pInfo[playerid][pKills] = 0;
  1075.             HideAllTextDraws(i);
  1076.             ResetPlayerWeapons(i);
  1077.             GivePlayerWeapon(i, 31, 500);
  1078.             GivePlayerWeapon(i, 34, 500);
  1079.             GivePlayerWeapon(i, 26, 500);
  1080.             GivePlayerWeapon(i, 12, 500);
  1081.  
  1082.             new Random = random(sizeof(RandomSpawnsInWarDm));
  1083.             SetPlayerPos(i, RandomSpawnsInWarDm[Random][0], RandomSpawnsInWarDm[Random][1], RandomSpawnsInWarDm[Random][2]);
  1084.             SetPlayerInterior(i, 0);
  1085.  
  1086.             SetPlayerArmour(i, 100);
  1087.             SetPlayerHealth(i, 100);
  1088.  
  1089.             TogglePlayerControllable(i, false);
  1090.             SetPlayerColor(i, 0xFFFFFFAA);
  1091.             SetPlayerSkin(i, 299);
  1092.             InDM[i] = 1;
  1093.             SetTimerEx("EndTextExitDm", 5000, true, "ii", i, 1);
  1094.             SetTimerEx("EndFreezeDm", 5000, false, "ii", i, 1);
  1095.  
  1096.             TextDrawShowForPlayer(i,Textdraw0);
  1097.             TextDrawShowForPlayer(i,Textdraw1);
  1098.             TextDrawShowForPlayer(i,Textdraw5);
  1099.             TextDrawShowForPlayer(i,Textdraw3);
  1100.             TextDrawShowForPlayer(i,TextExitDm);
  1101.             }
  1102.             }
  1103.             if(listitem == 4)
  1104.             {
  1105.             new string[180];
  1106.             format(string,sizeof(string),"{FFFFFF}Admin{FF0000} %s{FFFFFF} Get All Players To {FF0000}Stadium Duel!",ReturnPlayerName(playerid));
  1107.             SendClientMessageToAll(-1,string);
  1108.             printf(string);
  1109.            
  1110.             for(new i = 0; i < MAX_PLAYERS; i++)
  1111.             {
  1112.             Skills[i] = 0;
  1113.             pInfo[playerid][pKills] = 0;
  1114.             HideAllTextDraws(i);
  1115.             ResetPlayerWeapons(i);
  1116.             GivePlayerWeapon(i, 29, 500);
  1117.             GivePlayerWeapon(i, 34, 500);
  1118.             GivePlayerWeapon(i, 18, 500);
  1119.             GivePlayerWeapon(i, 10, 500);
  1120.             GivePlayerWeapon(i, 21, 500);
  1121.  
  1122.             new Random = random(sizeof(RandomSpawnsInDuelDm));
  1123.             SetPlayerPos(i, RandomSpawnsInDuelDm[Random][0], RandomSpawnsInDuelDm[Random][1], RandomSpawnsInDuelDm[Random][2]);
  1124.             SetPlayerInterior(i, 15);
  1125.  
  1126.             SetPlayerArmour(i, 100);
  1127.             SetPlayerHealth(i, 100);
  1128.  
  1129.             TogglePlayerControllable(i, false);
  1130.             SetPlayerColor(i, 0xFFFFFFAA);
  1131.             SetPlayerSkin(i, 299);
  1132.             InDM[i] = 1;
  1133.             SetTimerEx("EndTextExitDm", 5000, true, "ii", i, 1);
  1134.             SetTimerEx("EndFreezeDm", 5000, false, "ii", i, 1);
  1135.  
  1136.             TextDrawShowForPlayer(i,Textdraw0);
  1137.             TextDrawShowForPlayer(i,Textdraw1);
  1138.             TextDrawShowForPlayer(i,Textdraw6);
  1139.             TextDrawShowForPlayer(i,Textdraw3);
  1140.             TextDrawShowForPlayer(i,TextExitDm);
  1141.             }
  1142.             }
  1143.             if(listitem == 5)
  1144.             {
  1145.             new string[154];
  1146.             format(string,sizeof(string),"{FFFFFF}Admin{FF0000} %s{FFFFFF} Get All Players To {FF0000}Runnis Stadium!",ReturnPlayerName(playerid));
  1147.             SendClientMessageToAll(-1,string);
  1148.             printf(string);
  1149.            
  1150.             for(new i = 0; i < MAX_PLAYERS; i++)
  1151.             {
  1152.             Skills[i] = 0;
  1153.             pInfo[playerid][pKills] = 0;
  1154.             HideAllTextDraws(i);
  1155.             ResetPlayerWeapons(i);
  1156.             GivePlayerWeapon(i, 29, 500);
  1157.             GivePlayerWeapon(i, 34, 500);
  1158.             GivePlayerWeapon(i, 18, 2);
  1159.             GivePlayerWeapon(i, 26, 500);
  1160.  
  1161.             new Random = random(sizeof(RandomSpawnsInRunDm));
  1162.             SetPlayerPos(i, RandomSpawnsInRunDm[Random][0], RandomSpawnsInRunDm[Random][1], RandomSpawnsInRunDm[Random][2]);
  1163.             SetPlayerInterior(i, 16);
  1164.  
  1165.             SetPlayerArmour(i, 100);
  1166.             SetPlayerHealth(i, 100);
  1167.  
  1168.             TogglePlayerControllable(i, false);
  1169.             SetPlayerColor(i, 0xFFFFFFAA);
  1170.             SetPlayerSkin(i, 299);
  1171.             InDM[i] = 1;
  1172.             SetTimerEx("EndTextExitDm", 5000, true, "ii", i, 1);
  1173.             SetTimerEx("EndFreezeDm", 3000, false, "ii", i, 1);
  1174.  
  1175.             TextDrawShowForPlayer(i,Textdraw0);
  1176.             TextDrawShowForPlayer(i,Textdraw1);
  1177.             TextDrawShowForPlayer(i,Textdraw7);
  1178.             TextDrawShowForPlayer(i,Textdraw3);
  1179.             TextDrawShowForPlayer(i,TextExitDm);
  1180.             }
  1181.             }
  1182.             if(listitem == 6)
  1183.             {
  1184.             new string[220];
  1185.             format(string,sizeof(string),"{FFFFFF}Admin{FF0000} %s{FFFFFF} Get All Players To {FF0000}FireDM!",ReturnPlayerName(playerid));
  1186.             SendClientMessageToAll(-1,string);
  1187.             printf(string);
  1188.            
  1189.             for(new i = 0; i < MAX_PLAYERS; i++)
  1190.             {
  1191.             HideAllTextDraws(i);
  1192.             Skills[i] = 0;
  1193.             pInfo[playerid][pKills] = 0;
  1194.            
  1195.             ResetPlayerWeapons(i);
  1196.             GivePlayerWeapon(i, 29, 500);
  1197.             GivePlayerWeapon(i, 34, 500);
  1198.             GivePlayerWeapon(i, 18, 450);
  1199.             GivePlayerWeapon(i, 26, 500);
  1200.  
  1201.             new Random = random(sizeof(RandomSpawnsInFireDm));
  1202.             SetPlayerPos(i, RandomSpawnsInFireDm[Random][0], RandomSpawnsInFireDm[Random][1], RandomSpawnsInFireDm[Random][2]);
  1203.             SetPlayerInterior(i, 3);
  1204.  
  1205.             SetPlayerArmour(i, 100);
  1206.             SetPlayerHealth(i, 100);
  1207.  
  1208.             TogglePlayerControllable(i, false);
  1209.             SetPlayerColor(i, 0xFFFFFFAA);
  1210.             SetPlayerSkin(i, 299);
  1211.             InDM[i] = 1;
  1212.             SetTimerEx("EndTextExitDm", 5000, true, "ii", i, 1);
  1213.             SetTimerEx("EndFreezeDm", 3000, false, "ii", i, 1);
  1214.  
  1215.             TextDrawShowForPlayer(i,Textdraw0);
  1216.             TextDrawShowForPlayer(i,Textdraw1);
  1217.             TextDrawShowForPlayer(i,Textdraw8);
  1218.             TextDrawShowForPlayer(i,Textdraw3);
  1219.             TextDrawShowForPlayer(i,TextExitDm);
  1220.             }
  1221.             }
  1222.             return 1;
  1223.             }
  1224.         }
  1225.     return 0;
  1226. }
  1227. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
  1228. {
  1229.     if(issuerid != INVALID_PLAYER_ID)
  1230.     {
  1231.         new str[426];
  1232.         format(str, sizeof(str),"-%.0f", amount);
  1233.         SetPlayerChatBubble(playerid, str, 0xFFFF00FF, 100.0, 2000);
  1234.     }
  1235.     return 1;
  1236. }
  1237. forward EndTextExitDm(playerid);
  1238. public EndTextExitDm(playerid)
  1239. {
  1240.     TextDrawHideForPlayer(playerid, TextExitDm);
  1241.     return 1;
  1242. }
  1243. forward EndTextExitDm2(playerid);
  1244. public EndTextExitDm2(playerid)
  1245. {
  1246.     TextDrawHideForPlayer(playerid, TextExitDm2);
  1247.     return 1;
  1248. }
  1249. forward EndFreezeDm(playerid);
  1250. public EndFreezeDm(playerid)
  1251. {    GameTextForPlayer(playerid, "~r~Go", 1000, 4);
  1252.     TogglePlayerControllable(playerid, true);
  1253.     PlayerPlaySound(playerid, SOUND_GO, 0.0, 0.0, 10.0);
  1254.     return 1;
  1255. }
  1256. forward StartMinigunRPGDm(playerid);
  1257. public StartMinigunRPGDm(playerid)
  1258. {
  1259.     SendClientMessageToAll(0xFFFFAAAA,"Minigun DM & RPG DM Started! +Give All Players 5 Package Open! Use /DM For Join!");
  1260.     for(new i = 0; i < MAX_PLAYERS; i++)
  1261.     {
  1262.     TimerMDM[i] = 0; //Reset Pakage All Players
  1263.     TimerMDM[i] = 5; //Give 5 Pakage To All
  1264.     }
  1265.     return 1;
  1266. }
  1267. forward HideAllTextDraws(playerid);
  1268. public HideAllTextDraws(playerid)
  1269. {
  1270.     TextDrawHideForPlayer(playerid,Textdraw0);
  1271.     TextDrawHideForPlayer(playerid,Textdraw1);
  1272.     TextDrawHideForPlayer(playerid,Textdraw2);
  1273.     TextDrawHideForPlayer(playerid,Textdraw3);
  1274.     TextDrawHideForPlayer(playerid,Textdraw4);
  1275.     TextDrawHideForPlayer(playerid,Textdraw5);
  1276.     TextDrawHideForPlayer(playerid,Textdraw6);
  1277.     TextDrawHideForPlayer(playerid,Textdraw7);
  1278.     TextDrawHideForPlayer(playerid,Textdraw8);
  1279.     TextDrawHideForPlayer(playerid,Textdraw9);
  1280.     TextDrawHideForPlayer(playerid,Textdraw10);
  1281.     return 1;
  1282. }
  1283. forward GunMinigun(playerid);
  1284. public GunMinigun(playerid)
  1285. {
  1286.     new ammount = random(1000);
  1287.     GivePlayerWeapon(playerid, 38, ammount);
  1288.     return 1;
  1289. }
  1290. forward GunRPG(playerid);
  1291. public GunRPG(playerid)
  1292. {
  1293.     new ammount = random(500);
  1294.     GivePlayerWeapon(playerid, 35, ammount);
  1295.     return 1;
  1296. }
  1297. forward MapRunnisStadium();
  1298. public MapRunnisStadium()
  1299. {
  1300. CreateObject(19913, -1437.17358, 1228.67102, 1044.47693,   0.00000, 0.00000, 90.00000);
  1301. CreateObject(19913, -1438.84265, 1259.90662, 1044.38074,   0.00000, 0.00000, 48.00000);
  1302. CreateObject(19913, -1426.70117, 1276.25464, 1044.32800,   0.00000, 0.00000, 26.00000);
  1303. CreateObject(19913, -1413.46741, 1286.09790, 1044.33862,   0.00000, 0.00000, 2.00000);
  1304. CreateObject(19913, -1440.85437, 1243.66125, 1044.38379,   0.00000, 0.00000, 70.00000);
  1305. CreateObject(19913, -1396.83948, 1289.36548, 1044.35547,   0.00000, 0.00000, -20.00000);
  1306. CreateObject(19913, -1352.34229, 1246.77502, 1044.36353,   0.00000, 0.00000, 69.00000);
  1307. CreateObject(19913, -1353.72656, 1231.95105, 1044.36597,   0.00000, 0.00000, -132.00000);
  1308. CreateObject(19913, -1429.50391, 1214.19739, 1044.37683,   0.00000, 0.00000, 108.00000);
  1309. CreateObject(19913, -1420.40417, 1207.64893, 1044.41833,   0.00000, 0.00000, -56.00000);
  1310. CreateObject(19913, -1408.30237, 1202.89758, 1044.39697,   0.00000, 0.00000, -39.00000);
  1311. CreateObject(19913, -1392.37341, 1201.38977, 1044.36853,   0.00000, 0.00000, -18.00000);
  1312. CreateObject(19913, -1377.65771, 1204.66748, 1044.30457,   0.00000, 0.00000, 0.00000);
  1313. CreateObject(19913, -1366.61462, 1212.35339, 1044.31445,   0.00000, 0.00000, 18.00000);
  1314. CreateObject(19913, -1356.76550, 1221.92773, 1044.32910,   0.00000, 0.00000, 32.00000);
  1315. CreateObject(19913, -1361.59314, 1274.92151, 1044.37378,   0.00000, 0.00000, 105.00000);
  1316. CreateObject(19913, -1371.31055, 1283.23352, 1044.35498,   0.00000, 0.00000, 122.00000);
  1317. CreateObject(19913, -1355.02185, 1263.40552, 1044.29663,   0.00000, 0.00000, 89.00000);
  1318. CreateObject(19913, -1382.08728, 1288.45313, 1044.35498,   0.00000, 0.00000, 137.00000);
  1319. return 1;
  1320. }
  1321. forward MapGunGame();
  1322. public MapGunGame()
  1323. {
  1324. CreateObject(13647, -1419.64709, 1568.08008, 1051.53052,   0.00000, 0.00000, 0.00000);
  1325. CreateObject(13640, -1370.13940, 1576.90527, 1052.44165,   0.00000, 0.00000, 90.00000);
  1326. CreateObject(13638, -1489.31458, 1616.90613, 1054.07593,   0.00000, 0.00000, 180.00000);
  1327. CreateObject(13644, -1455.38342, 1604.47424, 1053.02490,   0.00000, 0.00000, 0.00000);
  1328. CreateObject(13637, -1483.30127, 1583.27820, 1053.47021,   0.00000, 0.00000, -66.00000);
  1329. return 1;
  1330. }
  1331. forward MessageToPlayersInDM(color,const string[]);
  1332. public MessageToPlayersInDM(color,const string[])
  1333. {
  1334.     for(new i = 0; i < MAX_PLAYERS; i++)
  1335.     {
  1336.         if(IsPlayerConnected(i) == 1) if (InDM[i] || InGG[i] >= 1) SendClientMessage(i, color, string);
  1337.     }
  1338.     return 1;
  1339. }
  1340.  
  1341. public OnPlayerText(playerid, text[])
  1342. {
  1343.     if(text[0] == '.' && InDM[playerid] >= 1) {
  1344.         new string[150]; GetPlayerName(playerid,string,sizeof(string));
  1345.         format(string,sizeof(string),"{FF00FF}[DeathMatchsChat]:{FFFF00} %s[%i]: {F7BE81}%s",ReturnPlayerName(playerid),playerid,text[1]);
  1346.         MessageToPlayersInDM(0xF27ED2FF,string);
  1347.        
  1348.         return 0;
  1349.     }
  1350.     if(text[0] == '.' && InGG[playerid] == 1) {
  1351.         new string[50]; GetPlayerName(playerid,string,sizeof(string));
  1352.         format(string,sizeof(string),"{FF00FF}[DeathMatchsChat]:{FFFF00} %s[%i]: {F7BE81}%s",ReturnPlayerName(playerid),playerid,text[1]);
  1353.         MessageToPlayersInDM(0xF27ED2FF,string);
  1354.         return 0;
  1355.     }
  1356.     return 1;
  1357. }
  1358.  
  1359. ReturnPlayerName(playerid)
  1360. {
  1361.     new player_name[MAX_PLAYER_NAME];
  1362.     GetPlayerName(playerid, player_name, MAX_PLAYER_NAME);
  1363.     return player_name;
  1364. }
  1365. /*__________________________Cmds__________________________*/
  1366. CMD:deathmatchs(playerid, params[])
  1367. {
  1368.    ShowPlayerDialog(playerid, Dialog_Join, DIALOG_STYLE_LIST, "{DF7401}Death Matchs", "{FFFFFF}Gun Game\n{FF0000}Sniper DM\n{FFFFFF}Sniper DM(2)\n{FF0000}War House\n{FFFFFF}Stadium Duel\n{FF0000}Runnis Stadium\n{FFFFFF}Fire DM\n{FF0000}Minigun DM\n{FFFFFF}Rpg DM\n{000FFF}Disable/Enable All DM", "Select", "Cancel");
  1369.    return 1;
  1370. }
  1371. CMD:dm(playerid,params[]) return cmd_deathmatchs(playerid, params);
  1372.  
  1373. CMD:exit(playerid, params[])
  1374. {
  1375.     if(InDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"Your Not In Any Dm!");
  1376.     if(InDM[playerid] >= 1)
  1377.     {
  1378.     Skills[playerid] = 0;
  1379.     pInfo[playerid][pKills] = 0;
  1380.  
  1381.     SpawnPlayer(playerid);
  1382.     InDM[playerid] = 0;
  1383.     InGG[playerid] = 0;
  1384.     SetPlayerInterior(playerid,0);
  1385.     HideAllTextDraws(playerid);
  1386.     }
  1387.  
  1388.     if(InGG[playerid] >= 1)
  1389.     {
  1390.     Skills[playerid] = 0;
  1391.     pInfo[playerid][pKills] = 0;
  1392.  
  1393.     SpawnPlayer(playerid);
  1394.     InDM[playerid] = 0;
  1395.     InGG[playerid] = 0;    
  1396.     SetPlayerInterior(playerid,0);
  1397.     HideAllTextDraws(playerid);
  1398.     }
  1399.    return 1;
  1400. }
  1401. CMD:gexit(playerid, params[])
  1402. {
  1403.     if(InGG[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"Your Not In GunGame!");
  1404.     if(InGG[playerid] >= 1)
  1405.     {
  1406.     Skills[playerid] = 0;
  1407.     pInfo[playerid][pKills] = 0;
  1408.  
  1409.     SpawnPlayer(playerid);
  1410.     InDM[playerid] = 0;
  1411.     InGG[playerid] = 0;
  1412.     SetPlayerInterior(playerid,0);
  1413.     HideAllTextDraws(playerid);
  1414.     }
  1415.    return 1;
  1416. }
  1417. CMD:lockdm(playerid, params[])
  1418. {
  1419.         if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xF5A9A9AA,"You Must Be Rcon To Use This CMD!");
  1420.         new string[128],pplayerid, reason[48];
  1421.         if(sscanf(params, "us[48]", pplayerid, reason)) return SendClientMessage(playerid, 0xFF0000AA, "{FF0000}Usage: {FFFFFF}/lockdm [Player ID/Player Name] [reason]");
  1422.         if(pplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Wrong Playerid!");
  1423.  
  1424.         format(string,sizeof(string),"{FFFFFF}Admin{FF0000} %s{FFFFFF} Restricted the player {FF0000} %s{FFFFFF}In Dm! Reason: {FF0000}%s",ReturnPlayerName(playerid),ReturnPlayerName(pplayerid),reason);
  1425.         SendClientMessageToAll(-1,string);
  1426.        
  1427.         PlayerPlaySound(pplayerid, 1057, 0.0, 0.0, 0.0);
  1428.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
  1429.         LockDM[pplayerid] = 0;
  1430.         SetPlayerHealth(pplayerid,0.00);
  1431.         HideAllTextDraws(pplayerid);
  1432.         InGG[pplayerid] = 0;
  1433.         InDM[pplayerid] = 0;
  1434.         Skills[pplayerid] = 0;
  1435.         pInfo[pplayerid][pKills] = 0;
  1436.         return 1;
  1437. }
  1438. CMD:unlockdm(playerid, params[])
  1439. {
  1440.         if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xF5A9A9AA,"You Must Be Rcon To Use This CMD!");
  1441.         new string[128],pplayerid;
  1442.         if(sscanf(params, "us[364]", pplayerid)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: {FFFFFF}/unlockdm [Player ID/Player Name]");
  1443.         if(pplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Wrong playerid!{FFFFFF} /unlockdm [Player ID/Player Name]");
  1444.  
  1445.         format(string,sizeof(string),"{FFFFFF}Admin {FF0000}%s {FFFFFF}Remove restrictions Player{FF0000} %s{FFFFFF}.",ReturnPlayerName(playerid),ReturnPlayerName(pplayerid));
  1446.         SendClientMessageToAll(-1,string);
  1447.         PlayerPlaySound(pplayerid, 1057, 0.0, 0.0, 0.0);
  1448.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
  1449.         LockDM[pplayerid] = 1;
  1450.        
  1451.     return 1;
  1452. }
  1453. CMD:specdm(playerid,params[])
  1454. {
  1455.      if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xF5A9A9AA,"You Must Be Rcon To Use This CMD!");
  1456.      ShowPlayerDialog(playerid, Dialog_Spec, DIALOG_STYLE_LIST, "{0000FF}Spectating In DM", "{FFFF00}GunGame\n{0080C0}Sniper DM\n{FFFF00}War House\n{0080C0}Stadium Duel\n{FFFF00}Runnis Stadium\n{0080C0}Fire Dm\n{FFFF00}Sniper DM(2)\nEnd Spec", "Select", "Cancel");
  1457.      return true;
  1458. }
  1459. CMD:getalltodm(playerid, params[])
  1460. {
  1461.      if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xF5A9A9AA,"You Must Be Rcon To Use This CMD!");
  1462.      ShowPlayerDialog(playerid, Dialog_GetAll, DIALOG_STYLE_LIST, "{EBE0BA}Get All Players To Dm", "{0080FF}>> Gun Game\n{0080C0}>> SniperDm\n{0080FF}>> SniperDm(2)\n{0080C0}>> WarHouse\n{0080FF}>> Stadium Duel\n{0080C0}>> Runnis Stadium\n{0080FF}>> Fire Dm", "{258D37}Select", "{FF0000}Cancel");
  1463.      return 1;
  1464. }
  1465. CMD:gatd(playerid,params[]) return cmd_getalltodm(playerid, params);
  1466. /*__________________________Cmds__________________________*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement