Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*==========================//
- System Death Matchs By Vizi10.
- Link: http://forum.sa-mp.com/showthread.php?p=4034262#post4034262
- Download Link: http://www.mediafire.com/file/18fgtu1jzm2ptqa/SytemDeathMatchs.rar
- Cmds:
- /DeathMatchs (/DM)
- /Exit (For Exit On Dm)
- /gexit (For Exit On GunGame)
- /lockdm (For Lock Player Cant Join To Dm)
- /unlockdm (Unlock Dm Player)
- /SpecDm (Show DeathMatchs)
- /getalltodm (/gatd) (Get All Players To DM)
- //==========================*/
- //==========================//
- // Includes //
- //==========================//
- #include <a_samp>
- #include <streamer>
- #include <zcmd>
- #include <sscanf2>
- #if defined FILTERSCRIPT
- #else
- #endif
- //==========================//
- // Enums //
- //==========================//
- //pragma: tabsize
- #pragma tabsize -1
- //Enum: GunGame
- enum GunGame
- {
- pKills
- }
- new pInfo[MAX_PLAYERS][GunGame];
- //Enum: ServerData
- enum ServerData
- {
- EnableDisableDms,
- EnableDisableDms2
- };
- new ServerInfo[ServerData];
- //==========================//
- // New //
- //==========================//
- //New: RandomWeap
- new RandomWeap[16][2] =
- {
- {24, 10000},
- {25, 10000},
- {26, 10000},
- {27, 10000},
- {28, 10000},
- {29, 10000},
- {30, 10000},
- {31, 10000},
- {38, 10000},
- {32, 10000},
- {33, 10000},
- {34, 10000},
- {35, 10000},
- {36, 10000},
- {37, 10000},
- {39, 10000}
- };
- //New: RandomSpawnsInGunGameDm
- new Float:RandomSpawnsInGunGameDm[][] =
- {
- {-1354.7908,1585.1763,1058.4766},
- {-1381.9771,1561.9103,1055.5050},
- {-1420.6321,1625.2117,1052.5313},
- {-1431.4127,1598.6841,1054.2686},
- {-1431.1558,1580.6210,1055.7191},
- {-1452.3339,1573.5485,1057.8127},
- {-1485.7253,1575.0419,1052.5313},
- {-1486.9830,1642.5344,1060.6719},
- {-1453.9332,1636.3170,1056.4219},
- {-1398.9889,1646.1781,1052.5313},
- {-1360.6580,1634.5712,1053.6692},
- {-1370.5743,1627.5968,1055.4745},
- {-1384.6478,1603.6626,1053.7109},
- {-1408.2847,1588.2765,1053.0304},
- {-1430.0840,1614.2112,1054.8364},
- {-1467.7192,1589.5028,1052.7500},
- {-1480.4510,1563.9604,1056.6328},
- {-1464.8231,1555.9323,1052.5313},
- {-1373.1975,1561.3285,1053.3608},
- {-1422.9347,1567.7584,1052.5313}
- };
- //New: RandomSpawnsInSnDm || RandomSpawnsInSn2Dm
- new Float:RandomSpawnsInSnDm[][] =
- {
- {2235.3435,-1194.0099,1029.8043},
- {2239.3425,-1192.5244,1033.7969},
- {2236.0479,-1169.2697,1029.8043},
- {2235.5190,-1158.5052,1029.7969},
- {2215.2795,-1147.0376,1025.7969},
- {2226.4348,-1183.1661,1029.7969},
- {2189.7717,-1180.2969,1033.7896},
- {2193.5444,-1147.3654,1033.7969},
- {2189.7717,-1180.2969,1033.7896}
- };
- new Float:RandomSpawnsInSn2Dm[][] =
- {
- {2323.0232,1083.4110,85.9312},
- {2328.7368,1100.8381,79.5547},
- {2210.2458,1137.6730,79.5547},
- {2273.7837,1167.8197,79.5547},
- {2258.5093,1064.2500,78.4569},
- {2278.5840,1020.9462,79.5547},
- {2319.2273,1112.5077,79.5546},
- {2222.7090,1142.3660,79.5547},
- {2195.2842,1003.7253,85.9375}
- };
- //New: RandomSpawnsInWarDm
- new Float:RandomSpawnsInWarDm[][] =
- {
- {2131.5806,-2259.3589,14.7744},
- {2131.0081,-2284.1321,20.6643},
- {2128.7102,-2266.1921,20.6704},
- {2152.5974,-2276.9421,13.3047},
- {2156.3250,-2248.1482,17.7497},
- {2179.0366,-2249.7302,20.6746},
- {2122.2422,-2269.2773,20.6719}
- };
- //New: RandomSpawnsInDuelDm
- new Float:RandomSpawnsInDuelDm[][] =
- {
- {-1423.7682,932.3826,1036.4064},
- {-1443.3640,934.1019,1036.5010},
- {-1484.4613,946.3587,1036.7660}
- };
- //New: RandomSpawnsInRunDm
- new Float:RandomSpawnsInRunDm[][] =
- {
- {-1395.8491,1267.9581,1039.8672},
- {-1396.6462,1223.7681,1039.8672}
- };
- //New: RandomSpawnsInFireDm
- new Float:RandomSpawnsInFireDm[][] =
- {
- {-2675.0603,1429.3135,906.4609},
- {-2678.2129,1422.7589,906.4609},
- {-2673.2830,1410.2015,907.5703},
- {-2645.8623,1400.0275,912.4063},
- {-2674.8840,1400.1648,912.4063},
- {-2673.6533,1428.7395,918.3516},
- {-2660.8904,1414.9819,922.1953},
- {-2673.2830,1410.2015,907.5703},
- {-2665.7700,1403.2848,921.7340},
- {-2675.0208,1410.1836,912.7240},
- {-2658.7056,1410.3599,910.1703}
- };
- //New: RandomSpawnsInMiniDm
- new Float:RandomSpawnsInMiniDm[][] =
- {
- {349.9549,178.6237,1014.1875},
- {337.1629,153.0374,1014.1875},
- {357.2010,157.2562,1025.7891},
- {351.9025,175.2921,1025.7891},
- {366.5834,158.8154,1008.3828},
- {352.0084,216.9990,1008.3828}
- };
- //New: RandomSpawnsInRPGDm
- new Float:RandomSpawnsInRPGDm[][] =
- {
- {301.7407,182.1317,1007.1719},
- {242.2697,139.3974,1003.0234},
- {244.8843,184.2928,1008.1719},
- {230.1473,177.5007,1003.0313},
- {222.2559,175.4764,1003.0267},
- {189.8189,180.5645,1003.0234},
- {217.4540,145.4677,1003.0234}
- };
- //New: RandomSkinGunGame
- new RandomSkinGunGame[] =
- {
- 73, 115, 123,
- 171, 28, 20,
- 101, 107, 108
- };
- //New: TextDraws
- new Text:Textdraw0;
- new Text:Textdraw1;
- new Text:Textdraw2;
- new Text:Textdraw3;
- new Text:Textdraw4;
- new Text:Textdraw5;
- new Text:Textdraw6;
- new Text:Textdraw7;
- new Text:Textdraw8;
- new Text:Textdraw9;
- new Text:Textdraw10;
- new Text:TextExitDm;
- new Text:TextExitDm2;
- //New: InDM || InGG
- new InDM[MAX_PLAYERS];
- new InGG[MAX_PLAYERS]; //In GunGame
- //New: TimerMDM || TimerRDM
- new TimerMDM[MAX_PLAYERS];
- new LockDM[MAX_PLAYERS];
- //New: Streak
- new Skills[MAX_PLAYERS];
- //=========================//
- // defines //
- //==========================//
- #define Dialog_Join 1
- #define Dialog_Spec 2
- #define Dialog_GetAll 3
- #define SOUND_GO 1057
- //==========================//
- // Publics //
- //==========================//
- public OnFilterScriptInit()
- {
- print("________________________________________________");
- print("| System DeathMatchs Loaded! |");
- print("| By Vizi10! |");
- print("________________________________________________");
- SetTimerEx( "StartMinigunRPGDm" , 600000 , true , "ii" , 1 ); //600000Ms = 10Minute To Enable DM Minigun & DM RPG With Repating
- DisableInteriorEnterExits();
- UsePlayerPedAnims();
- MapRunnisStadium();
- MapGunGame();
- ServerInfo[EnableDisableDms2] = 1;
- //Create the textdraws:
- Textdraw1 = TextDrawCreate(620.000000, 112.000000, "_");
- TextDrawBackgroundColor(Textdraw1, 255);
- TextDrawFont(Textdraw1, 1);
- TextDrawLetterSize(Textdraw1, 0.500000, 6.499997);
- TextDrawColor(Textdraw1, -1);
- TextDrawSetOutline(Textdraw1, 0);
- TextDrawSetProportional(Textdraw1, 1);
- TextDrawSetShadow(Textdraw1, 1);
- TextDrawUseBox(Textdraw1, 1);
- TextDrawBoxColor(Textdraw1, 170);
- TextDrawTextSize(Textdraw1, 490.000000, 0.000000);
- Textdraw2 = TextDrawCreate(500.000000, 123.000000, "GunGame");
- TextDrawBackgroundColor(Textdraw2, 255);
- TextDrawFont(Textdraw2, 1);
- TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
- TextDrawColor(Textdraw2, 0xFFFF00AA);
- TextDrawSetOutline(Textdraw2, 0);
- TextDrawSetProportional(Textdraw2, 1);
- TextDrawSetShadow(Textdraw2, 1);
- Textdraw3 = TextDrawCreate(501.000000, 143.000000, "~G~Kills: ~w~%d");
- TextDrawBackgroundColor(Textdraw3, 255);
- TextDrawFont(Textdraw3, 1);
- TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
- TextDrawColor(Textdraw3, -1);
- TextDrawSetOutline(Textdraw3, 0);
- TextDrawSetProportional(Textdraw3, 1);
- TextDrawSetShadow(Textdraw3, 1);
- Textdraw4 = TextDrawCreate(500.000000, 123.000000, "Sniper DM");
- TextDrawBackgroundColor(Textdraw4, 255);
- TextDrawFont(Textdraw4, 1);
- TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
- TextDrawColor(Textdraw4, 0xFFFF00AA);
- TextDrawSetOutline(Textdraw4, 0);
- TextDrawSetProportional(Textdraw4, 1);
- TextDrawSetShadow(Textdraw4, 1);
- Textdraw5 = TextDrawCreate(500.000000, 123.000000, "War House");
- TextDrawBackgroundColor(Textdraw5, 255);
- TextDrawFont(Textdraw5, 1);
- TextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
- TextDrawColor(Textdraw5, 0xFFFF00AA);
- TextDrawSetOutline(Textdraw5, 0);
- TextDrawSetProportional(Textdraw5, 1);
- TextDrawSetShadow(Textdraw5, 1);
- Textdraw6 = TextDrawCreate(500.000000, 123.000000, "Stadium Duel");
- TextDrawBackgroundColor(Textdraw6, 255);
- TextDrawFont(Textdraw6, 1);
- TextDrawLetterSize(Textdraw6, 0.500000, 1.000000);
- TextDrawColor(Textdraw6, 0xFFFF00AA);
- TextDrawSetOutline(Textdraw6, 0);
- TextDrawSetProportional(Textdraw6, 1);
- TextDrawSetShadow(Textdraw6, 1);
- Textdraw7 = TextDrawCreate(500.000000, 123.000000, "Runnis Stadium");
- TextDrawBackgroundColor(Textdraw7, 255);
- TextDrawFont(Textdraw7, 1);
- TextDrawLetterSize(Textdraw7, 0.500000, 1.000000);
- TextDrawColor(Textdraw7, 0xFFFF00AA);
- TextDrawSetOutline(Textdraw7, 0);
- TextDrawSetProportional(Textdraw7, 1);
- TextDrawSetShadow(Textdraw7, 1);
- Textdraw8 = TextDrawCreate(500.000000, 123.000000, "Fire DM");
- TextDrawBackgroundColor(Textdraw8, 255);
- TextDrawFont(Textdraw8, 1);
- TextDrawLetterSize(Textdraw8, 0.500000, 1.000000);
- TextDrawColor(Textdraw8, 0xFFFF00AA);
- TextDrawSetOutline(Textdraw8, 0);
- TextDrawSetProportional(Textdraw8, 1);
- TextDrawSetShadow(Textdraw8, 1);
- Textdraw9 = TextDrawCreate(500.000000, 123.000000, "Minigun DM");
- TextDrawBackgroundColor(Textdraw9, 255);
- TextDrawFont(Textdraw9, 1);
- TextDrawLetterSize(Textdraw9, 0.500000, 1.000000);
- TextDrawColor(Textdraw9, 0xFFFF00AA);
- TextDrawSetOutline(Textdraw9, 0);
- TextDrawSetProportional(Textdraw9, 1);
- TextDrawSetShadow(Textdraw9, 1);
- Textdraw10 = TextDrawCreate(500.000000, 123.000000, "RPG DM");
- TextDrawBackgroundColor(Textdraw10, 255);
- TextDrawFont(Textdraw10, 1);
- TextDrawLetterSize(Textdraw10, 0.500000, 1.000000);
- TextDrawColor(Textdraw10, 0xFFFF00AA);
- TextDrawSetOutline(Textdraw10, 0);
- TextDrawSetProportional(Textdraw10, 1);
- TextDrawSetShadow(Textdraw10, 1);
- TextExitDm = TextDrawCreate(7.000000, 428.000000, "Use ~r~/exit~w~ For Exit On Dm! ~y~- ~w~Use ~r~.chat~w~ For DM Chat!");
- TextDrawBackgroundColor(TextExitDm, 255);
- TextDrawFont(TextExitDm, 1);
- TextDrawLetterSize(TextExitDm, 0.410000, 1.500000);
- TextDrawColor(TextExitDm, 0xFFFFFFAA);
- TextDrawSetOutline(TextExitDm, 1);
- TextDrawSetProportional(TextExitDm, 1);
- TextExitDm2 = TextDrawCreate(7.000000, 428.000000, "Use ~r~/gexit~w~ For Exit On GunGame! ~y~- ~w~Use ~r~.chat~w~ For DM Chat!");
- TextDrawBackgroundColor(TextExitDm2, 255);
- TextDrawFont(TextExitDm2, 1);
- TextDrawLetterSize(TextExitDm2, 0.410000, 1.500000);
- TextDrawColor(TextExitDm2, 0xFFFFFFAA);
- TextDrawSetOutline(TextExitDm2, 1);
- TextDrawSetProportional(TextExitDm2, 1);
- return 1;
- }
- //OnPlayerConnect
- public OnPlayerConnect(playerid)
- {
- InDM[playerid] = 0;
- InGG[playerid] = 0;
- LockDM[playerid] = 1;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- HideAllTextDraws(playerid);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(InGG[playerid] == 1)
- {
- Skills[playerid] = 0;
- pInfo[playerid][pKills] = 0;
- GameTextForPlayer(playerid, "~>~~r~Wasted~<~", 4000, 0);
- HideAllTextDraws(playerid);
- }
- if(InDM[playerid] == 1)
- {
- Skills[playerid] = 0;
- pInfo[playerid][pKills] = 0;
- GameTextForPlayer(playerid, "~>~~r~Wasted~<~", 4000, 0);
- HideAllTextDraws(playerid);
- }
- InDM[playerid] = 0;
- InGG[playerid] = 0;
- Skills[playerid] = 0;
- pInfo[playerid][pKills] = 0;
- if(InDM[killerid] == 1)
- {
- pInfo[killerid][pKills]++;
- new msg[100];
- new ammount = random(10000);
- GivePlayerMoney(killerid,ammount);
- format(msg, sizeof(msg), "You received %d money for killing a %s.",ammount, ReturnPlayerName(playerid));
- SendClientMessage(killerid,0xFFFF00AA,msg);
- }
- if(InGG[killerid] == 1)
- {
- new msg[150];
- new ammount = random(10000);
- GivePlayerMoney(killerid,ammount);
- format(msg, sizeof(msg), "You received %d money for killing a %s.",ammount, ReturnPlayerName(playerid));
- SendClientMessage(killerid,0xFFFF00AA,msg);
- pInfo[killerid][pKills]++;
- new rando = random(sizeof(RandomWeap));
- ResetPlayerWeapons(killerid),
- GivePlayerWeapon(killerid,RandomWeap[rando][0],RandomWeap[rando][1]);
- SendClientMessage(killerid,0xF5A9A9AA,"[GunGame] {D0F5A9}Your Gun Changed To The Next!");
- }
- if(InDM[killerid] || InGG[killerid] == 1)
- {
- if(killerid != INVALID_PLAYER_ID)
- {
- new KillerName[MAX_PLAYER_NAME];
- GetPlayerName(killerid, KillerName, sizeof(KillerName));
- new text[128];
- Skills[killerid] ++;
- if(Skills[killerid] == 3)
- {
- format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 3 Player In Dm!", ReturnPlayerName(killerid));
- SendClientMessageToAll(0xF27ED2FF,text);
- }
- if(Skills[killerid] == 5)
- {
- format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 5 Player In Dm!", ReturnPlayerName(killerid));
- SendClientMessageToAll(0xF27ED2FF,text);
- SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 2500 money for 5 Kills!");
- GivePlayerMoney(killerid, 2500);
- }
- if(Skills[killerid] == 10)
- {
- format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 10 Player In Dm!", ReturnPlayerName(killerid));
- SendClientMessageToAll(0xF27ED2FF,text);
- SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 5500 money for 10 Kills!");
- GivePlayerMoney(killerid, 5500);
- }
- if(Skills[killerid] == 15)
- {
- format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 15 Player In Dm!", ReturnPlayerName(killerid));
- SendClientMessageToAll(0xF27ED2FF,text);
- SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 6500 money for 15 Kills!");
- GivePlayerMoney(killerid, 6500);
- }
- if(Skills[killerid] == 20)
- {
- format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 20 Player In Dm!", ReturnPlayerName(killerid));
- SendClientMessageToAll(0xF27ED2FF,text);
- SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 9250 money for 20 Kills!");
- GivePlayerMoney(killerid, 9250);
- }
- if(Skills[killerid] == 25)
- {
- format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 25 Player In Dm!", ReturnPlayerName(killerid));
- SendClientMessageToAll(0xF27ED2FF,text);
- SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 9505 money for 25 Kills!");
- GivePlayerMoney(killerid, 9505);
- }
- if(Skills[killerid] == 30)
- {
- format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 30 Player In Dm!", ReturnPlayerName(killerid));
- SendClientMessageToAll(0xF27ED2FF,text);
- SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 10000 money for 30 Kills!");
- GivePlayerMoney(killerid, 10000);
- }
- if(Skills[killerid] == 40)
- {
- format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 40 Player In Dm!", ReturnPlayerName(killerid));
- SendClientMessageToAll(0xF27ED2FF,text);
- SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 10050 money for 40 Kills!");
- GivePlayerMoney(killerid, 10250);
- }
- if(Skills[killerid] == 50)
- {
- format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 50 Player In Dm!", ReturnPlayerName(killerid));
- SendClientMessageToAll(0xF27ED2FF,text);
- SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 12650 money for 50 Kills!");
- GivePlayerMoney(killerid, 12650);
- }
- if(Skills[killerid] == 60)
- {
- format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 60 Player In Dm!", ReturnPlayerName(killerid));
- SendClientMessageToAll(0xF27ED2FF,text);
- SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 10950 money for 60 Kills!");
- GivePlayerMoney(killerid, 10950);
- }
- if(Skills[killerid] == 100)
- {
- format(text, sizeof(text), "{FFFF00}%s {00FFAA}Killed 100 Player In Dm!", ReturnPlayerName(killerid));
- SendClientMessageToAll(0xF27ED2FF,text);
- SendClientMessage(killerid, 0x00FFAAAA, "{610B4B}You received 15000 money for 100 Kills!");
- GivePlayerMoney(killerid, 15000);
- }
- }
- }
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- new string[127];
- format(string,sizeof(string),"~G~Kills: ~w~%d",pInfo[playerid][pKills]);
- TextDrawSetString(Textdraw3,string);
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == Dialog_Join)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(InDM[playerid] || InGG[playerid]== 1) return SendClientMessage(playerid,0xF5A9A9AA,"You are currently in the DM!");
- if(ServerInfo[EnableDisableDms2] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"All DeathMatchs Disabled By Admin!");
- if(LockDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"You can not open to this DM because your manager has restricted you from DM!");
- new string[99];
- format(string, sizeof(string), "*{FF0000}%s {FFFFFF}Joined To The GunGame!",ReturnPlayerName(playerid));
- SendClientMessageToAll(0xFFFFFFFF,string);
- InGG[playerid] = 1;
- InDM[playerid] = 1;
- new rando = random(sizeof(RandomWeap));
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,RandomWeap[rando][0],RandomWeap[rando][1]);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- SetPlayerColor(playerid, 0xFFFFFFAA);
- new rand = random(sizeof(RandomSkinGunGame));
- SetPlayerSkin(playerid,RandomSkinGunGame[rand]);
- new Random = random(sizeof(RandomSpawnsInGunGameDm));
- SetPlayerPos(playerid, RandomSpawnsInGunGameDm[Random][0], RandomSpawnsInGunGameDm[Random][1], RandomSpawnsInGunGameDm[Random][2]);
- SetPlayerInterior(playerid, 14);
- TogglePlayerControllable(playerid, false);
- SetTimerEx("EndTextExitDm2", 5000, true, "ii", playerid, 1);
- SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
- TextDrawShowForPlayer(playerid,Textdraw0);
- TextDrawShowForPlayer(playerid,Textdraw1);
- TextDrawShowForPlayer(playerid,Textdraw2);
- TextDrawShowForPlayer(playerid,Textdraw3);
- TextDrawShowForPlayer(playerid,TextExitDm2);
- }
- if(listitem == 1)
- {
- if(InDM[playerid] == 1) return SendClientMessage(playerid,0xF5A9A9AA,"You are currently in the DM!");
- if(ServerInfo[EnableDisableDms2] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"All DeathMatchs Disabled By Admin!");
- if(LockDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"You can not open to this DM because your manager has restricted you from DM!");
- new string[205];
- format(string,sizeof(string),"*{FF0000}%s{FFFFFF} Joined To The SniperDm!",ReturnPlayerName(playerid));
- SendClientMessageToAll(-1,string);
- InDM[playerid] = 1;
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,34,750);
- GivePlayerWeapon(playerid,4,1);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- SetPlayerColor(playerid, 0xFFFFFFAA);
- SetPlayerSkin(playerid,299);
- TogglePlayerControllable(playerid, false);
- new Random = random(sizeof(RandomSpawnsInSnDm));
- SetPlayerPos(playerid, RandomSpawnsInSnDm[Random][0], RandomSpawnsInSnDm[Random][1], RandomSpawnsInSnDm[Random][2]);
- SetPlayerInterior(playerid, 15);
- SetTimerEx("EndTextExitDm", 5000, true, "ii", playerid, 1);
- SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
- TextDrawShowForPlayer(playerid,Textdraw0);
- TextDrawShowForPlayer(playerid,Textdraw1);
- TextDrawShowForPlayer(playerid,Textdraw4);
- TextDrawShowForPlayer(playerid,Textdraw3);
- TextDrawShowForPlayer(playerid,TextExitDm);
- }
- if(listitem == 2)
- {
- new string[205];
- format(string,sizeof(string),"*{FF0000}%s{FFFFFF} Joined To The SniperDm(2)!",ReturnPlayerName(playerid));
- SendClientMessageToAll(-1,string);
- InDM[playerid] = 1;
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,34, 950);
- GivePlayerWeapon(playerid,4, 1);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- SetPlayerColor(playerid, 0xFFFFFFAA);
- SetPlayerSkin(playerid, 299);
- TogglePlayerControllable(playerid, false);
- new Random = random(sizeof(RandomSpawnsInSn2Dm));
- SetPlayerPos(playerid, RandomSpawnsInSn2Dm[Random][0], RandomSpawnsInSn2Dm[Random][1], RandomSpawnsInSn2Dm[Random][2]);
- SetPlayerVirtualWorld( playerid, 5 );
- SetTimerEx("EndTextExitDm", 5000, true, "ii", playerid, 1);
- SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
- TextDrawShowForPlayer(playerid,Textdraw0);
- TextDrawShowForPlayer(playerid,Textdraw1);
- TextDrawShowForPlayer(playerid,Textdraw4);
- TextDrawShowForPlayer(playerid,Textdraw3);
- TextDrawShowForPlayer(playerid,TextExitDm);
- }
- if(listitem == 3)
- {
- if(InDM[playerid] == 1) return SendClientMessage(playerid,0xF5A9A9AA,"You are currently in the DM!");
- if(ServerInfo[EnableDisableDms2] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"All DeathMatchs Disabled By Admin!");
- if(LockDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"You can not open to this DM because your manager has restricted you from DM!");
- new strin[216];
- format(strin,sizeof(strin),"*{FF0000}%s {FFFFFF}Joined To The WarHouse!",ReturnPlayerName(playerid));
- SendClientMessageToAll( -1, strin);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 9, 1);
- GivePlayerWeapon(playerid, 16, 500);
- GivePlayerWeapon(playerid, 25, 500);
- GivePlayerWeapon(playerid, 28, 500);
- GivePlayerWeapon(playerid, 28, 500);
- new Random = random(sizeof(RandomSpawnsInWarDm));
- SetPlayerPos(playerid, RandomSpawnsInWarDm[Random][0], RandomSpawnsInWarDm[Random][1], RandomSpawnsInWarDm[Random][2]);
- SetPlayerInterior(playerid, 0);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- TogglePlayerControllable(playerid, false);
- SetPlayerColor(playerid, 0xFFFFFFAA);
- SetPlayerSkin(playerid, 299);
- InDM[playerid] = 1;
- SetTimerEx("EndTextExitDm", 5000, true, "ii", playerid, 1);
- SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
- TextDrawShowForPlayer(playerid,Textdraw0);
- TextDrawShowForPlayer(playerid,Textdraw1);
- TextDrawShowForPlayer(playerid,Textdraw5);
- TextDrawShowForPlayer(playerid,Textdraw3);
- TextDrawShowForPlayer(playerid,TextExitDm);
- }
- if(listitem == 4)
- {
- if(InDM[playerid] == 1) return SendClientMessage(playerid,0xF5A9A9AA,"You are currently in the DM!");
- if(ServerInfo[EnableDisableDms2] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"All DeathMatchs Disabled By Admin!");
- if(LockDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"You can not open to this DM because your manager has restricted you from DM!");
- new string[102];
- format(string, sizeof(string), "*{FF0000}%s {FFFFFF}Joined To The Stadium Duel!",ReturnPlayerName(playerid));
- SendClientMessageToAll(0xFFFFFFFF,string);
- InDM[playerid] = 1;
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 33, 500);
- GivePlayerWeapon(playerid, 31, 500);
- GivePlayerWeapon(playerid, 24, 500);
- GivePlayerWeapon(playerid, 27, 500);
- GivePlayerWeapon(playerid, 9, 1);
- new Random = random(sizeof(RandomSpawnsInDuelDm));
- SetPlayerPos(playerid, RandomSpawnsInDuelDm[Random][0], RandomSpawnsInDuelDm[Random][1], RandomSpawnsInDuelDm[Random][2]);
- SetPlayerInterior(playerid, 15);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- TogglePlayerControllable(playerid, false);
- SetPlayerColor(playerid, 0xFFFFFFAA);
- SetPlayerSkin(playerid, 299);
- SetTimerEx("EndTextExitDm", 5000, true, "ii", playerid, 1);
- SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
- TextDrawShowForPlayer(playerid,Textdraw0);
- TextDrawShowForPlayer(playerid,Textdraw1);
- TextDrawShowForPlayer(playerid,Textdraw6);
- TextDrawShowForPlayer(playerid,Textdraw3);
- TextDrawShowForPlayer(playerid,TextExitDm);
- }
- if(listitem == 5)
- {
- if(InDM[playerid] == 1) return SendClientMessage(playerid,0xF5A9A9AA,"You are currently in the DM!");
- if(ServerInfo[EnableDisableDms2] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"All DeathMatchs Disabled By Admin!");
- if(LockDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"You can not open to this DM because your manager has restricted you from DM!");
- new string[134];
- format(string, sizeof(string), "*{FF0000}%s {FFFFFF}Joined To The Runnis Stadium!",ReturnPlayerName(playerid));
- SendClientMessageToAll(0xFFFFFFFF,string);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 26, 500);
- GivePlayerWeapon(playerid, 16, 2);
- GivePlayerWeapon(playerid, 9, 2);
- GivePlayerWeapon(playerid, 32, 500);
- new Random = random(sizeof(RandomSpawnsInRunDm));
- SetPlayerPos(playerid, RandomSpawnsInRunDm[Random][0], RandomSpawnsInRunDm[Random][1], RandomSpawnsInRunDm[Random][2]);
- SetPlayerInterior(playerid, 16);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- TogglePlayerControllable(playerid, false);
- SetPlayerColor(playerid, 0xFFFFFFAA);
- SetPlayerSkin(playerid, 299);
- InDM[playerid] = 1;
- SetTimerEx("EndTextExitDm", 5000, true, "ii", playerid, 1);
- SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
- TextDrawShowForPlayer(playerid,Textdraw0);
- TextDrawShowForPlayer(playerid,Textdraw1);
- TextDrawShowForPlayer(playerid,Textdraw7);
- TextDrawShowForPlayer(playerid,Textdraw3);
- TextDrawShowForPlayer(playerid,TextExitDm);
- }
- if(listitem == 6)
- {
- if(InDM[playerid] == 1) return SendClientMessage(playerid,0xF5A9A9AA,"You are currently in the DM!");
- if(ServerInfo[EnableDisableDms2] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"All DeathMatchs Disabled By Admin!");
- if(LockDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"You can not open to this DM because your manager has restricted you from DM!");
- new string[342];
- format(string, sizeof(string), "*{FF0000}%s {FFFFFF}Joined To The Fire DM!",ReturnPlayerName(playerid));
- SendClientMessageToAll(0xFFFFFFFF,string);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 18, 10);
- GivePlayerWeapon(playerid, 27, 500);
- GivePlayerWeapon(playerid, 9, 450);
- GivePlayerWeapon(playerid, 42, 500);
- new Random = random(sizeof(RandomSpawnsInFireDm));
- SetPlayerPos(playerid, RandomSpawnsInFireDm[Random][0], RandomSpawnsInFireDm[Random][1], RandomSpawnsInFireDm[Random][2]);
- SetPlayerInterior(playerid, 3);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- TogglePlayerControllable(playerid, false);
- SetPlayerColor(playerid, 0xFFFFFFAA);
- SetPlayerSkin(playerid, 299);
- InDM[playerid] = 1;
- SetTimerEx("EndTextExitDm", 5000, true, "ii", playerid, 1);
- SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
- TextDrawShowForPlayer(playerid,Textdraw0);
- TextDrawShowForPlayer(playerid,Textdraw1);
- TextDrawShowForPlayer(playerid,Textdraw8);
- TextDrawShowForPlayer(playerid,Textdraw3);
- TextDrawShowForPlayer(playerid,TextExitDm);
- }
- if(listitem == 7)
- {
- if(TimerMDM[playerid] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"This dm has not started or you have completed your open packages to minigun dm!");
- if(InDM[playerid] == 1) return SendClientMessage(playerid,0xF5A9A9AA,"You are currently in the DM!");
- if(LockDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"You can not open to this DM because your manager has restricted you from DM!");
- if(ServerInfo[EnableDisableDms2] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"All DeathMatchs Disabled By Admin!");
- new string[324];
- format(string, sizeof(string), "*{FF0000}%s {FFFFFF}Joined To The Minigun DM!",ReturnPlayerName(playerid));
- SendClientMessageToAll(0xFFFFFFFF,string);
- ResetPlayerWeapons(playerid);
- GunMinigun(playerid);
- new Random = random(sizeof(RandomSpawnsInMiniDm));
- SetPlayerPos(playerid, RandomSpawnsInMiniDm[Random][0], RandomSpawnsInMiniDm[Random][1], RandomSpawnsInMiniDm[Random][2]);
- SetPlayerInterior(playerid, 3);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- TogglePlayerControllable(playerid, false);
- SetPlayerColor(playerid, 0xFFFFFFAA);
- SetPlayerSkin(playerid, 299);
- InDM[playerid] = 1;
- TimerMDM[playerid] --;
- SetTimerEx("EndTextExitDm", 5000, true, "ii", playerid, 1);
- SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
- TextDrawShowForPlayer(playerid,Textdraw0);
- TextDrawShowForPlayer(playerid,Textdraw1);
- TextDrawShowForPlayer(playerid,Textdraw9);
- TextDrawShowForPlayer(playerid,Textdraw3);
- TextDrawShowForPlayer(playerid,TextExitDm);
- }
- if(listitem == 8)
- {
- if(TimerMDM[playerid] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"This dm has not started or you have completed your open packages to rpg dm!");
- if(InDM[playerid] == 1) return SendClientMessage(playerid,0xF5A9A9AA,"You are currently in the DM!");
- if(ServerInfo[EnableDisableDms2] == 0) return SendClientMessage(playerid,0xF5A9A9AA,"All DeathMatchs Disabled By Admin!");
- if(LockDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"You can not open to this DM because your manager has restricted you from DM!");
- new string[49];
- format(string, sizeof(string), "*{FF0000}%s {FFFFFF}Joined To The RPG DM!",ReturnPlayerName(playerid));
- SendClientMessageToAll(0xFFFFFFFF,string);
- ResetPlayerWeapons(playerid);
- GunRPG(playerid);
- new Random = random(sizeof(RandomSpawnsInRPGDm));
- SetPlayerPos(playerid, RandomSpawnsInRPGDm[Random][0], RandomSpawnsInRPGDm[Random][1], RandomSpawnsInRPGDm[Random][2]);
- SetPlayerInterior(playerid, 3);
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- TogglePlayerControllable(playerid, false);
- SetPlayerColor(playerid, 0xFFFFFFAA);
- SetPlayerSkin(playerid, 299);
- InDM[playerid] = 1;
- TimerMDM[playerid] --;
- SetTimerEx("EndTextExitDm", 5000, true, "ii", playerid, 1);
- SetTimerEx("EndFreezeDm", 3000, false, "ii", playerid, 1);
- TextDrawShowForPlayer(playerid,Textdraw0);
- TextDrawShowForPlayer(playerid,Textdraw1);
- TextDrawShowForPlayer(playerid,Textdraw10);
- TextDrawShowForPlayer(playerid,Textdraw3);
- TextDrawShowForPlayer(playerid,TextExitDm);
- }
- if(listitem == 9)
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xF5A9A9AA,"You Must Be Rcon To Use This CMD!");
- if(ServerInfo[EnableDisableDms] == 0)
- {
- new str[92];
- format(str,sizeof(str),"All DeathMatchs Disabled By %s(%i)",ReturnPlayerName(playerid),playerid);
- SendClientMessageToAll(0xFFFFFF00,str);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- ServerInfo[EnableDisableDms] = 1;
- ServerInfo[EnableDisableDms2] = 0;
- }
- }
- else if(ServerInfo[EnableDisableDms] == 1)
- {
- new str2[90];
- format(str2,sizeof(str2),"All DeathMatchs Enabled By %s(%i)",ReturnPlayerName(playerid),playerid);
- SendClientMessageToAll(0xFFFFFF00,str2);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- ServerInfo[EnableDisableDms] = 0;
- ServerInfo[EnableDisableDms2] = 1;
- }
- return 1;
- }
- }
- return 1;
- }
- }
- if(dialogid == Dialog_Spec)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerCameraPos(playerid, -1513.0974, 1555.8337, 1078.0361);
- SetPlayerInterior(playerid, 14);
- GameTextForPlayer(playerid, "~n~~n~~n~~r~Spectating", 4000, 4);
- SetPlayerCameraLookAt(playerid, -1512.2557, 1556.3719, 1077.6871);
- }
- if(listitem == 1)
- {
- SetPlayerCameraPos(playerid, 2185.5244, -1187.5381, 1032.2285);
- SetPlayerCameraLookAt(playerid, 2186.5088, -1187.3571, 1031.9500);
- new Random = random(sizeof(RandomSpawnsInSnDm));
- SetPlayerPos(playerid, RandomSpawnsInSnDm[Random][0], RandomSpawnsInSnDm[Random][1], RandomSpawnsInSnDm[Random][2]);
- TogglePlayerControllable(playerid, false);
- SetPlayerInterior(playerid, 15);
- GameTextForPlayer(playerid, "~n~~n~~n~~r~Spectating", 4000, 4);
- }
- if(listitem == 2)
- {
- GameTextForPlayer(playerid, "~n~~n~~n~~r~Spectating", 4000, 4);
- SetPlayerCameraPos(playerid, 2153.5374, -2236.0247, 23.0537);
- SetPlayerCameraLookAt(playerid, 2153.3164, -2236.9983, 22.7437);
- }
- if(listitem == 3)
- {
- SetPlayerCameraPos(playerid, -1511.7810, 1015.4521, 1066.5496);
- SetPlayerInterior(playerid, 15);
- GameTextForPlayer(playerid, "~n~~n~~n~~r~Spectating", 4000, 4);
- SetPlayerCameraLookAt(playerid, -1510.9148, 1014.9557, 1066.0948);
- }
- if(listitem == 4)
- {
- SetPlayerCameraPos(playerid, -1457.8232, 1214.8123, 1107.1438);
- SetPlayerInterior(playerid, 16);
- GameTextForPlayer(playerid, "~n~~n~~n~~r~Spectating", 4000, 4);
- SetPlayerCameraLookAt(playerid, -1456.9370, 1215.2727, 1106.2087);
- }
- if(listitem == 5)
- {
- SetPlayerCameraPos(playerid, -2677.9175, 1422.1367, 920.0936);
- TogglePlayerControllable(playerid, false);
- SetPlayerCameraLookAt(playerid, -2677.0596, 1421.6204, 919.6352,CAMERA_CUT);
- new Random = random(sizeof(RandomSpawnsInFireDm));
- SetPlayerPos(playerid, RandomSpawnsInFireDm[Random][0], RandomSpawnsInFireDm[Random][1], RandomSpawnsInFireDm[Random][2]);
- SetPlayerInterior(playerid, 3);
- GameTextForPlayer(playerid, "~n~~n~~n~~r~Spectating", 4000, 4);
- }
- if(listitem == 6)
- {
- SetPlayerCameraPos(playerid, 2183.1794, 1193.8442, 158.0637);
- GameTextForPlayer(playerid, "~n~~n~~n~~r~Spectating", 4000, 4);
- SetPlayerVirtualWorld(playerid,5);
- SetPlayerCameraLookAt(playerid, 2183.7090, 1192.9993, 157.3437);
- }
- if(listitem == 7)
- {
- SetPlayerHealth( playerid, 0.00 );
- SendClientMessage(playerid,0x008FFFAA,"Spectating Ended.");
- }
- return 1;
- }
- }
- if(dialogid == Dialog_GetAll)
- {
- if(response)
- {
- if(listitem == 0)
- {
- new string[295];
- format(string,sizeof(string),"{FFFFFF}Admin{FF0000} %s{FFFFFF} Get All Players To {FF0000}GunGame!",ReturnPlayerName(playerid));
- SendClientMessageToAll(-1,string);
- print(string);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- HideAllTextDraws(i);
- Skills[i] = 0;
- pInfo[playerid][pKills] = 0;
- InGG[i] = 1;
- InDM[i] = 1;
- new rando = random(sizeof(RandomWeap));
- ResetPlayerWeapons(i);
- GivePlayerWeapon(i,RandomWeap[rando][0],RandomWeap[rando][1]);
- SetPlayerArmour(i, 100);
- SetPlayerHealth(i, 100);
- SetPlayerColor(i, 0xFFFFFFAA);
- new rand = random(sizeof(RandomSkinGunGame));
- SetPlayerSkin(i,RandomSkinGunGame[rand]);
- new Random = random(sizeof(RandomSpawnsInGunGameDm));
- SetPlayerPos(i, RandomSpawnsInGunGameDm[Random][0], RandomSpawnsInGunGameDm[Random][1], RandomSpawnsInGunGameDm[Random][2]);
- SetPlayerInterior(i, 14);
- TogglePlayerControllable(i, false);
- SetTimerEx("EndTextExitDm2", 5000, true, "ii", i, 1);
- SetTimerEx("EndFreezeDm", 5000, false, "ii", i, 1);
- TextDrawShowForPlayer(i,Textdraw0);
- TextDrawShowForPlayer(i,Textdraw1);
- TextDrawShowForPlayer(i,Textdraw2);
- TextDrawShowForPlayer(i,Textdraw3);
- TextDrawShowForPlayer(i,TextExitDm2);
- }
- }
- if(listitem == 1)
- {
- new string[220];
- format(string,sizeof(string),"{FFFFFF}Admin{FF0000} %s{FFFFFF} Get All Players To {FF0000}Sniper DM!",ReturnPlayerName(playerid));
- SendClientMessageToAll(-1,string);
- printf(string);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- HideAllTextDraws(i);
- Skills[i] = 0;
- pInfo[playerid][pKills] = 0;
- InDM[i] = 1;
- ResetPlayerWeapons(i);
- GivePlayerWeapon(i,34,750);
- SetPlayerArmour(i, 100);
- SetPlayerHealth(i, 100);
- SetPlayerColor(i, 0xFFFFFFAA);
- SetPlayerSkin(i,299);
- TogglePlayerControllable(i, false);
- new Random = random(sizeof(RandomSpawnsInSnDm));
- SetPlayerPos(i, RandomSpawnsInSnDm[Random][0], RandomSpawnsInSnDm[Random][1], RandomSpawnsInSnDm[Random][2]);
- SetPlayerInterior(i, 15);
- SetTimerEx("EndTextExitDm", 5000, true, "ii", i, 1);
- SetTimerEx("EndFreezeDm", 5000, false, "ii", i, 1);
- TextDrawShowForPlayer(i,Textdraw0);
- TextDrawShowForPlayer(i,Textdraw1);
- TextDrawShowForPlayer(i,Textdraw4);
- TextDrawShowForPlayer(i,Textdraw3);
- TextDrawShowForPlayer(i,TextExitDm);
- }
- }
- if(listitem == 2)
- {
- new string[205];
- format(string,sizeof(string),"{FFFFFF}Admin{FF0000} %s{FFFFFF} Get All Players To {FF0000}SniperDM{FFFFFF}({FF0000}2{FFFFFF})!",ReturnPlayerName(playerid));
- SendClientMessageToAll(-1,string);
- printf(string);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- HideAllTextDraws(i);
- Skills[i] = 0;
- pInfo[playerid][pKills] = 0;
- InDM[i] = 1;
- ResetPlayerWeapons(i);
- GivePlayerWeapon(i,34, 950);
- SetPlayerArmour(i, 100);
- SetPlayerHealth(i, 100);
- SetPlayerColor(i, 0xFFFFFFAA);
- SetPlayerSkin(i, 299);
- TogglePlayerControllable(i, false);
- new Random = random(sizeof(RandomSpawnsInSn2Dm));
- SetPlayerPos(i, RandomSpawnsInSn2Dm[Random][0], RandomSpawnsInSn2Dm[Random][1], RandomSpawnsInSn2Dm[Random][2]);
- SetPlayerVirtualWorld(i,5);
- SetTimerEx("EndTextExitDm", 5000, true, "ii", i, 1);
- SetTimerEx("EndFreezeDm", 5000, false, "ii", i, 1);
- TextDrawShowForPlayer(i,Textdraw0);
- TextDrawShowForPlayer(i,Textdraw1);
- TextDrawShowForPlayer(i,Textdraw4);
- TextDrawShowForPlayer(i,Textdraw3);
- TextDrawShowForPlayer(i,TextExitDm);
- }
- }
- if(listitem == 3)
- {
- new string[200];
- format(string,sizeof(string),"{FFFFFF}Admin{FF0000} %s{FFFFFF} Get All Players To {FF0000}WarHouse!",ReturnPlayerName(playerid));
- SendClientMessageToAll(-1,string);
- printf(string);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- Skills[i] = 0;
- pInfo[playerid][pKills] = 0;
- HideAllTextDraws(i);
- ResetPlayerWeapons(i);
- GivePlayerWeapon(i, 31, 500);
- GivePlayerWeapon(i, 34, 500);
- GivePlayerWeapon(i, 26, 500);
- GivePlayerWeapon(i, 12, 500);
- new Random = random(sizeof(RandomSpawnsInWarDm));
- SetPlayerPos(i, RandomSpawnsInWarDm[Random][0], RandomSpawnsInWarDm[Random][1], RandomSpawnsInWarDm[Random][2]);
- SetPlayerInterior(i, 0);
- SetPlayerArmour(i, 100);
- SetPlayerHealth(i, 100);
- TogglePlayerControllable(i, false);
- SetPlayerColor(i, 0xFFFFFFAA);
- SetPlayerSkin(i, 299);
- InDM[i] = 1;
- SetTimerEx("EndTextExitDm", 5000, true, "ii", i, 1);
- SetTimerEx("EndFreezeDm", 5000, false, "ii", i, 1);
- TextDrawShowForPlayer(i,Textdraw0);
- TextDrawShowForPlayer(i,Textdraw1);
- TextDrawShowForPlayer(i,Textdraw5);
- TextDrawShowForPlayer(i,Textdraw3);
- TextDrawShowForPlayer(i,TextExitDm);
- }
- }
- if(listitem == 4)
- {
- new string[180];
- format(string,sizeof(string),"{FFFFFF}Admin{FF0000} %s{FFFFFF} Get All Players To {FF0000}Stadium Duel!",ReturnPlayerName(playerid));
- SendClientMessageToAll(-1,string);
- printf(string);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- Skills[i] = 0;
- pInfo[playerid][pKills] = 0;
- HideAllTextDraws(i);
- ResetPlayerWeapons(i);
- GivePlayerWeapon(i, 29, 500);
- GivePlayerWeapon(i, 34, 500);
- GivePlayerWeapon(i, 18, 500);
- GivePlayerWeapon(i, 10, 500);
- GivePlayerWeapon(i, 21, 500);
- new Random = random(sizeof(RandomSpawnsInDuelDm));
- SetPlayerPos(i, RandomSpawnsInDuelDm[Random][0], RandomSpawnsInDuelDm[Random][1], RandomSpawnsInDuelDm[Random][2]);
- SetPlayerInterior(i, 15);
- SetPlayerArmour(i, 100);
- SetPlayerHealth(i, 100);
- TogglePlayerControllable(i, false);
- SetPlayerColor(i, 0xFFFFFFAA);
- SetPlayerSkin(i, 299);
- InDM[i] = 1;
- SetTimerEx("EndTextExitDm", 5000, true, "ii", i, 1);
- SetTimerEx("EndFreezeDm", 5000, false, "ii", i, 1);
- TextDrawShowForPlayer(i,Textdraw0);
- TextDrawShowForPlayer(i,Textdraw1);
- TextDrawShowForPlayer(i,Textdraw6);
- TextDrawShowForPlayer(i,Textdraw3);
- TextDrawShowForPlayer(i,TextExitDm);
- }
- }
- if(listitem == 5)
- {
- new string[154];
- format(string,sizeof(string),"{FFFFFF}Admin{FF0000} %s{FFFFFF} Get All Players To {FF0000}Runnis Stadium!",ReturnPlayerName(playerid));
- SendClientMessageToAll(-1,string);
- printf(string);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- Skills[i] = 0;
- pInfo[playerid][pKills] = 0;
- HideAllTextDraws(i);
- ResetPlayerWeapons(i);
- GivePlayerWeapon(i, 29, 500);
- GivePlayerWeapon(i, 34, 500);
- GivePlayerWeapon(i, 18, 2);
- GivePlayerWeapon(i, 26, 500);
- new Random = random(sizeof(RandomSpawnsInRunDm));
- SetPlayerPos(i, RandomSpawnsInRunDm[Random][0], RandomSpawnsInRunDm[Random][1], RandomSpawnsInRunDm[Random][2]);
- SetPlayerInterior(i, 16);
- SetPlayerArmour(i, 100);
- SetPlayerHealth(i, 100);
- TogglePlayerControllable(i, false);
- SetPlayerColor(i, 0xFFFFFFAA);
- SetPlayerSkin(i, 299);
- InDM[i] = 1;
- SetTimerEx("EndTextExitDm", 5000, true, "ii", i, 1);
- SetTimerEx("EndFreezeDm", 3000, false, "ii", i, 1);
- TextDrawShowForPlayer(i,Textdraw0);
- TextDrawShowForPlayer(i,Textdraw1);
- TextDrawShowForPlayer(i,Textdraw7);
- TextDrawShowForPlayer(i,Textdraw3);
- TextDrawShowForPlayer(i,TextExitDm);
- }
- }
- if(listitem == 6)
- {
- new string[220];
- format(string,sizeof(string),"{FFFFFF}Admin{FF0000} %s{FFFFFF} Get All Players To {FF0000}FireDM!",ReturnPlayerName(playerid));
- SendClientMessageToAll(-1,string);
- printf(string);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- HideAllTextDraws(i);
- Skills[i] = 0;
- pInfo[playerid][pKills] = 0;
- ResetPlayerWeapons(i);
- GivePlayerWeapon(i, 29, 500);
- GivePlayerWeapon(i, 34, 500);
- GivePlayerWeapon(i, 18, 450);
- GivePlayerWeapon(i, 26, 500);
- new Random = random(sizeof(RandomSpawnsInFireDm));
- SetPlayerPos(i, RandomSpawnsInFireDm[Random][0], RandomSpawnsInFireDm[Random][1], RandomSpawnsInFireDm[Random][2]);
- SetPlayerInterior(i, 3);
- SetPlayerArmour(i, 100);
- SetPlayerHealth(i, 100);
- TogglePlayerControllable(i, false);
- SetPlayerColor(i, 0xFFFFFFAA);
- SetPlayerSkin(i, 299);
- InDM[i] = 1;
- SetTimerEx("EndTextExitDm", 5000, true, "ii", i, 1);
- SetTimerEx("EndFreezeDm", 3000, false, "ii", i, 1);
- TextDrawShowForPlayer(i,Textdraw0);
- TextDrawShowForPlayer(i,Textdraw1);
- TextDrawShowForPlayer(i,Textdraw8);
- TextDrawShowForPlayer(i,Textdraw3);
- TextDrawShowForPlayer(i,TextExitDm);
- }
- }
- return 1;
- }
- }
- return 0;
- }
- public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
- {
- if(issuerid != INVALID_PLAYER_ID)
- {
- new str[426];
- format(str, sizeof(str),"-%.0f", amount);
- SetPlayerChatBubble(playerid, str, 0xFFFF00FF, 100.0, 2000);
- }
- return 1;
- }
- forward EndTextExitDm(playerid);
- public EndTextExitDm(playerid)
- {
- TextDrawHideForPlayer(playerid, TextExitDm);
- return 1;
- }
- forward EndTextExitDm2(playerid);
- public EndTextExitDm2(playerid)
- {
- TextDrawHideForPlayer(playerid, TextExitDm2);
- return 1;
- }
- forward EndFreezeDm(playerid);
- public EndFreezeDm(playerid)
- { GameTextForPlayer(playerid, "~r~Go", 1000, 4);
- TogglePlayerControllable(playerid, true);
- PlayerPlaySound(playerid, SOUND_GO, 0.0, 0.0, 10.0);
- return 1;
- }
- forward StartMinigunRPGDm(playerid);
- public StartMinigunRPGDm(playerid)
- {
- SendClientMessageToAll(0xFFFFAAAA,"Minigun DM & RPG DM Started! +Give All Players 5 Package Open! Use /DM For Join!");
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- TimerMDM[i] = 0; //Reset Pakage All Players
- TimerMDM[i] = 5; //Give 5 Pakage To All
- }
- return 1;
- }
- forward HideAllTextDraws(playerid);
- public HideAllTextDraws(playerid)
- {
- TextDrawHideForPlayer(playerid,Textdraw0);
- TextDrawHideForPlayer(playerid,Textdraw1);
- TextDrawHideForPlayer(playerid,Textdraw2);
- TextDrawHideForPlayer(playerid,Textdraw3);
- TextDrawHideForPlayer(playerid,Textdraw4);
- TextDrawHideForPlayer(playerid,Textdraw5);
- TextDrawHideForPlayer(playerid,Textdraw6);
- TextDrawHideForPlayer(playerid,Textdraw7);
- TextDrawHideForPlayer(playerid,Textdraw8);
- TextDrawHideForPlayer(playerid,Textdraw9);
- TextDrawHideForPlayer(playerid,Textdraw10);
- return 1;
- }
- forward GunMinigun(playerid);
- public GunMinigun(playerid)
- {
- new ammount = random(1000);
- GivePlayerWeapon(playerid, 38, ammount);
- return 1;
- }
- forward GunRPG(playerid);
- public GunRPG(playerid)
- {
- new ammount = random(500);
- GivePlayerWeapon(playerid, 35, ammount);
- return 1;
- }
- forward MapRunnisStadium();
- public MapRunnisStadium()
- {
- CreateObject(19913, -1437.17358, 1228.67102, 1044.47693, 0.00000, 0.00000, 90.00000);
- CreateObject(19913, -1438.84265, 1259.90662, 1044.38074, 0.00000, 0.00000, 48.00000);
- CreateObject(19913, -1426.70117, 1276.25464, 1044.32800, 0.00000, 0.00000, 26.00000);
- CreateObject(19913, -1413.46741, 1286.09790, 1044.33862, 0.00000, 0.00000, 2.00000);
- CreateObject(19913, -1440.85437, 1243.66125, 1044.38379, 0.00000, 0.00000, 70.00000);
- CreateObject(19913, -1396.83948, 1289.36548, 1044.35547, 0.00000, 0.00000, -20.00000);
- CreateObject(19913, -1352.34229, 1246.77502, 1044.36353, 0.00000, 0.00000, 69.00000);
- CreateObject(19913, -1353.72656, 1231.95105, 1044.36597, 0.00000, 0.00000, -132.00000);
- CreateObject(19913, -1429.50391, 1214.19739, 1044.37683, 0.00000, 0.00000, 108.00000);
- CreateObject(19913, -1420.40417, 1207.64893, 1044.41833, 0.00000, 0.00000, -56.00000);
- CreateObject(19913, -1408.30237, 1202.89758, 1044.39697, 0.00000, 0.00000, -39.00000);
- CreateObject(19913, -1392.37341, 1201.38977, 1044.36853, 0.00000, 0.00000, -18.00000);
- CreateObject(19913, -1377.65771, 1204.66748, 1044.30457, 0.00000, 0.00000, 0.00000);
- CreateObject(19913, -1366.61462, 1212.35339, 1044.31445, 0.00000, 0.00000, 18.00000);
- CreateObject(19913, -1356.76550, 1221.92773, 1044.32910, 0.00000, 0.00000, 32.00000);
- CreateObject(19913, -1361.59314, 1274.92151, 1044.37378, 0.00000, 0.00000, 105.00000);
- CreateObject(19913, -1371.31055, 1283.23352, 1044.35498, 0.00000, 0.00000, 122.00000);
- CreateObject(19913, -1355.02185, 1263.40552, 1044.29663, 0.00000, 0.00000, 89.00000);
- CreateObject(19913, -1382.08728, 1288.45313, 1044.35498, 0.00000, 0.00000, 137.00000);
- return 1;
- }
- forward MapGunGame();
- public MapGunGame()
- {
- CreateObject(13647, -1419.64709, 1568.08008, 1051.53052, 0.00000, 0.00000, 0.00000);
- CreateObject(13640, -1370.13940, 1576.90527, 1052.44165, 0.00000, 0.00000, 90.00000);
- CreateObject(13638, -1489.31458, 1616.90613, 1054.07593, 0.00000, 0.00000, 180.00000);
- CreateObject(13644, -1455.38342, 1604.47424, 1053.02490, 0.00000, 0.00000, 0.00000);
- CreateObject(13637, -1483.30127, 1583.27820, 1053.47021, 0.00000, 0.00000, -66.00000);
- return 1;
- }
- forward MessageToPlayersInDM(color,const string[]);
- public MessageToPlayersInDM(color,const string[])
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) == 1) if (InDM[i] || InGG[i] >= 1) SendClientMessage(i, color, string);
- }
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(text[0] == '.' && InDM[playerid] >= 1) {
- new string[150]; GetPlayerName(playerid,string,sizeof(string));
- format(string,sizeof(string),"{FF00FF}[DeathMatchsChat]:{FFFF00} %s[%i]: {F7BE81}%s",ReturnPlayerName(playerid),playerid,text[1]);
- MessageToPlayersInDM(0xF27ED2FF,string);
- return 0;
- }
- if(text[0] == '.' && InGG[playerid] == 1) {
- new string[50]; GetPlayerName(playerid,string,sizeof(string));
- format(string,sizeof(string),"{FF00FF}[DeathMatchsChat]:{FFFF00} %s[%i]: {F7BE81}%s",ReturnPlayerName(playerid),playerid,text[1]);
- MessageToPlayersInDM(0xF27ED2FF,string);
- return 0;
- }
- return 1;
- }
- ReturnPlayerName(playerid)
- {
- new player_name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, player_name, MAX_PLAYER_NAME);
- return player_name;
- }
- /*__________________________Cmds__________________________*/
- CMD:deathmatchs(playerid, params[])
- {
- 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");
- return 1;
- }
- CMD:dm(playerid,params[]) return cmd_deathmatchs(playerid, params);
- CMD:exit(playerid, params[])
- {
- if(InDM[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"Your Not In Any Dm!");
- if(InDM[playerid] >= 1)
- {
- Skills[playerid] = 0;
- pInfo[playerid][pKills] = 0;
- SpawnPlayer(playerid);
- InDM[playerid] = 0;
- InGG[playerid] = 0;
- SetPlayerInterior(playerid,0);
- HideAllTextDraws(playerid);
- }
- if(InGG[playerid] >= 1)
- {
- Skills[playerid] = 0;
- pInfo[playerid][pKills] = 0;
- SpawnPlayer(playerid);
- InDM[playerid] = 0;
- InGG[playerid] = 0;
- SetPlayerInterior(playerid,0);
- HideAllTextDraws(playerid);
- }
- return 1;
- }
- CMD:gexit(playerid, params[])
- {
- if(InGG[playerid] == 0) return SendClientMessage(playerid,0xFFFFFF,"Your Not In GunGame!");
- if(InGG[playerid] >= 1)
- {
- Skills[playerid] = 0;
- pInfo[playerid][pKills] = 0;
- SpawnPlayer(playerid);
- InDM[playerid] = 0;
- InGG[playerid] = 0;
- SetPlayerInterior(playerid,0);
- HideAllTextDraws(playerid);
- }
- return 1;
- }
- CMD:lockdm(playerid, params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xF5A9A9AA,"You Must Be Rcon To Use This CMD!");
- new string[128],pplayerid, reason[48];
- if(sscanf(params, "us[48]", pplayerid, reason)) return SendClientMessage(playerid, 0xFF0000AA, "{FF0000}Usage: {FFFFFF}/lockdm [Player ID/Player Name] [reason]");
- if(pplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Wrong Playerid!");
- 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);
- SendClientMessageToAll(-1,string);
- PlayerPlaySound(pplayerid, 1057, 0.0, 0.0, 0.0);
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
- LockDM[pplayerid] = 0;
- SetPlayerHealth(pplayerid,0.00);
- HideAllTextDraws(pplayerid);
- InGG[pplayerid] = 0;
- InDM[pplayerid] = 0;
- Skills[pplayerid] = 0;
- pInfo[pplayerid][pKills] = 0;
- return 1;
- }
- CMD:unlockdm(playerid, params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xF5A9A9AA,"You Must Be Rcon To Use This CMD!");
- new string[128],pplayerid;
- if(sscanf(params, "us[364]", pplayerid)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: {FFFFFF}/unlockdm [Player ID/Player Name]");
- if(pplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Wrong playerid!{FFFFFF} /unlockdm [Player ID/Player Name]");
- format(string,sizeof(string),"{FFFFFF}Admin {FF0000}%s {FFFFFF}Remove restrictions Player{FF0000} %s{FFFFFF}.",ReturnPlayerName(playerid),ReturnPlayerName(pplayerid));
- SendClientMessageToAll(-1,string);
- PlayerPlaySound(pplayerid, 1057, 0.0, 0.0, 0.0);
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
- LockDM[pplayerid] = 1;
- return 1;
- }
- CMD:specdm(playerid,params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xF5A9A9AA,"You Must Be Rcon To Use This CMD!");
- 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");
- return true;
- }
- CMD:getalltodm(playerid, params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xF5A9A9AA,"You Must Be Rcon To Use This CMD!");
- 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");
- return 1;
- }
- CMD:gatd(playerid,params[]) return cmd_getalltodm(playerid, params);
- /*__________________________Cmds__________________________*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement