Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #include <streamer>
- #include <YSI\y_ini>
- #include <sscanf2>
- #include <boxmsg>
- #include <foreach>
- main()
- {
- print("\n---------------------------");
- print(" BATTLELION v1.6 ADVANCED TDM By qazwsx");
- print(" Atualizado e Editado com autorização por Cleyson");
- print(" [TDM] World War v1.0 ");
- print("-----------------------------\n");
- }
- #define CONTAS "Contas/%s.ini"
- #define AZUL 0xFF0000FF
- #define CINZA 0xAFAFAFAAf
- #define VERDE 0x33AA33AA
- #define COLOR_BRIGHTRED 0xFF0000AA
- #define AMARELO 0xFFAF0255
- #define ROSA 0xFF66FFAA
- //#define AZUL 0x0080FF55
- #define COLOR_TAN 0xBDB76BAA
- #define COLOR_PURPLE 0x800080AA
- #define BRANCO 0xFFFFFFAA
- #define LARANJA 0xFF9900AA
- #define COLOR_INDIGO 0x4B00B0AA
- #define PRETO 0x00000000
- #define CINZAESCURO 0x696969FF
- #define AZUL 0xFF0000FF
- #define COLOR_NONE_CAPTURE 0x88C9C9CC
- //Defining Team
- #define BRASIL 0
- #define FRANCE 1
- #define USA 2
- #define ARAB 3
- #define RUSSIA 4
- #define ENGLAND 5
- #define NONE 6
- //Defining Dialogs
- #define LOGIN 0
- #define RESGISTRO 1
- #define VDIALOG 2
- #define DIALOGDUEL 3
- #define BRIEFCASE 10
- #define FEATURES 11
- #define VSHOP 12
- //Defining Dialog class
- #define DCLASS 6
- //Defining Class
- #define SOLDADOASSAULT 0
- #define SOLDADOSNIPER 1
- #define MEDICO 7
- #define MECANICO 2
- #define PILOTO 3
- #define BOMBARDEIRO 6
- #define CAPITAO 4
- #define GENERAL 5
- //Defining name of captures zone
- #define QUARRY 0
- #define UFO 1
- #define BIGEAR 2
- #define OILFIELD 3
- #define AREA51 4
- #define ABANDONED 5
- #define SNAKE 6
- #define BASIN 7
- #define BEACHSIDE 8
- #define RESTAURANT 9
- #define GAS 10
- #define STADIUM 11
- #define BRIDGE 12
- #define MOTEL 13
- #define STATION 14
- #define STUDIO 15
- #define PROJECT 16
- #define AIRPORT 17
- #define SFSTADIUM 18
- #define GOLF 19
- //Defining the weapons name in a duel
- #define COMBAT 0
- #define M4 1
- #define SHOTGUN 2
- #define DEAGLE 3
- new MSGs[7][128] =
- {
- "Pessoal por favor leiam as /regras ! ta bom ?",
- "Vocês podem saber mais em /comandos ! ;)",
- "Ta entendendo nada do Word Wars ? leia /objetivo",
- "Ola povo eu sou o BOT tom se quizerem conversar e so me chamar",
- "Pessoal por favor leiam as /regras ! ta bom ?",
- "Quer duelar com alguem a sos ? de uma olha do /ajudax1",
- "World Wars é a nova era dos TDMs confira nossa fan page /facebook"
- };
- enum pInfo
- {
- pPass,
- pCash,
- pKill,
- pDeath,
- pScores,
- pAdmin,
- Float:LastSpec,
- pVip
- }
- new PlayerInfo[MAX_PLAYERS][pInfo];
- new Logged[MAX_PLAYERS];
- //Admin Info Variable
- new Spectating[MAX_PLAYERS];
- new Duty[MAX_PLAYERS];
- //Anti Spam Stuff
- new Muted[MAX_PLAYERS];
- new AExplode[MAX_PLAYERS];
- new gPais[MAX_PLAYERS];
- new gClasse[MAX_PLAYERS];
- //Brasil random spawn
- new Float:BrasilSpawn[][]=
- {
- {-144.0366,1222.8787,19.8992},
- {-91.3313,1189.2188,19.7422},
- {-144.3653,1179.3804,19.7422}
- };
- //USA Random Spawn
- new Float:USASpawn[][]=
- {
- {-273.9471,2643.1785,62.7865},
- {-236.2266,2656.1907,62.6463},
- {-227.3011,2710.0374,62.9843}
- };
- //France Random Spawn
- new Float:FranceSpawn[][]=
- {
- {-314.1872,1774.2017,43.6406},
- {-308.0606,1772.3461,43.6406},
- {-312.4215,1799.0254,43.6331}
- };
- //Arab Random Spawn
- new Float:ArabSpawn[][]=
- {
- {-786.8586,1563.0490,27.1172},
- {-744.7610,1554.8470,28.0025},
- {-768.0215,1557.1635,27.1069}
- };
- //Russia Random Spawn
- new Float:RussiaSpawn[][]=
- {
- {-1480.1362,2593.1069,55.8359},
- {-1514.6189,2592.1829,55.8359},
- {-1520.1665,2567.8599,55.8359}
- };
- //England Random spawn
- new Float:EnglandSpawn[][]=
- {
- {1026.0166,2247.7397,10.8203},
- {1044.3496,2233.5847,10.8203},
- {1062.1794,2206.4993,10.8203}
- };
- //Hell in a Cell random spawn
- new Float:HICSpawn[][]=
- {
- {-846.7576,2629.9792,133.3514},
- {-826.0588,2578.4988,135.8853},
- {-810.3622,2596.8772,131.2852}
- };
- //Hell in a cell
- new InHIC[MAX_PLAYERS];
- //Mount Chiliad DM
- new InDM[MAX_PLAYERS];
- new UsedBomb[MAX_PLAYERS];
- new BombTimer[MAX_PLAYERS];
- new BombPlant[MAX_PLAYERS];
- //Spawn Kill
- new AntiSpawnKill[MAX_PLAYERS];
- new SpawnKill[MAX_PLAYERS];
- //Killstreak system
- new KillStreak[MAX_PLAYERS];
- //Briefcase
- new BrasilBriefcase;
- new RussianBriefcase;
- new FranceBriefcase;
- new EnglandBriefcase;
- new ArabBriefcase;
- new USABriefcase;
- // CAPTURES ZONE STUFF
- new Zone[30];
- new CP[30];
- new IsPlayerCapturing[MAX_PLAYERS][30];
- new Captured[MAX_PLAYERS][30];
- new tCheck[30];
- new UnderAttack[30];
- new timer[MAX_PLAYERS][30];
- //Duelling stuff
- new ExistDuel;
- new UsedWeaps[MAX_PLAYERS];
- new DuelMaker[MAX_PLAYERS];
- new Configured[MAX_PLAYERS];
- new IsPlayerInDuel[MAX_PLAYERS];
- //AFK SYSTEM
- new AFK[MAX_PLAYERS];
- new AFKTimer[MAX_PLAYERS];
- //Used VSHOP
- new VShop[MAX_PLAYERS];
- new HealedTeam[MAX_PLAYERS];
- new ArmoredTeam[MAX_PLAYERS];
- new Bomb;
- //Zone
- new Brasilzone;
- new USAzone;
- new Arabzone;
- new Francezone;
- new Russiazone;
- new Englandzone;
- //Textdraw
- new Text:Brasiltext;
- new Text:USAtext;
- new Text:Russiatext;
- new Text:Englandtext;
- new Text:Francetext;
- new Text:Arabtext;
- new Text:web;
- new Text:server;
- new Text:NomeServer;
- new Text:USAteam;
- new Text:Arabteam;
- new Text:Englandteam;
- new Text:Franceteam;
- new Text:Brasilteam;
- new Text:Russiateam;
- stock udb_hash(buf[])
- {
- new length=strlen(buf);
- new s1 = 1;
- new s2 = 0;
- new n;
- for (n=0; n<length; n++)
- {
- s1 = (s1 + buf[n]) % 65521;
- s2 = (s2 + s1) % 65521;
- }
- return (s2 << 16) + s1;
- }
- stock UserPath(playerid)
- {
- new file[128],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(file,sizeof(file),CONTAS,Name);
- return file;
- }
- forward LoadUser_Data(playerid,name[],value[]);
- public LoadUser_Data(playerid,name[],value[])
- {
- INI_Int("Cash",PlayerInfo[playerid][pCash]);
- INI_Int("Password",PlayerInfo[playerid][pPass]);
- INI_Int("Kill",PlayerInfo[playerid][pKill]);
- INI_Int("Death",PlayerInfo[playerid][pDeath]);
- INI_Int("Level",PlayerInfo[playerid][pAdmin]);
- INI_Int("VIP",PlayerInfo[playerid][pVip]);
- INI_Int("Scores",PlayerInfo[playerid][pScores]);
- INI_Float("Last Spec",PlayerInfo[playerid][LastSpec]);
- return 1;
- }
- public OnGameModeInit()
- {
- UsePlayerPedAnims();
- //DisableInteriorEnterExits();
- SetTimer("RandomMSGs",180000,1);
- SetGameModeText(" World War [TDM]");
- //OilField
- tCheck[OILFIELD] = NONE;
- CP[OILFIELD] = CreateDynamicCP(221.2384,1420.9762,10.5859,3,-1,-1,-1,100.0);
- Zone[OILFIELD] = GangZoneCreate(321.0501,1324.8580,71.2471,1522.6896);
- //Hunter Quarry
- tCheck[QUARRY] = NONE;
- CP[QUARRY] = CreateDynamicCP(621.7979,890.8572,-41.1028,3,-1,-1,-1,100.0);
- Zone[QUARRY] = GangZoneCreate(793.0861,1013.4042,370.4387,801.2401);
- //Big Ear
- tCheck[BIGEAR] = NONE;
- CP[BIGEAR] = CreateDynamicCP(-350.0614,1583.5765,76.4040,3,-1,-1,-1,100.0);
- Zone[BIGEAR] = GangZoneCreate(-240.8311,1473.4460,-402.6071,1620.4480);
- //UFO Zone
- tCheck[UFO] = NONE;
- CP[UFO] = CreateDynamicCP(4.2395,1369.3943,9.1719,3,-1,-1,-1,100.0);
- Zone[UFO] = GangZoneCreate(-51.9826,1312.5043,43.7309,1448.0228);
- //Area 51
- tCheck[AREA51] = NONE;
- CP[AREA51] = CreateDynamicCP(243.8955,1822.3300,4.7109,3,-1,-1,-1,100.0);
- Zone[AREA51] = GangZoneCreate(93.5300,2073.3130,384.3928,1810.8533);
- //Abandoned Airstrip
- tCheck[ABANDONED] = NONE;
- CP[ABANDONED] = CreateDynamicCP(403.5271,2448.4187,16.5000,3,-1,-1,-1,100.0);
- Zone[ABANDONED] = GangZoneCreate(466.5181,2564.1472,-90.4305,2442.8879);
- //Snake Farm
- tCheck[SNAKE] = NONE;
- CP[SNAKE] = CreateDynamicCP(-36.2617,2350.2056,24.3026,3,-1,-1,-1,100.0);
- Zone[SNAKE] = GangZoneCreate(4.1391,2303.6960,-66.5679,2392.0767);
- //Basin
- tCheck[BASIN] = NONE;
- CP[BASIN] = CreateDynamicCP(-597.1797,1963.8027,7.0000,3,-1,-1,-1,100.0);
- Zone[BASIN] = GangZoneCreate(-625.4212,1827.3645,-964.8021,2143.4541);
- //Beach Side
- tCheck[BEACHSIDE] = NONE;
- CP[BEACHSIDE] = CreateDynamicCP(-688.4477,936.8319,13.6328,3,-1,-1,-1,100.0);
- Zone[BEACHSIDE] = GangZoneCreate(-722.0542,919.9863,-649.3535,988.3495);
- //Army Restaurant
- tCheck[RESTAURANT] = NONE;
- CP[RESTAURANT] = CreateDynamicCP(-551.0908,2594.7429,53.9348,3,-1,-1,-1,100.0);
- Zone[RESTAURANT] = GangZoneCreate(-491.6069,2526.8638,-607.8930,2617.6926);
- //Gas Station
- tCheck[GAS] = NONE;
- CP[GAS] = CreateDynamicCP(664.8769,1701.0980,7.1949,3,-1,-1,-1,100.0);
- Zone[GAS] = GangZoneCreate(548.5383,1599.5879,669.9327,1785.8500);
- //Las Venturas Race Stadium
- tCheck[STADIUM] = NONE;
- CP[STADIUM] = CreateDynamicCP(1099.8395,1454.6685,12.5469,3,-1,-1,-1,100.0);
- Zone[STADIUM] = GangZoneCreate(1016.4172,1382.8154,1174.7744,1683.2684);
- //Golden Gate Bridge
- tCheck[BRIDGE] = NONE;
- CP[BRIDGE] = CreateDynamicCP(-2657.0322,1935.6600,64.3639,3,-1,-1,-1,100.0);
- Zone[BRIDGE] = GangZoneCreate(-2720.5789,2184.3894,-2663.5535,1488.5360);
- //Motel
- tCheck[MOTEL] = NONE;
- CP[MOTEL] = CreateDynamicCP(-808.0388,2759.4426,46.0000,3,-1,-1,-1,100.0);
- Zone[MOTEL] = GangZoneCreate(-701.8905,2733.3696,-914.1039,2788.2644);
- //San fierro station
- tCheck[STATION] = NONE;
- CP[STATION] = CreateDynamicCP(-1973.1788,117.6069,27.6875, 3, -1, -1, -1, 100.0);
- Zone[STATION] = GangZoneCreate(-2005.1421,219.8342,-1910.9355,-20.6220);
- //San fierro Music studio
- tCheck[STUDIO] = NONE;
- CP[STUDIO] = CreateDynamicCP(-2521.1257,-624.8945,132.7839, 3, -1, -1, -1, 100.0);
- Zone[STUDIO] = GangZoneCreate(-2458.7478,-589.5889,-2568.0571,-717.6374);
- //Construction project near doherty in san fierro
- tCheck[PROJECT] = NONE;
- CP[PROJECT] = CreateDynamicCP(-2060.4949,308.2476,35.3623, 3, -1, -1, -1, 100.0);
- Zone[PROJECT] = GangZoneCreate(-2150.8040,112.5782,-2013.4456,311.5277);
- //Briefcase
- BrasilBriefcase = CreatePickup(1210,3,-132.1471,1163.9203,19.7422,0);
- RussianBriefcase = CreatePickup(1210,3,-1486.2881,2574.4629,55.8359,0);
- ArabBriefcase = CreatePickup(1210,3,-795.6211,1556.9738,27.1244,0);
- FranceBriefcase = CreatePickup(1210,3,-320.6973,1800.5728,42.7813,0);
- EnglandBriefcase = CreatePickup(1210,3,1052.5883,2255.3054,10.8203,0);
- USABriefcase = CreatePickup(1210,3,-265.9566,2606.6392,62.8582,0);
- AddPlayerClass(293,-144.0366,1222.8787,19.8992,176.9380,0,0,0,0,0,0); // Brasilpawn1
- AddPlayerClass(285,-314.1872,1774.2017,43.6406,137.0719,0,0,0,0,0,0); // francespawn
- AddPlayerClass(179,-786.8586,1563.0490,27.1172,1.3842,0,0,0,0,0,0); // arabspawn1
- AddPlayerClass(287,-273.9471,2643.1785,62.7865,182.0460,0,0,0,0,0,0); // usaspawn1
- AddPlayerClass(111,-1480.1362,2593.1069,55.8359,354.9003,0,0,0,0,0,0); // russiaspawn1
- AddPlayerClass(126,1026.0166,2247.7397,10.8203,79.4094,0,0,0,0,0,0); // englandspawn1
- //textdraw for class selection
- USAteam = TextDrawCreate(253.5 ,229 , "EUA");
- TextDrawFont(USAteam , 3);
- TextDrawLetterSize(USAteam , 1.8, 2.8);
- TextDrawColor(USAteam , AZUL);
- TextDrawSetOutline(USAteam , false);
- TextDrawSetProportional(USAteam , true);
- TextDrawSetShadow(USAteam , 1);
- Arabteam = TextDrawCreate(275.5 ,220 , "Arabia");
- TextDrawFont(Arabteam , 3);
- TextDrawLetterSize(Arabteam , 1.8, 2.8);
- TextDrawColor(Arabteam , 0xe6b947FF);
- TextDrawSetOutline(Arabteam , false);
- TextDrawSetProportional(Arabteam , true);
- TextDrawSetShadow(Arabteam , 1);
- Englandteam = TextDrawCreate(259.5 ,227 , "Inglaterra");
- TextDrawFont(Englandteam , 3);
- TextDrawLetterSize(Englandteam , 1.8, 2.8);
- TextDrawColor(Englandteam , BRANCO);
- TextDrawSetOutline(Englandteam , false);
- TextDrawSetProportional(Englandteam , true);
- TextDrawSetShadow(Englandteam , 1);
- Brasilteam = TextDrawCreate(256.5 ,234 , "Brasil");
- TextDrawFont(Brasilteam , 3);
- TextDrawLetterSize(Brasilteam , 1.8, 2.8);
- TextDrawColor(Brasilteam , VERDE);
- TextDrawSetOutline(Brasilteam , false);
- TextDrawSetProportional(Brasilteam , true);
- TextDrawSetShadow(Brasilteam , 1);
- Russiateam = TextDrawCreate(286.5 ,239 , "Russia");
- TextDrawFont(Russiateam , 3);
- TextDrawLetterSize(Russiateam , 1.8, 2.8);
- TextDrawColor(Russiateam , 0x6c45edFF);
- TextDrawSetOutline(Russiateam , false);
- TextDrawSetProportional(Russiateam , true);
- TextDrawSetShadow(Russiateam , 1);
- Franceteam = TextDrawCreate(272.5 ,237 , "Franca");
- TextDrawFont(Franceteam , 3);
- TextDrawLetterSize(Franceteam , 1.8, 2.8);
- TextDrawColor(Franceteam , 0xf5b14cFF);
- TextDrawSetOutline(Franceteam , false);
- TextDrawSetProportional(Franceteam , true);
- TextDrawSetShadow(Franceteam , 1);
- NomeServer = TextDrawCreate(7.0, 431.0, "World War");
- TextDrawBackgroundColor(NomeServer, 255);
- TextDrawFont(NomeServer, 3);
- TextDrawLetterSize(NomeServer, 0.5, 1.2);
- TextDrawColor(NomeServer, -1);
- TextDrawSetOutline(NomeServer, true);
- TextDrawSetProportional(NomeServer, true);
- //Simple AFK Zone
- CreateObject(2627, 1833.80237, -1309.74817, 86.52841, 0.00000, 0.00000, -91.13998);
- CreateObject(2627, 1833.75708, -1306.76855, 86.52841, 0.00000, 0.00000, -91.13998);
- CreateObject(2627, 1833.95605, -1302.21863, 86.52841, 0.00000, 0.00000, -91.13998);
- CreateObject(2627, 1834.17651, -1297.82275, 86.52841, 0.00000, 0.00000, -91.13998);
- CreateObject(2628, 1828.71716, -1297.77026, 86.57931, 0.00000, 0.00000, 0.00000);
- CreateObject(2627, 1834.35278, -1291.81873, 86.52841, 0.00000, 0.00000, -91.13998);
- CreateObject(2627, 1834.58728, -1285.46533, 86.52841, 0.00000, 0.00000, -91.13998);
- CreateObject(2638, 1811.61621, -1300.36487, 87.11104, 0.00000, 0.00000, 82.19997);
- CreateObject(2638, 1811.82275, -1298.10925, 87.11104, 0.00000, 0.00000, 86.64002);
- CreateObject(955, 1818.10559, -1288.56958, 86.82449, 0.00000, 0.00000, -94.49998);
- CreateObject(2638, 1811.98132, -1295.98303, 87.11104, 0.00000, 0.00000, 86.64002);
- CreateObject(638, 1817.90625, -1300.46423, 87.28287, 0.00000, 0.00000, 0.00000);
- CreateObject(638, 1817.90479, -1296.23669, 87.28287, 0.00000, 0.00000, 0.00000);
- CreateObject(638, 1817.83264, -1292.19458, 87.28287, 0.00000, 0.00000, 0.00000);
- CreateObject(638, 1815.43408, -1301.38672, 87.28287, 0.00000, 0.00000, -93.23997);
- CreateObject(638, 1811.68274, -1301.32129, 87.28287, 0.00000, 0.00000, -93.23997);
- CreateObject(3051, 1785.01843, -1301.55505, 92.84725, 0.00000, 0.00000, -37.92000);
- CreateObject(3051, 1785.92236, -1301.52686, 92.84725, 0.00000, 0.00000, -37.92000);
- CreateObject(3051, 1787.11194, -1301.53259, 92.84725, 0.00000, 0.00000, -37.92000);
- CreateObject(3051, 1788.06897, -1301.52136, 92.84725, 0.00000, 0.00000, -37.92000);
- CreateObject(3051, 1786.51245, -1301.54260, 92.84725, 0.00000, 0.00000, -37.92000);
- CreateObject(3051, 1784.88428, -1301.55566, 92.84725, 0.00000, 0.00000, -37.92000);
- //USA Base
- CreateObject(3749, -143.44405, 2635.68823, 68.13203, 0.00000, 0.00000, 92.88000);
- CreateObject(987, -141.83218, 2645.61670, 62.69147, 0.00000, 0.00000, 92.04002);
- CreateObject(987, -142.22502, 2657.45898, 62.20262, 0.00000, 0.00000, 92.04002);
- CreateObject(987, -142.18954, 2668.00195, 61.35778, 0.00000, 0.00000, 91.98003);
- CreateObject(987, -141.79443, 2678.38794, 61.35412, 0.00000, 0.00000, 91.98003);
- CreateObject(987, -142.57678, 2690.17065, 61.32923, 0.00000, 0.00000, 91.98003);
- CreateObject(987, -143.06248, 2701.94238, 61.19660, 0.00000, 0.00000, 91.98003);
- CreateObject(987, -143.41924, 2713.92212, 60.93741, 0.00000, 0.00000, 91.98003);
- CreateObject(987, -143.34697, 2725.80078, 60.49798, 0.00000, 0.00000, 30.06002);
- CreateObject(987, -156.02478, 2597.39209, 57.16665, 0.00000, 0.00000, 59.28001);
- CreateObject(987, -149.81326, 2607.44824, 58.15889, 0.00000, 0.00000, 74.28008);
- CreateObject(987, -146.67737, 2618.64868, 60.52200, 0.00000, 0.00000, 73.50009);
- CreateObject(987, -165.85417, 2590.69507, 55.71833, 0.00000, 0.00000, 38.94001);
- CreateObject(987, -177.00473, 2589.02026, 55.29672, 0.00000, 0.00000, 10.56000);
- CreateObject(987, -188.06581, 2590.29858, 55.05135, 0.00000, 0.00000, -5.28000);
- CreateObject(987, -199.62314, 2589.95532, 58.08915, 0.00000, 0.00000, -5.28000);
- CreateObject(987, -211.28972, 2591.06689, 60.88651, 0.00000, 0.00000, -4.86000);
- CreateObject(987, -162.02985, 2593.69336, 55.71833, 0.00000, 0.00000, 38.88000);
- CreateObject(987, -223.09227, 2591.89185, 60.88651, 0.00000, 0.00000, -4.86000);
- CreateObject(987, -234.82062, 2592.21265, 60.88651, 0.00000, 0.00000, -3.84000);
- CreateObject(987, -245.82745, 2593.21802, 60.88651, 0.00000, 0.00000, -4.86000);
- CreateObject(3627, -203.26088, 2725.19800, 61.66415, 0.00000, 0.00000, 181.37987);
- CreateObject(3749, -380.88376, 2693.08740, 68.11394, 0.00000, 0.00000, 29.34000);
- CreateObject(987, -398.70822, 2695.76147, 62.81682, 0.00000, 0.00000, -37.43997);
- CreateObject(987, -409.68478, 2700.41797, 61.98143, 0.00000, 0.00000, -21.89997);
- CreateObject(987, -417.74490, 2702.86450, 60.68196, 0.00000, 0.00000, -17.87997);
- CreateObject(987, -373.50537, 2699.80151, 61.25262, 0.00000, 0.00000, 129.83995);
- CreateObject(987, -381.65036, 2709.15552, 61.25262, 0.00000, 0.00000, 135.65994);
- CreateObject(987, -390.48630, 2717.64966, 61.25262, 0.00000, 0.00000, 148.19997);
- CreateObject(987, -394.13882, 2719.89575, 61.25262, 0.00000, 0.00000, 150.47995);
- CreateObject(7091, -381.97327, 2694.81104, 69.92089, 0.00000, 0.00000, 129.77998);
- CreateObject(18850, -227.94589, 2726.39502, 50.21958, 0.00000, 0.00000, 90.59999);
- CreateObject(987, -297.66248, 2588.19263, 59.85277, 0.00000, 0.00000, -2.22000);
- CreateObject(987, -297.64285, 2588.18872, 59.85277, 0.00000, 0.00000, -2.22000);
- CreateObject(987, -306.16199, 2596.69849, 60.95236, 0.00000, 0.00000, -38.27998);
- CreateObject(987, -315.23065, 2603.90649, 61.73264, 0.00000, 0.00000, -38.27998);
- CreateObject(987, -323.86050, 2611.83911, 62.54288, 0.00000, 0.00000, -38.27998);
- CreateObject(987, -325.66202, 2623.85156, 62.54288, 0.00000, 0.00000, -74.58001);
- CreateObject(987, -326.67789, 2626.73633, 62.54288, 0.00000, 0.00000, -74.58001);
- CreateObject(987, -135.10069, 2730.50928, 66.28409, 0.00000, 0.00000, 31.08002);
- CreateObject(987, -126.03819, 2736.37158, 66.28409, 0.00000, 0.00000, 87.96001);
- CreateObject(987, -124.55650, 2748.96436, 66.28409, 0.00000, 0.00000, 87.96001);
- CreateObject(987, -122.82605, 2762.12793, 66.28409, 0.00000, 0.00000, 87.96001);
- CreateObject(987, -386.86578, 2686.10645, 62.81682, 0.00000, 0.00000, -65.27998);
- CreateObject(987, -383.78967, 2679.23096, 63.74162, 0.00000, 0.00000, -62.33996);
- CreateObject(19361, -253.93460, 2605.59644, 62.86180, 0.00000, 0.00000, 91.56001);
- CreateObject(1491, -252.15242, 2605.47998, 61.85031, 0.00000, 0.00000, 0.00000);
- CreateObject(1491, -250.65959, 2605.53906, 61.85031, 0.00000, 0.00000, 0.00000);
- CreateObject(19361, -247.39757, 2605.73560, 62.86180, 0.00000, 0.00000, 91.56001);
- CreateObject(19361, -246.83383, 2605.78613, 62.86180, 0.00000, 0.00000, 91.56001);
- CreateObject(19361, -245.42514, 2601.06030, 62.86180, 0.00000, 0.00000, 180.66011);
- CreateObject(19361, -245.47653, 2604.29126, 62.86180, 0.00000, 0.00000, 180.66011);
- CreateObject(19361, -245.38631, 2598.03003, 62.86180, 0.00000, 0.00000, 180.66011);
- CreateObject(19361, -245.42514, 2601.06030, 62.86180, 0.00000, 0.00000, 180.66011);
- CreateObject(19361, -245.35898, 2595.27832, 62.86180, 0.00000, 0.00000, 180.66011);
- CreateObject(19390, -250.64673, 2605.63257, 63.28755, 0.00000, 0.00000, 91.97999);
- CreateObject(19390, -248.34424, 2593.27930, 64.14415, 0.00000, 0.00000, 91.97999);
- CreateObject(19361, -253.79369, 2605.58350, 62.86180, 0.00000, 0.00000, 91.56001);
- CreateObject(14805, -249.78220, 2599.12305, 62.31296, 0.00000, 0.00000, -84.72009);
- CreateObject(3094, -247.88042, 2598.20850, 61.84872, 0.00000, 0.00000, 4.32000);
- CreateObject(19361, -245.37849, 2595.31055, 66.32496, 0.00000, 0.00000, 181.08009);
- CreateObject(19361, -245.47380, 2598.46436, 66.32496, 0.00000, 0.00000, 181.08009);
- CreateObject(19361, -245.49577, 2601.54565, 66.32496, 0.00000, 0.00000, 181.08009);
- CreateObject(19361, -245.55092, 2604.01270, 66.32496, 0.00000, 0.00000, 181.08009);
- CreateObject(19361, -251.55960, 2593.18579, 64.14163, 0.00000, 0.00000, 91.56001);
- CreateObject(19361, -245.67992, 2593.33765, 64.14163, 0.00000, 0.00000, 91.56001);
- CreateObject(1491, -249.92465, 2593.33325, 62.38810, 0.00000, 0.00000, 0.00000);
- CreateObject(1491, -248.47728, 2593.38940, 62.38810, 0.00000, 0.00000, 0.00000);
- CreateObject(987, -288.83215, 2593.81885, 59.85277, 0.00000, 0.00000, 7.50000);
- CreateObject(987, -299.54468, 2591.86401, 59.85277, 0.00000, 0.00000, 10.86000);
- AddStaticVehicleEx(470, -314.4819, 1515.0563, 74.6196, 1.0800, -1, -1, 150);
- AddStaticVehicleEx(470, -317.8907, 1514.9899, 74.6196, 0.4200, -1, -1, 150);
- AddStaticVehicleEx(470, -321.1856, 1515.1089, 74.6196, 0.4200, -1, -1, 150);
- AddStaticVehicleEx(470, -324.3321, 1515.3081, 74.6196, 0.2400, -1, -1, 150);
- AddStaticVehicleEx(470, -327.7700, 1515.1003, 74.6196, 0.4200, -1, -1, 150);
- AddStaticVehicleEx(461, -199.1041, 2739.2107, 62.0206, 181.0200, -1, -1, 150);
- AddStaticVehicleEx(461, -201.6959, 2738.5757, 62.0206, 181.0200, -1, -1, 150);
- AddStaticVehicleEx(461, -203.8460, 2738.5190, 62.0206, 181.0200, -1, -1, 150);
- AddStaticVehicleEx(470, -199.2373, 2729.4673, 61.6772, 0.0000, -1, -1, 150);
- AddStaticVehicleEx(470, -202.3681, 2714.7815, 61.6772, 87.0600, -1, -1, 150);
- AddStaticVehicleEx(470, -201.6902, 2726.1926, 61.6772, 87.0600, -1, -1, 150);
- AddStaticVehicleEx(520, -228.2592, 2728.7087, 63.0481, 3.0600, -1, -1, 150);
- AddStaticVehicleEx(470, -237.5010, 2609.3389, 61.8505, 0.3600, -1, -1, 100);
- AddStaticVehicleEx(470, -231.5939, 2609.1050, 61.8505, 0.0000, -1, -1, 100);
- AddStaticVehicleEx(470, -243.5108, 2609.3801, 61.8505, 0.3600, -1, -1, 100);
- AddStaticVehicleEx(432, -212.4549, 2608.5825, 61.6847, 0.0000, -1, -1, 100);
- AddStaticVehicleEx(432, -205.9130, 2608.3987, 61.6847, 0.0000, -1, -1, 100);
- AddStaticVehicleEx(432, -198.9789, 2607.8083, 61.6847, 0.0000, -1, -1, 100);
- AddStaticVehicleEx(520, -221.3014, 2602.7019, 62.2515, 0.0000, -1, -1, 100);
- AddStaticVehicleEx(447, -250.1350, 2582.2188, 63.4356, -180.8400, -1, -1, 100);
- AddStaticVehicleEx(447, -258.5356, 2583.6543, 63.4356, -180.8400, -1, -1, 100);
- AddStaticVehicleEx(447, -267.2936, 2584.8599, 63.4356, -180.8999, -1, -1, 100);
- AddStaticVehicleEx(447, -277.3560, 2585.8018, 63.4356, -180.8999, -1, -1, 100);
- AddStaticVehicleEx(425, -257.2518, 2616.3379, 62.5419, 90.4800, -1, -1, 100);
- AddStaticVehicleEx(425, -277.8891, 2617.1660, 62.5419, 93.0000, -1, -1, 100);
- AddStaticVehicleEx(425, -290.2361, 2603.2656, 62.5419, 187.3200, -1, -1, 100);
- AddStaticVehicleEx(425, -301.8882, 2602.1050, 62.5419, 187.3200, -1, -1, 100);
- AddStaticVehicleEx(425, -303.3350, 2618.5242, 62.5419, 93.0000, -1, -1, 100);
- AddStaticVehicleEx(520, -158.7146, 2731.9724, 61.8970, 83.9400, -1, -1, 100);
- AddStaticVehicleEx(520, -159.3616, 2716.4102, 61.8970, 83.9400, -1, -1, 100);
- AddStaticVehicleEx(520, -160.4530, 2703.3176, 61.8970, 89.5200, -1, -1, 100);
- AddStaticVehicleEx(520, -159.3748, 2687.0505, 61.8970, 89.3400, -1, -1, 100);
- AddStaticVehicleEx(520, -158.9906, 2670.8633, 62.5717, 89.2800, -1, -1, 100);
- AddStaticVehicleEx(520, -159.9136, 2662.5676, 63.2620, 89.1000, -1, -1, 100);
- //base map Brasil
- CreateObject(3749, -117.94898, 1245.98218, 21.43558, 0.00000, 0.00000, 9.24000);
- CreateObject(987, -108.35272, 1245.64587, 14.37146, 0.00000, 0.00000, 7.02000);
- CreateObject(987, -97.25953, 1246.63721, 13.61889, 0.00000, 0.00000, 4.02000);
- CreateObject(987, -85.30552, 1247.45581, 13.53324, 0.00000, 0.00000, 4.02000);
- CreateObject(987, -73.46326, 1247.76843, 13.53324, 0.00000, 0.00000, 6.84000);
- CreateObject(987, -61.49105, 1248.84827, 13.26093, 0.00000, 0.00000, 6.84000);
- CreateObject(987, -49.82125, 1249.69116, 12.83415, 0.00000, 0.00000, 7.02000);
- CreateObject(987, -37.00455, 1250.05762, 12.01260, 0.00000, 0.00000, 7.02000);
- CreateObject(987, -25.09912, 1250.79309, 10.55881, 0.00000, 0.00000, 2.04000);
- CreateObject(987, -13.79858, 1251.26440, 10.55881, 0.00000, 0.00000, 2.22000);
- CreateObject(987, -3.47302, 1252.07800, 10.55881, 0.00000, 0.00000, -13.14000);
- CreateObject(987, -40.00960, 1249.76794, 12.01260, 0.00000, 0.00000, 7.02000);
- CreateObject(987, 7.72754, 1249.54224, 10.55881, 0.00000, 0.00000, -13.20000);
- CreateObject(987, 19.00318, 1246.74304, 12.20000, 0.00000, 0.00000, -13.20000);
- CreateObject(987, 30.53748, 1243.99316, 14.56580, 0.00000, 0.00000, -13.08000);
- CreateObject(987, 42.13554, 1241.22888, 14.56580, 0.00000, 0.00000, -13.08000);
- CreateObject(987, 53.16895, 1238.85339, 14.56580, 0.00000, 0.00000, -21.78001);
- CreateObject(987, 64.02823, 1234.20239, 16.16684, 0.00000, 0.00000, -21.48001);
- CreateObject(987, 74.21346, 1230.42627, 16.16684, 0.00000, 0.00000, -24.48001);
- CreateObject(987, 85.32027, 1224.47559, 17.63095, 0.00000, 0.00000, -32.16001);
- CreateObject(987, 95.37110, 1218.02637, 17.63095, 0.00000, 0.00000, -52.37999);
- CreateObject(987, 102.72379, 1208.54077, 17.63095, 0.00000, 0.00000, -52.37999);
- CreateObject(987, 109.85915, 1199.04883, 17.63095, 0.00000, 0.00000, -93.83999);
- CreateObject(987, 104.66291, 1174.44812, 17.63095, 0.00000, 0.00000, -93.83999);
- CreateObject(987, 109.00822, 1187.12854, 17.63095, 0.00000, 0.00000, -93.83999);
- CreateObject(987, 108.05228, 1175.37866, 17.63095, 0.00000, 0.00000, -93.83999);
- CreateObject(987, 107.30560, 1163.90027, 17.63095, 0.00000, 0.00000, -93.77999);
- CreateObject(987, 106.04839, 1152.96460, 17.12340, 0.00000, 0.00000, -184.62003);
- CreateObject(987, 94.16957, 1153.85571, 17.12340, 0.00000, 0.00000, -184.62003);
- CreateObject(987, 84.55934, 1154.32629, 17.12340, 0.00000, 0.00000, -184.62003);
- CreateObject(987, 72.64340, 1155.35571, 17.12340, 0.00000, 0.00000, -177.47998);
- CreateObject(987, 60.70780, 1154.80786, 17.12340, 0.00000, 0.00000, -177.47998);
- CreateObject(987, 48.74080, 1154.24438, 17.12340, 0.00000, 0.00000, -177.47998);
- CreateObject(987, 39.38115, 1132.29639, 17.12340, 0.00000, 0.00000, -269.03989);
- CreateObject(987, 38.15394, 1155.92847, 17.12340, 0.00000, 0.00000, -84.89998);
- CreateObject(987, 39.42833, 1120.28308, 17.12340, 0.00000, 0.00000, -269.03989);
- CreateObject(987, 39.42386, 1108.47058, 17.12340, 0.00000, 0.00000, -269.69986);
- CreateObject(987, 37.57386, 1097.24011, 17.12340, 0.00000, 0.00000, -279.35983);
- CreateObject(987, 30.29461, 1088.57751, 17.12340, 0.00000, 0.00000, -309.23981);
- CreateObject(987, 18.62357, 1087.87732, 17.12340, 0.00000, 0.00000, -356.93982);
- CreateObject(987, -5.47304, 1051.48083, 17.12340, 0.00000, 0.00000, -270.47971);
- CreateObject(987, -5.65904, 1039.73291, 17.12340, 0.00000, 0.00000, -270.47971);
- CreateObject(987, -6.25693, 1028.24109, 17.12340, 0.00000, 0.00000, -272.45963);
- CreateObject(987, -11.56853, 1017.13409, 17.12340, 0.00000, 0.00000, -296.27945);
- CreateObject(987, -21.43148, 1010.51788, 17.12340, 0.00000, 0.00000, -325.67935);
- CreateObject(987, -32.61505, 1006.90967, 17.82045, 0.00000, 0.00000, -340.73929);
- CreateObject(987, -44.58681, 1008.09583, 17.82045, 0.00000, 0.00000, -364.91934);
- CreateObject(987, -56.85416, 1008.55115, 17.82045, 0.00000, 0.00000, -364.91934);
- CreateObject(987, -68.50488, 1009.94238, 17.82045, 0.00000, 0.00000, -364.91934);
- CreateObject(987, -77.71033, 1017.35522, 17.82045, 0.00000, 0.00000, -397.31934);
- CreateObject(987, -80.32636, 1028.69250, 17.82045, 0.00000, 0.00000, -437.33923);
- CreateObject(987, -81.57175, 1040.58826, 17.82045, 0.00000, 0.00000, -444.29926);
- CreateObject(987, -80.66316, 1052.46594, 17.82045, 0.00000, 0.00000, -452.81934);
- CreateObject(987, -80.06864, 1064.40869, 17.82045, 0.00000, 0.00000, -452.87933);
- CreateObject(987, -80.40147, 1067.55969, 17.82045, 0.00000, 0.00000, -452.93933);
- CreateObject(987, -54.72144, 1008.88190, 17.82045, 0.00000, 0.00000, -364.97934);
- CreateObject(3749, -193.03320, 951.31427, 20.71482, 0.00000, 0.00000, 0.00000);
- CreateObject(987, -183.59485, 950.37976, 14.97472, 0.00000, 0.00000, -358.85944);
- CreateObject(987, -171.73183, 950.59314, 14.97472, 0.00000, 0.00000, -358.97943);
- CreateObject(987, -213.80399, 949.66144, 14.97472, 0.00000, 0.00000, -358.85944);
- CreateObject(987, -159.71703, 950.70233, 16.20727, 0.00000, 0.00000, -359.03943);
- CreateObject(987, -147.52090, 951.10461, 17.58963, 0.00000, 0.00000, -359.09943);
- CreateObject(16737, -91.02970, 922.20483, 26.17969, 356.85840, 0.00000, 3.14159);
- CreateObject(987, -135.70891, 951.19806, 18.64198, 0.00000, 0.00000, -359.09943);
- CreateObject(987, -124.17487, 951.14075, 19.17500, 0.00000, 0.00000, -359.09943);
- CreateObject(987, -112.75116, 951.11377, 19.17500, 0.00000, 0.00000, -359.09943);
- CreateObject(987, -100.87405, 951.24231, 19.17500, 0.00000, 0.00000, -361.55942);
- CreateObject(987, -89.11709, 950.81134, 19.17500, 0.00000, 0.00000, -362.27942);
- CreateObject(987, -78.09285, 950.49847, 19.17500, 0.00000, 0.00000, -362.27942);
- CreateObject(987, -68.83374, 950.41986, 19.17500, 0.00000, 0.00000, -270.89951);
- CreateObject(987, -68.46243, 962.30469, 19.17500, 0.00000, 0.00000, -270.89951);
- CreateObject(987, -68.15705, 974.08905, 19.17500, 0.00000, 0.00000, -263.69946);
- CreateObject(987, -69.31281, 985.76971, 19.17500, 0.00000, 0.00000, -264.11948);
- CreateObject(987, -70.44214, 997.70374, 19.17500, 0.00000, 0.00000, -264.65948);
- CreateObject(987, -139.16997, 1242.61438, 18.78147, 0.00000, 0.00000, 13.02000);
- CreateObject(987, -150.63832, 1240.79529, 20.05954, 0.00000, 0.00000, 15.30000);
- CreateObject(987, -162.33025, 1238.97205, 20.58851, 0.00000, 0.00000, 10.98000);
- CreateObject(987, -174.02657, 1236.60229, 20.58851, 0.00000, 0.00000, 10.98000);
- CreateObject(987, -185.86171, 1234.52368, 20.58851, 0.00000, 0.00000, 10.80000);
- CreateObject(987, -197.72884, 1232.61719, 21.13993, 0.00000, 0.00000, 10.80000);
- CreateObject(987, -209.44702, 1230.82654, 21.13993, 0.00000, 0.00000, 10.80000);
- CreateObject(987, -225.73663, 949.43439, 14.97472, 0.00000, 0.00000, -359.57935);
- CreateObject(987, -237.42476, 949.31317, 14.97472, 0.00000, 0.00000, -359.33936);
- CreateObject(987, -225.73663, 949.43439, 14.97472, 0.00000, 0.00000, -359.57935);
- CreateObject(987, -248.93628, 948.99738, 14.97472, 0.00000, 0.00000, -359.33936);
- CreateObject(987, -261.05090, 949.04999, 14.97472, 0.00000, 0.00000, -359.33936);
- CreateObject(987, -270.94870, 955.62708, 14.97472, 0.00000, 0.00000, -393.53928);
- CreateObject(987, -277.45786, 965.66895, 15.02149, 0.00000, 0.00000, -416.99924);
- CreateObject(987, -283.89142, 975.67450, 16.08430, 0.00000, 0.00000, -417.59921);
- CreateObject(987, -283.90628, 975.68793, 16.08430, 0.00000, 0.00000, -417.59921);
- CreateObject(987, -282.09573, 987.30792, 16.87479, 0.00000, 0.00000, -458.81918);
- AddStaticVehicleEx(470, -177.2223, 1225.4535, 18.7215, -83.5800, -1, -1, 100);
- AddStaticVehicleEx(470, -177.0979, 1219.7916, 18.7215, -90.0600, -1, -1, 100);
- AddStaticVehicleEx(470, -176.7035, 1214.2660, 18.7215, -90.0600, -1, -1, 100);
- AddStaticVehicleEx(432, -172.0444, 1230.7631, 19.4986, 186.9600, -1, -1, 100);
- AddStaticVehicleEx(432, -164.6237, 1231.6057, 19.4986, 186.9600, -1, -1, 100);
- AddStaticVehicleEx(432, -157.9165, 1231.5063, 19.4986, 183.6600, -1, -1, 100);
- AddStaticVehicleEx(520, -160.9937, 1216.0015, 19.1342, 86.1000, -1, -1, 100);
- AddStaticVehicleEx(409, -143.4496, 1220.7692, 19.0790, 89.1000, -1, -1, 100);
- AddStaticVehicleEx(409, -151.8961, 1220.5483, 19.0790, 89.1000, -1, -1, 100);
- AddStaticVehicleEx(409, -143.4496, 1220.7692, 19.0790, 89.1000, -1, -1, 100);
- AddStaticVehicleEx(409, -134.5577, 1220.6621, 19.0790, 89.1000, -1, -1, 100);
- AddStaticVehicleEx(468, -86.4779, 1223.5990, 18.9488, 176.6400, -1, -1, 100);
- AddStaticVehicleEx(468, -89.2250, 1223.0953, 18.9488, 176.6400, -1, -1, 100);
- AddStaticVehicleEx(468, -91.9852, 1222.8391, 18.9488, 177.4199, -1, -1, 100);
- AddStaticVehicleEx(470, -81.5119, 1221.0302, 18.7219, 183.6000, -1, -1, 100);
- AddStaticVehicleEx(470, -96.7781, 1221.1119, 18.7219, 181.6801, -1, -1, 100);
- AddStaticVehicleEx(470, -101.6816, 1221.5187, 18.7219, 182.4601, -1, -1, 100);
- AddStaticVehicleEx(432, -93.5244, 1213.1136, 18.9454, 89.1600, -1, -1, 100);
- AddStaticVehicleEx(432, -82.3491, 1213.7875, 18.9454, 89.1600, -1, -1, 100);
- //Arabian base map
- CreateObject(3749, -836.55420, 1400.90662, 17.83293, 0.00000, 0.00000, 26.94000);
- CreateObject(3749, -871.20465, 1636.43860, 31.75134, 0.00000, 0.00000, 35.09998);
- AddStaticVehicleEx(470, -866.1010, 1566.4028, 23.6926, -87.9000, -1, -1, 100);
- AddStaticVehicleEx(470, -865.7885, 1560.4009, 23.6137, -85.7400, -1, -1, 100);
- AddStaticVehicleEx(470, -865.0686, 1553.9182, 22.8808, -85.7400, -1, -1, 100);
- AddStaticVehicleEx(470, -864.9500, 1547.6068, 22.8808, -86.2200, -1, -1, 100);
- AddStaticVehicleEx(432, -901.3102, 1565.1768, 24.8193, -94.8600, -1, -1, 100);
- AddStaticVehicleEx(432, -901.9582, 1555.8534, 24.8193, -93.4800, -1, -1, 100);
- AddStaticVehicleEx(432, -902.8900, 1546.1063, 24.8193, -93.4800, -1, -1, 100);
- AddStaticVehicleEx(432, -884.4021, 1545.7349, 24.8193, -267.7199, -1, -1, 100);
- AddStaticVehicleEx(432, -903.7601, 1535.1169, 24.8193, -88.2000, -1, -1, 100);
- AddStaticVehicleEx(432, -883.8492, 1559.8892, 24.8193, 84.5400, -1, -1, 100);
- AddStaticVehicleEx(432, -884.1718, 1534.5992, 24.8193, -268.4399, -1, -1, 100);
- AddStaticVehicleEx(520, -767.2641, 1641.1862, 26.6384, -178.3799, -1, -1, 100);
- AddStaticVehicleEx(520, -754.2633, 1641.4189, 26.6384, -179.0399, -1, -1, 100);
- AddStaticVehicleEx(520, -739.4522, 1641.1566, 26.6384, -179.0399, -1, -1, 100);
- AddStaticVehicleEx(520, -728.6932, 1626.3475, 26.6384, -270.9599, -1, -1, 100);
- AddStaticVehicleEx(520, -740.5227, 1624.6666, 26.6384, -365.8199, -1, -1, 100);
- AddStaticVehicleEx(520, -767.7458, 1625.0869, 26.6384, -365.8199, -1, -1, 100);
- AddStaticVehicleEx(520, -754.8463, 1625.1527, 26.6384, -365.8199, -1, -1, 100);
- AddStaticVehicleEx(425, -770.5936, 1544.8518, 26.0931, -92.4600, -1, -1, 100);
- AddStaticVehicleEx(425, -770.7733, 1563.3237, 26.0931, -92.4600, -1, -1, 100);
- AddStaticVehicleEx(425, -886.2338, 1511.8156, 24.8945, 91.0800, -1, -1, 100);
- AddStaticVehicleEx(425, -884.9835, 1524.7090, 24.8945, 90.9600, -1, -1, 100);
- AddStaticVehicleEx(425, -725.2501, 1432.7139, 17.8603, 180.7800, -1, -1, 100);
- AddStaticVehicleEx(425, -705.0256, 1434.3954, 17.8603, 180.7800, -1, -1, 100);
- AddStaticVehicleEx(447, -846.6392, 1627.7286, 27.0044, 189.0600, -1, -1, 100);
- AddStaticVehicleEx(447, -834.3934, 1628.2385, 27.0044, 189.0600, -1, -1, 100);
- AddStaticVehicleEx(447, -846.6392, 1627.7286, 27.0044, 189.0600, -1, -1, 100);
- AddStaticVehicleEx(447, -842.3307, 1608.9359, 27.0044, 6.1200, -1, -1, 100);
- AddStaticVehicleEx(447, -875.8062, 1596.3785, 27.0044, 217.4400, -1, -1, 100);
- AddStaticVehicleEx(447, -883.5294, 1589.0081, 27.0044, 219.6000, -1, -1, 100);
- //France
- CreateObject(3749, -305.61792, 1735.12122, 47.27053, 0.00000, 0.00000, -90.95998);
- CreateObject(987, -303.45724, 1725.60425, 41.90008, 0.00000, 0.00000, 1.26000);
- CreateObject(987, -298.17899, 1725.76733, 41.90008, 0.00000, 0.00000, 1.26000);
- CreateObject(987, -286.40198, 1726.07471, 41.90008, 0.00000, 0.00000, 89.28002);
- CreateObject(987, -286.23697, 1737.97461, 41.90008, 0.00000, 0.00000, 89.28002);
- CreateObject(987, -286.08658, 1749.85010, 41.90008, 0.00000, 0.00000, 89.28002);
- CreateObject(987, -285.85040, 1761.78406, 41.90008, 0.00000, 0.00000, 89.28002);
- CreateObject(987, -285.53677, 1771.39783, 41.90008, 0.00000, 0.00000, 89.28002);
- CreateObject(987, -285.11142, 1782.78137, 41.90008, 0.00000, 0.00000, 89.28002);
- CreateObject(987, -283.13315, 1806.24133, 41.90008, 0.00000, 0.00000, 185.22008);
- CreateObject(987, -295.34772, 1805.37622, 41.90008, 0.00000, 0.00000, 185.22008);
- CreateObject(987, -307.17896, 1804.48706, 41.90008, 0.00000, 0.00000, 185.22008);
- CreateObject(987, -311.67792, 1803.97302, 41.90008, 0.00000, 0.00000, 185.22008);
- CreateObject(987, -316.65463, 1741.02747, 41.90008, 0.00000, 0.00000, 5.40000);
- CreateObject(987, -322.80215, 1740.01501, 41.90008, 0.00000, 0.00000, 0.48000);
- CreateObject(987, -319.64066, 1725.55322, 41.90008, 0.00000, 0.00000, 1.26000);
- CreateObject(987, -323.04703, 1803.14417, 41.90008, 0.00000, 0.00000, 270.00000);
- CreateObject(987, -322.79263, 1791.19592, 41.90008, 0.00000, 0.00000, 269.94000);
- CreateObject(987, -323.04703, 1803.14417, 41.90008, 0.00000, 0.00000, 270.00000);
- CreateObject(987, -322.44623, 1777.85632, 41.90008, 0.00000, 0.00000, 267.42001);
- CreateObject(987, -322.80881, 1766.13281, 41.90008, 0.00000, 0.00000, 267.42001);
- CreateObject(987, -322.85519, 1752.79443, 41.90008, 0.00000, 0.00000, 270.18008);
- AddStaticVehicleEx(470, -301.0497, 1765.6842, 41.6776, -88.8000, -1, -1, 100);
- AddStaticVehicleEx(470, -301.1492, 1760.7786, 41.6776, -88.8000, -1, -1, 100);
- AddStaticVehicleEx(470, -300.7372, 1772.3994, 41.6776, -88.8000, -1, -1, 100);
- AddStaticVehicleEx(470, -301.3529, 1755.8203, 41.6776, -88.8600, -1, -1, 100);
- AddStaticVehicleEx(470, -301.3462, 1751.2676, 41.6776, -89.2200, -1, -1, 100);
- AddStaticVehicleEx(470, -301.6354, 1746.2351, 41.6776, -90.2400, -1, -1, 100);
- AddStaticVehicleEx(432, -292.1319, 1747.5076, 41.6671, 90.3600, -1, -1, 100);
- AddStaticVehicleEx(432, -292.4870, 1740.0099, 41.6671, 90.6000, -1, -1, 100);
- AddStaticVehicleEx(432, -292.1713, 1732.8353, 41.6671, 91.3800, -1, -1, 100);
- AddStaticVehicleEx(432, -292.0789, 1758.6647, 41.6671, 91.9800, -1, -1, 100);
- AddStaticVehicleEx(432, -291.9771, 1773.5928, 41.6671, 91.6800, -1, -1, 100);
- AddStaticVehicleEx(447, -331.5078, 1797.7852, 42.3383, 88.6200, -1, -1, 100);
- AddStaticVehicleEx(447, -332.2625, 1788.1538, 42.3383, 88.6200, -1, -1, 100);
- AddStaticVehicleEx(447, -332.3699, 1778.6903, 42.3383, 88.6200, -1, -1, 100);
- AddStaticVehicleEx(447, -332.3199, 1769.9222, 42.3383, 88.6200, -1, -1, 100);
- AddStaticVehicleEx(447, -331.8070, 1760.7584, 42.3383, 88.6200, -1, -1, 100);
- AddStaticVehicleEx(425, -333.8557, 1747.5155, 41.7615, 93.9600, -1, -1, 100);
- AddStaticVehicleEx(425, -341.8522, 1815.2943, 41.3273, 1.8600, -1, -1, 100);
- AddStaticVehicleEx(425, -317.5461, 1815.6021, 41.3273, 2.1000, -1, -1, 100);
- AddStaticVehicleEx(425, -304.9908, 1816.2512, 41.3273, 8.6400, -1, -1, 100);
- AddStaticVehicleEx(520, -295.2406, 1786.2822, 42.4560, -177.5399, -1, -1, 100);
- AddStaticVehicleEx(520, -357.3405, 1827.1735, 41.8164, -88.3200, -1, -1, 100);
- AddStaticVehicleEx(520, -358.1364, 1839.7401, 41.8164, -88.4400, -1, -1, 100);
- AddStaticVehicleEx(520, -358.7628, 1852.8533, 41.8164, -88.4400, -1, -1, 100);
- AddStaticVehicleEx(520, -359.9613, 1867.4536, 41.8164, -88.5600, -1, -1, 100);
- AddStaticVehicleEx(520, -359.7305, 1882.4186, 41.8164, -88.7400, -1, -1, 100);
- //Russian base
- CreateObject(3749, -1392.72791, 2601.50830, 60.11858, 0.00000, 0.00000, 65.64000);
- CreateObject(987, -1402.88037, 2582.85522, 56.25961, 0.00000, 0.00000, 60.12000);
- CreateObject(987, -1408.75098, 2572.43555, 56.32898, 0.00000, 0.00000, 60.24001);
- CreateObject(987, -1414.75366, 2562.06763, 56.32898, 0.00000, 0.00000, 60.24001);
- CreateObject(987, -1420.71521, 2551.65308, 57.72722, 0.00000, 0.00000, 60.24001);
- CreateObject(987, -1426.78674, 2541.23804, 57.88703, 0.00000, 0.00000, 60.24001);
- CreateObject(987, -1432.81384, 2530.86572, 57.88703, 0.00000, 0.00000, 60.24001);
- CreateObject(987, -1439.07495, 2520.58057, 57.88703, 0.00000, 0.00000, 58.68001);
- CreateObject(987, -1459.77942, 2502.69629, 57.88703, 0.00000, 0.00000, 44.69999);
- CreateObject(987, -1454.03735, 2508.46411, 57.88703, 0.00000, 0.00000, 44.69999);
- CreateObject(987, -1459.77942, 2502.69629, 57.88703, 0.00000, 0.00000, 44.69999);
- CreateObject(987, -1446.83118, 2515.41284, 57.88703, 0.00000, 0.00000, 18.59999);
- CreateObject(987, -1437.45813, 2517.70068, 57.88703, 0.00000, 0.00000, 78.11999);
- CreateObject(987, -1386.11963, 2609.18481, 56.25961, 0.00000, 0.00000, 60.12000);
- CreateObject(987, -1380.18689, 2619.49707, 56.25961, 0.00000, 0.00000, 60.12000);
- CreateObject(987, -1374.28857, 2630.02271, 56.25961, 0.00000, 0.00000, 60.12000);
- CreateObject(987, -1369.37756, 2639.35815, 56.25961, 0.00000, 0.00000, 60.12000);
- AddStaticVehicleEx(425, -1439.0225, 2585.9626, 54.8132, 0.0000, -1, -1, 100);
- AddStaticVehicleEx(425, -1454.3016, 2585.8706, 54.8132, 0.0000, -1, -1, 100);
- AddStaticVehicleEx(425, -1471.9714, 2585.7668, 54.8132, 0.0000, -1, -1, 100);
- AddStaticVehicleEx(425, -1398.8553, 2667.5769, 55.4117, -180.3602, -1, -1, 100);
- AddStaticVehicleEx(425, -1407.8765, 2667.2288, 55.4117, -180.3602, -1, -1, 100);
- AddStaticVehicleEx(520, -1400.5215, 2656.8662, 55.2811, 95.8800, -1, -1, 100);
- AddStaticVehicleEx(520, -1400.0792, 2643.9517, 55.2811, 93.5400, -1, -1, 100);
- AddStaticVehicleEx(520, -1400.5215, 2656.8662, 55.2811, 95.8800, -1, -1, 100);
- AddStaticVehicleEx(520, -1400.4880, 2631.0205, 55.2811, 89.6400, -1, -1, 100);
- AddStaticVehicleEx(447, -1531.3887, 2526.1084, 54.6972, 0.0000, -1, -1, 100);
- AddStaticVehicleEx(447, -1522.4425, 2525.4526, 54.6972, 0.0000, -1, -1, 100);
- AddStaticVehicleEx(447, -1507.6718, 2525.4753, 54.6972, 0.2400, -1, -1, 100);
- AddStaticVehicleEx(447, -1522.4425, 2525.4526, 54.6972, 0.0000, -1, -1, 100);
- AddStaticVehicleEx(447, -1497.3032, 2525.3008, 54.6972, 0.2400, -1, -1, 100);
- AddStaticVehicleEx(470, -1497.8912, 2534.7810, 54.6691, -181.8599, -1, -1, 100);
- AddStaticVehicleEx(470, -1503.0260, 2534.6125, 54.6691, -179.5798, -1, -1, 100);
- AddStaticVehicleEx(470, -1497.8912, 2534.7810, 54.6691, -181.8599, -1, -1, 100);
- AddStaticVehicleEx(470, -1497.8912, 2534.7810, 54.6691, -181.8599, -1, -1, 100);
- AddStaticVehicleEx(470, -1508.6508, 2534.7327, 54.6691, -177.3599, -1, -1, 100);
- AddStaticVehicleEx(470, -1497.8912, 2534.7810, 54.6691, -181.8599, -1, -1, 100);
- AddStaticVehicleEx(470, -1503.0260, 2534.6125, 54.6691, -179.5798, -1, -1, 100);
- AddStaticVehicleEx(470, -1524.0847, 2534.5464, 54.6691, -177.3599, -1, -1, 100);
- AddStaticVehicleEx(470, -1531.2177, 2534.1646, 54.6691, -177.3599, -1, -1, 100);
- //England Base Map
- CreateObject(3749, 1019.05762, 2245.55737, 15.11892, 0.00000, 0.00000, 88.37999);
- CreateObject(987, 1017.74237, 2264.10059, 9.79931, 0.00000, 0.00000, -90.54000);
- CreateObject(987, 1017.88818, 2275.94458, 11.92845, 0.00000, 0.00000, -90.18000);
- CreateObject(987, 1017.78088, 2282.99829, 11.92845, 0.00000, 0.00000, -90.18000);
- CreateObject(987, 1029.65527, 2282.33765, 11.92845, 0.00000, 0.00000, -183.00003);
- CreateObject(987, 1017.41949, 2238.00439, 9.79931, 0.00000, 0.00000, -90.54000);
- CreateObject(987, 1017.82794, 2234.24756, 9.79931, 0.00000, 0.00000, -90.60000);
- CreateObject(987, 1017.73145, 2222.26904, 11.79923, 0.00000, 0.00000, -90.60000);
- CreateObject(987, 1017.72034, 2217.02954, 11.79923, 0.00000, 0.00000, -90.60000);
- CreateObject(987, 1017.63873, 2205.53369, 12.43037, 0.00000, 0.00000, -1.80000);
- CreateObject(987, 1029.47241, 2205.06104, 12.43037, 0.00000, 0.00000, -1.80000);
- CreateObject(987, 1041.32629, 2204.73438, 12.43037, 0.00000, 0.00000, -1.80000);
- CreateObject(987, 1053.67542, 2203.93506, 12.43037, 0.00000, 0.00000, -1.80000);
- CreateObject(987, 1064.10962, 2282.84229, 11.92845, 0.00000, 0.00000, -182.46004);
- CreateObject(987, 1076.12354, 2282.25073, 11.92845, 0.00000, 0.00000, -183.06001);
- CreateObject(987, 1087.93103, 2282.15674, 11.92845, 0.00000, 0.00000, -183.06001);
- CreateObject(987, 1099.36768, 2282.49048, 11.92845, 0.00000, 0.00000, -183.00002);
- CreateObject(3361, 1033.65540, 2217.40405, 11.46234, 0.00000, 0.00000, -94.07999);
- CreateObject(3399, 1034.40784, 2227.91528, 15.06545, 0.00000, 0.00000, 88.01999);
- CreateObject(7096, 1057.37451, 2216.62085, 15.32093, 0.00000, 0.00000, 87.41998);
- AddStaticVehicleEx(425, 1033.6493, 2281.2673, 17.2315, 90.3600, -1, -1, 100);
- AddStaticVehicleEx(425, 1033.2760, 2270.7446, 17.2315, 90.3600, -1, -1, 100);
- AddStaticVehicleEx(425, 1033.6493, 2281.2673, 17.2315, 90.3600, -1, -1, 100);
- AddStaticVehicleEx(425, 1032.9908, 2257.9897, 17.2315, 90.3600, -1, -1, 100);
- AddStaticVehicleEx(425, 1033.0974, 2242.4297, 17.2315, 90.3600, -1, -1, 100);
- AddStaticVehicleEx(520, 1072.1188, 2238.6936, 16.2157, -89.4600, -1, -1, 100);
- AddStaticVehicleEx(520, 1072.2135, 2224.9504, 16.2157, -90.4200, -1, -1, 100);
- AddStaticVehicleEx(520, 1072.2146, 2207.4058, 16.2157, -90.4200, -1, -1, 100);
- AddStaticVehicleEx(520, 1071.9622, 2191.0171, 16.2157, -90.4200, -1, -1, 100);
- AddStaticVehicleEx(520, 1073.0269, 2176.1465, 16.2157, -90.4200, -1, -1, 100);
- AddStaticVehicleEx(447, 1113.1332, 2229.0930, 16.6065, 0.0000, -1, -1, 100);
- AddStaticVehicleEx(447, 1106.3550, 2228.7693, 16.6065, 0.0000, -1, -1, 100);
- AddStaticVehicleEx(447, 1099.8589, 2228.4475, 16.6065, -0.2400, -1, -1, 100);
- AddStaticVehicleEx(447, 1093.2864, 2228.6208, 16.6065, -0.2400, -1, -1, 100);
- AddStaticVehicleEx(447, 1085.9850, 2228.4639, 16.6065, -0.2400, -1, -1, 100);
- AddStaticVehicleEx(447, 1086.1625, 2240.0208, 16.6065, -180.1800, -1, -1, 100);
- AddStaticVehicleEx(447, 1093.1327, 2239.4946, 16.6065, -180.6600, -1, -1, 100);
- AddStaticVehicleEx(447, 1100.4847, 2239.2612, 16.6065, -180.7800, -1, -1, 100);
- AddStaticVehicleEx(447, 1106.8336, 2238.9177, 16.6065, -180.7800, -1, -1, 100);
- AddStaticVehicleEx(447, 1113.7675, 2238.8816, 16.6065, -180.7800, -1, -1, 100);
- //Deseart airport
- CreateObject(7522, -77.02363, 2503.21045, 20.21435, 0.00000, 0.00000, -92.16000);
- CreateObject(987, -81.61228, 2515.99146, 15.45128, 0.00000, 0.00000, 63.36000);
- CreateObject(987, -76.28439, 2526.17749, 15.30466, 0.00000, 0.00000, 0.72000);
- CreateObject(987, -64.24383, 2526.17432, 15.30466, 0.00000, 0.00000, 0.72000);
- CreateObject(987, -53.18455, 2526.34595, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, -41.18770, 2526.26782, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, -29.16976, 2526.13379, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, -17.04390, 2525.87646, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, -5.53711, 2525.46802, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, 6.57019, 2525.49707, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, -83.55446, 2480.51270, 15.45128, 0.00000, 0.00000, 90.42002);
- CreateObject(987, -79.39888, 2470.05713, 15.45128, 0.00000, 0.00000, 113.70001);
- CreateObject(987, -67.13740, 2468.56836, 15.45128, 0.00000, 0.00000, 176.33989);
- CreateObject(3749, -57.71837, 2470.21851, 20.94429, 0.00000, 0.00000, 0.00000);
- CreateObject(987, 18.57587, 2525.31494, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, 30.52816, 2525.18140, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, 42.46060, 2525.00977, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, 54.18666, 2524.78613, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, 66.11671, 2524.62134, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, 78.38766, 2524.29224, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, 90.35121, 2524.15039, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, 102.25309, 2524.08325, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, 114.15696, 2523.85400, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, 126.10706, 2523.72998, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, 138.14117, 2523.67188, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, 150.08383, 2523.55664, 15.30466, 0.00000, 0.00000, -1.44000);
- CreateObject(987, 138.14117, 2523.67188, 15.30466, 0.00000, 0.00000, -0.42000);
- CreateObject(987, 161.98799, 2523.20532, 15.30466, 0.00000, 0.00000, -1.44000);
- CreateObject(987, 173.93100, 2522.97998, 15.30466, 0.00000, 0.00000, -1.44000);
- CreateObject(987, 185.86798, 2522.63647, 15.30466, 0.00000, 0.00000, -1.44000);
- CreateObject(987, 197.76956, 2522.39282, 15.30466, 0.00000, 0.00000, -1.44000);
- CreateObject(987, 209.85361, 2522.13696, 15.30466, 0.00000, 0.00000, -1.44000);
- CreateObject(987, 221.83745, 2521.84131, 15.30466, 0.00000, 0.00000, -1.44000);
- CreateObject(987, 233.70015, 2521.44775, 15.30466, 0.00000, 0.00000, -1.44000);
- CreateObject(987, 245.18726, 2521.09668, 15.30466, 0.00000, 0.00000, 30.72000);
- CreateObject(987, 255.40521, 2527.25732, 15.30466, 0.00000, 0.00000, 30.72000);
- CreateObject(987, 265.13351, 2533.10327, 15.30466, 0.00000, 0.00000, 30.72000);
- CreateObject(987, 269.26178, 2535.83276, 15.30466, 0.00000, 0.00000, 30.72000);
- CreateObject(987, 430.65680, 2476.58008, 15.17346, 0.00000, 0.00000, 59.40002);
- CreateObject(987, 436.88461, 2486.73145, 15.17346, 0.00000, 0.00000, 88.20002);
- CreateObject(987, 437.43640, 2498.52783, 15.17346, 0.00000, 0.00000, 88.20002);
- CreateObject(987, 438.08621, 2510.47412, 15.17346, 0.00000, 0.00000, 88.20002);
- CreateObject(987, 438.39804, 2522.37231, 15.17346, 0.00000, 0.00000, 88.20002);
- CreateObject(987, 438.65189, 2529.70093, 15.17346, 0.00000, 0.00000, 88.20002);
- CreateObject(987, -38.16678, 2469.06372, 15.45128, 0.00000, 0.00000, 182.87988);
- CreateObject(987, -26.18095, 2469.42896, 15.45128, 0.00000, 0.00000, 182.33994);
- CreateObject(987, -14.31565, 2469.75317, 15.45128, 0.00000, 0.00000, 182.27994);
- CreateObject(3279, -78.02824, 2480.78955, 15.20464, 0.00000, 0.00000, 0.96000);
- CreateObject(3279, -72.69881, 2522.39575, 15.20464, 0.00000, 0.00000, -0.96000);
- CreateObject(987, -2.31376, 2470.28589, 15.45128, 0.00000, 0.00000, 182.27994);
- CreateObject(987, -14.31565, 2469.75317, 15.45128, 0.00000, 0.00000, 182.27994);
- CreateObject(987, 9.41093, 2470.78955, 15.45128, 0.00000, 0.00000, 182.27994);
- CreateObject(987, 21.20015, 2471.07593, 15.45128, 0.00000, 0.00000, 182.21994);
- CreateObject(3271, 212.97420, 2496.01440, 15.21123, 0.00000, 0.00000, 32.46000);
- CreateObject(987, 33.25218, 2471.18726, 15.45128, 0.00000, 0.00000, 182.21994);
- CreateObject(987, 45.28766, 2471.57495, 15.45128, 0.00000, 0.00000, 182.21994);
- CreateObject(987, 57.32222, 2471.67017, 15.45128, 0.00000, 0.00000, 180.83994);
- CreateObject(987, 69.18139, 2471.78296, 15.45128, 0.00000, 0.00000, 180.77994);
- CreateObject(987, 81.07103, 2471.87280, 15.45128, 0.00000, 0.00000, 180.77994);
- CreateObject(987, 92.92776, 2471.37280, 15.45128, 0.00000, 0.00000, 178.01991);
- CreateObject(987, 104.54541, 2470.79639, 15.45128, 0.00000, 0.00000, 178.01991);
- CreateObject(987, 92.92776, 2471.37280, 15.45128, 0.00000, 0.00000, 178.01991);
- CreateObject(987, 116.48630, 2470.21729, 15.45128, 0.00000, 0.00000, 178.01991);
- CreateObject(987, 128.34435, 2469.62646, 15.45128, 0.00000, 0.00000, 178.01991);
- CreateObject(987, 140.63631, 2468.88452, 15.45128, 0.00000, 0.00000, 177.83992);
- CreateObject(987, 152.62860, 2468.31641, 15.45128, 0.00000, 0.00000, 177.83992);
- CreateObject(987, 164.33408, 2467.92578, 15.45128, 0.00000, 0.00000, 178.67989);
- CreateObject(987, 188.19054, 2466.68066, 15.45128, 0.00000, 0.00000, 177.83992);
- CreateObject(987, 176.25905, 2467.14282, 15.45128, 0.00000, 0.00000, 177.83992);
- CreateObject(987, 200.11145, 2466.11768, 15.45128, 0.00000, 0.00000, 177.83992);
- CreateObject(987, 212.01454, 2465.42041, 15.45128, 0.00000, 0.00000, 177.83992);
- CreateObject(987, 223.82774, 2464.77246, 15.45128, 0.00000, 0.00000, 177.83992);
- CreateObject(987, 235.74767, 2464.28223, 15.45128, 0.00000, 0.00000, 177.83992);
- CreateObject(987, 247.64006, 2463.94165, 15.45128, 0.00000, 0.00000, 177.83992);
- CreateObject(987, 259.30951, 2463.40186, 15.45128, 0.00000, 0.00000, 177.65993);
- CreateObject(987, 247.64006, 2463.94165, 15.45128, 0.00000, 0.00000, 177.83992);
- CreateObject(987, 270.70709, 2462.80493, 15.45128, 0.00000, 0.00000, 177.65993);
- CreateObject(987, 282.64722, 2462.31982, 15.45128, 0.00000, 0.00000, 177.65993);
- CreateObject(987, 294.64224, 2461.77222, 15.45128, 0.00000, 0.00000, 176.69992);
- CreateObject(987, 282.64722, 2462.31982, 15.45128, 0.00000, 0.00000, 177.65993);
- CreateObject(987, 306.66553, 2460.81250, 15.45128, 0.00000, 0.00000, 174.95992);
- CreateObject(987, 318.28506, 2459.64282, 15.45128, 0.00000, 0.00000, 174.95992);
- CreateObject(987, 329.85809, 2458.59106, 15.45128, 0.00000, 0.00000, 174.95992);
- CreateObject(987, 341.22455, 2461.54443, 15.45128, 0.00000, 0.00000, 194.99989);
- CreateObject(987, 352.72406, 2464.59863, 15.45128, 0.00000, 0.00000, 194.99989);
- CreateObject(987, 364.11777, 2467.55518, 15.45128, 0.00000, 0.00000, 194.99989);
- CreateObject(987, 375.98145, 2467.60840, 15.45128, 0.00000, 0.00000, 180.83992);
- CreateObject(987, 378.05237, 2468.06982, 15.45128, 0.00000, 0.00000, 180.83992);
- CreateObject(987, 279.35236, 2542.25049, 15.30466, 0.00000, 0.00000, 91.74001);
- CreateObject(987, 279.08673, 2555.18994, 15.30466, 0.00000, 0.00000, 0.66002);
- CreateObject(987, 290.97556, 2555.30933, 15.30466, 0.00000, 0.00000, 0.66002);
- CreateObject(987, 302.94940, 2555.44409, 15.30466, 0.00000, 0.00000, 0.66002);
- CreateObject(987, 314.71194, 2555.66528, 15.30466, 0.00000, 0.00000, 0.66002);
- CreateObject(987, 326.81839, 2555.68091, 15.30466, 0.00000, 0.00000, 0.66002);
- CreateObject(987, 338.80505, 2555.80420, 15.30466, 0.00000, 0.00000, -36.47997);
- CreateObject(987, 348.43137, 2548.74146, 15.30466, 0.00000, 0.00000, -2.33997);
- CreateObject(987, 360.23035, 2548.31104, 15.30466, 0.00000, 0.00000, -2.33997);
- CreateObject(987, 372.08990, 2547.84106, 15.30466, 0.00000, 0.00000, -2.33997);
- CreateObject(987, 383.98648, 2547.39941, 15.30466, 0.00000, 0.00000, 1.14003);
- CreateObject(987, 395.73062, 2547.81152, 15.30466, 0.00000, 0.00000, 1.14003);
- CreateObject(987, 407.41473, 2548.11084, 15.30466, 0.00000, 0.00000, 1.14003);
- CreateObject(987, 418.70703, 2548.20581, 15.30466, 0.00000, 0.00000, 1.14003);
- CreateObject(3279, 429.13754, 2478.05591, 15.45394, 0.00000, 0.00000, 179.81999);
- CreateObject(3279, 433.29297, 2524.58203, 15.45394, 0.00000, 0.00000, 181.43994);
- CreateObject(3271, 175.99103, 2498.26880, 15.21123, 0.00000, 0.00000, 32.46000);
- CreateObject(3271, 121.63728, 2499.81787, 15.21123, 0.00000, 0.00000, 32.46000);
- CreateObject(3271, 61.52854, 2499.38062, 15.21123, 0.00000, 0.00000, 32.46000);
- AddStaticVehicleEx(432, 390.5353, 2540.7402, 15.5193, -179.4601, -1, -1, 100);
- AddStaticVehicleEx(432, 382.0621, 2540.1653, 15.5193, -179.4601, -1, -1, 100);
- AddStaticVehicleEx(432, 372.3778, 2540.8679, 15.5193, -179.4601, -1, -1, 100);
- AddStaticVehicleEx(432, 359.8657, 2541.2319, 15.5193, -179.4601, -1, -1, 100);
- AddStaticVehicleEx(432, 346.3810, 2541.7949, 15.5193, -179.4601, -1, -1, 100);
- AddStaticVehicleEx(520, 431.8019, 2516.3796, 15.9825, 89.0400, -1, -1, 100);
- AddStaticVehicleEx(520, 431.8245, 2503.5471, 15.9825, 89.0400, -1, -1, 100);
- AddStaticVehicleEx(520, 431.8019, 2516.3796, 15.9825, 89.0400, -1, -1, 100);
- AddStaticVehicleEx(520, 429.5520, 2488.1675, 15.9825, 89.0400, -1, -1, 100);
- //Area 51
- CreateObject(3749, 134.64459, 1943.46252, 23.71305, 0.00000, 0.00000, 0.54000);
- CreateObject(987, 115.38663, 1943.32751, 17.68460, 0.00000, 0.00000, 0.00000);
- CreateObject(987, 103.56490, 1943.25464, 16.99473, 0.00000, 0.00000, 0.00000);
- CreateObject(987, 91.77116, 1943.13794, 16.86491, 0.00000, 0.00000, 0.00000);
- CreateObject(987, 91.74897, 1943.28613, 16.86490, 0.00000, 0.00000, -84.48001);
- CreateObject(3749, 94.04804, 1922.03113, 22.81273, 0.00000, 0.00000, 90.35999);
- CreateObject(987, 93.61119, 1912.74390, 16.86490, 0.00000, 0.00000, -87.54001);
- CreateObject(987, 94.14619, 1900.89075, 16.86490, 0.00000, 0.00000, -87.54001);
- CreateObject(3279, 101.90481, 1935.73706, 16.82031, 356.85840, 0.00000, 3.14159);
- CreateObject(987, 94.61668, 1888.94836, 16.86490, 0.00000, 0.00000, -87.54001);
- CreateObject(987, 95.10049, 1877.04822, 16.86490, 0.00000, 0.00000, -87.54001);
- CreateObject(16613, 177.17397, 1801.44409, 16.76349, 0.00000, 0.00000, -1.32000);
- CreateObject(987, 95.61568, 1865.20398, 16.86490, 0.00000, 0.00000, -88.68000);
- CreateObject(987, 95.91230, 1841.33862, 16.86490, 0.00000, 0.00000, -88.68000);
- CreateObject(987, 95.68996, 1853.23914, 16.86490, 0.00000, 0.00000, -88.74000);
- CreateObject(987, 96.14442, 1829.38953, 16.86490, 0.00000, 0.00000, -90.36000);
- CreateObject(987, 96.17256, 1817.47424, 16.86490, 0.00000, 0.00000, -90.36000);
- CreateObject(987, 96.22776, 1805.40051, 16.86490, 0.00000, 0.00000, -5.22000);
- CreateObject(987, 108.15211, 1804.25781, 16.86490, 0.00000, 0.00000, -5.22000);
- CreateObject(987, 120.08968, 1803.20544, 16.78179, 0.00000, 0.00000, -5.04000);
- CreateObject(987, 131.95724, 1802.09460, 16.78179, 0.00000, 0.00000, -5.04000);
- CreateObject(987, 143.45172, 1800.90271, 16.78179, 0.00000, 0.00000, -5.04000);
- CreateObject(987, 155.91267, 1800.03455, 16.65415, 0.00000, 0.00000, -96.59998);
- CreateObject(3279, 101.36158, 1841.82153, 16.82031, 356.85840, 0.00000, 3.14159);
- CreateObject(987, 154.53156, 1788.06641, 16.65415, 0.00000, 0.00000, -8.93998);
- CreateObject(987, 166.37758, 1786.24866, 16.65415, 0.00000, 0.00000, -4.85998);
- CreateObject(987, 178.09619, 1785.14136, 16.65415, 0.00000, 0.00000, -3.11998);
- CreateObject(987, 190.19475, 1784.30481, 16.65415, 0.00000, 0.00000, -3.11998);
- CreateObject(987, 202.12602, 1783.85559, 16.65415, 0.00000, 0.00000, -3.11998);
- CreateObject(987, 214.07578, 1783.10046, 16.65415, 0.00000, 0.00000, -4.01998);
- CreateObject(987, 202.12602, 1783.85559, 16.65415, 0.00000, 0.00000, -3.11998);
- CreateObject(987, 226.04839, 1782.40405, 16.65415, 0.00000, 0.00000, -4.01998);
- CreateObject(987, 237.95015, 1781.55774, 16.65415, 0.00000, 0.00000, -4.01998);
- CreateObject(987, 249.87926, 1780.74377, 16.65415, 0.00000, 0.00000, -4.01998);
- CreateObject(987, 261.70963, 1779.82813, 16.65415, 0.00000, 0.00000, 14.22002);
- CreateObject(987, 265.49850, 1780.88806, 16.65415, 0.00000, 0.00000, 14.22002);
- CreateObject(3279, 204.73621, 1795.76733, 16.82031, 356.85840, 0.00000, -90.51839);
- CreateObject(3279, 204.73621, 1795.76733, 16.82031, 356.85840, 0.00000, -90.51839);
- CreateObject(987, 144.31285, 1943.17310, 17.68460, 0.00000, 0.00000, 2.88000);
- CreateObject(987, 156.06320, 1943.52075, 17.68460, 0.00000, 0.00000, 2.88000);
- CreateObject(987, 167.85464, 1944.19189, 17.68460, 0.00000, 0.00000, 2.88000);
- CreateObject(987, 175.63814, 1944.45898, 17.68460, 0.00000, 0.00000, 2.88000);
- CreateObject(4874, 364.57935, 1939.82080, 20.11721, 0.00000, 0.00000, -89.34000);
- CreateObject(16613, 213.77007, 1968.41150, 16.76349, 0.00000, 0.00000, 87.48000);
- CreateObject(3279, 199.05208, 1947.75537, 16.82031, 356.85840, 0.00000, 3.14159);
- CreateObject(18850, 216.16438, 2035.46875, 7.56891, 0.00000, 0.00000, 0.06000);
- AddStaticVehicleEx(425, 364.9821, 1967.6521, 19.5578, -90.0000, -1, -1, 100);
- AddStaticVehicleEx(425, 365.2981, 1955.3971, 19.5578, -89.4600, -1, -1, 100);
- AddStaticVehicleEx(425, 365.4166, 1940.6477, 19.5578, -89.5800, -1, -1, 100);
- AddStaticVehicleEx(522, 342.7522, 1974.9063, 16.6040, -178.9200, -1, -1, 100);
- AddStaticVehicleEx(522, 342.9956, 1968.8411, 16.6040, -178.0800, -1, -1, 100);
- AddStaticVehicleEx(522, 343.1125, 1961.4371, 16.6040, -178.0800, -1, -1, 100);
- AddStaticVehicleEx(522, 343.1277, 1948.8125, 16.6040, -178.0800, -1, -1, 100);
- AddStaticVehicleEx(432, 372.8468, 1983.2113, 16.6232, 89.8200, -1, -1, 100);
- AddStaticVehicleEx(432, 372.2526, 1990.8864, 16.6232, 90.5400, -1, -1, 100);
- AddStaticVehicleEx(432, 371.9860, 1999.7622, 16.6232, 91.8600, -1, -1, 100);
- AddStaticVehicleEx(432, 327.9134, 1910.7640, 16.6232, 89.8200, -1, -1, 100);
- AddStaticVehicleEx(432, 326.9455, 1926.8353, 16.6232, 87.9000, -1, -1, 100);
- AddStaticVehicleEx(432, 327.9134, 1910.7640, 16.6232, 89.8200, -1, -1, 100);
- AddStaticVehicleEx(432, 326.2236, 1945.9863, 16.6232, 89.8800, -1, -1, 100);
- AddStaticVehicleEx(432, 326.2566, 1957.9844, 16.6232, 89.8800, -1, -1, 100);
- AddStaticVehicleEx(432, 326.3661, 1935.5570, 16.6232, 88.4400, -1, -1, 100);
- AddStaticVehicleEx(432, 327.4585, 1919.3562, 16.6232, 86.4000, -1, -1, 100);
- AddStaticVehicleEx(432, 326.0597, 1969.9502, 16.6232, 89.8800, -1, -1, 100);
- AddStaticVehicleEx(432, 326.1955, 1983.9729, 16.6232, 90.9000, -1, -1, 100);
- AddStaticVehicleEx(432, 326.2845, 2000.7266, 16.6232, 90.9000, -1, -1, 100);
- AddStaticVehicleEx(470, 270.8507, 1946.0543, 16.6185, -81.3000, -1, -1, 100);
- AddStaticVehicleEx(470, 271.1857, 1950.8225, 16.6185, -86.8800, -1, -1, 100);
- AddStaticVehicleEx(470, 270.8507, 1946.0543, 16.6185, -81.3000, -1, -1, 100);
- AddStaticVehicleEx(470, 270.2301, 1960.3854, 16.6185, -91.4400, -1, -1, 100);
- AddStaticVehicleEx(470, 271.5193, 1955.4063, 16.6185, -90.4200, -1, -1, 100);
- AddStaticVehicleEx(470, 270.2365, 1966.4979, 16.6185, -91.4400, -1, -1, 100);
- AddStaticVehicleEx(433, 271.1440, 1977.1454, 17.1215, -85.0200, -1, -1, 100);
- AddStaticVehicleEx(433, 271.3007, 1983.0316, 17.1215, -86.2800, -1, -1, 100);
- AddStaticVehicleEx(433, 271.5128, 1989.5905, 17.1215, -88.3200, -1, -1, 100);
- AddStaticVehicleEx(433, 270.6032, 1996.6368, 17.1215, -88.6800, -1, -1, 100);
- AddStaticVehicleEx(433, 271.5128, 1989.5905, 17.1215, -88.3200, -1, -1, 100);
- AddStaticVehicleEx(433, 269.8141, 2002.3076, 17.1215, -88.6800, -1, -1, 100);
- AddStaticVehicleEx(520, 215.6789, 2027.7767, 20.2985, 92.5800, -1, -1, 100);
- AddStaticVehicleEx(520, 216.0841, 2040.8262, 20.2985, 90.6000, -1, -1, 100);
- AddStaticVehicleEx(470, 205.1373, 1986.3280, 16.5846, -5.1600, -1, -1, 100);
- AddStaticVehicleEx(470, 217.4059, 1985.7128, 16.5846, 0.0000, -1, -1, 100);
- AddStaticVehicleEx(470, 224.9828, 1984.9983, 16.5846, 1.9800, -1, -1, 100);
- AddStaticVehicleEx(470, 232.6811, 1980.3334, 16.5846, -88.3200, -1, -1, 100);
- AddStaticVehicleEx(470, 232.4796, 1974.0920, 16.5846, -88.3200, -1, -1, 100);
- AddStaticVehicleEx(470, 232.4420, 1965.1564, 16.5846, -88.3200, -1, -1, 100);
- AddStaticVehicleEx(432, 195.7665, 1993.6251, 16.6181, -91.0200, -1, -1, 100);
- AddStaticVehicleEx(432, 195.4193, 2000.6658, 16.6181, -91.0200, -1, -1, 100);
- AddStaticVehicleEx(432, 195.3702, 2009.0845, 16.6181, -91.8000, -1, -1, 100);
- AddStaticVehicleEx(432, 195.2406, 2017.6387, 16.6181, -91.8000, -1, -1, 100);
- ExistDuel = 0;
- Brasiltext = TextDrawCreate(507.000000, 100.000000, "Time: Brasil");
- TextDrawBackgroundColor(Brasiltext, 255);
- TextDrawFont(Brasiltext, 1);
- TextDrawLetterSize(Brasiltext, 0.500000, 1.000000);
- TextDrawColor(Brasiltext, 0x88ff00FF);
- TextDrawSetOutline(Brasiltext, 0);
- TextDrawSetProportional(Brasiltext, 1);
- TextDrawSetShadow(Brasiltext, 1);
- USAtext = TextDrawCreate(511.000000, 100.000000, "Time: EUA");
- TextDrawBackgroundColor(USAtext, 255);
- TextDrawFont(USAtext, 1);
- TextDrawLetterSize(USAtext, 0.500000, 1.000000);
- TextDrawColor(USAtext, AZUL);
- TextDrawSetOutline(USAtext, 0);
- TextDrawSetProportional(USAtext, 1);
- TextDrawSetShadow(USAtext, 1);
- Arabtext = TextDrawCreate(503.000000, 100.000000, "Time: Arabia");
- TextDrawBackgroundColor(Arabtext, 255);
- TextDrawFont(Arabtext, 1);
- TextDrawLetterSize(Arabtext, 0.500000, 1.000000);
- TextDrawColor(Arabtext, AMARELO);
- TextDrawSetOutline(Arabtext, 0);
- TextDrawSetProportional(Arabtext, 1);
- TextDrawSetShadow(Arabtext, 1);
- Francetext = TextDrawCreate(503.000000, 100.000000, "Time: Franca");
- TextDrawBackgroundColor(Francetext, 255);
- TextDrawFont(Francetext, 1);
- TextDrawLetterSize(Francetext, 0.500000, 1.000000);
- TextDrawColor(Francetext, LARANJA);
- TextDrawSetOutline(Francetext, 0);
- TextDrawSetProportional(Francetext, 1);
- TextDrawSetShadow(Francetext, 1);
- Russiatext = TextDrawCreate(506.000000, 100.000000, "Time: Russia");
- TextDrawBackgroundColor(Russiatext, 255);
- TextDrawFont(Russiatext, 1);
- TextDrawLetterSize(Russiatext, 0.500000, 1.000000);
- TextDrawColor(Russiatext, COLOR_PURPLE);
- TextDrawSetOutline(Russiatext, 0);
- TextDrawSetProportional(Russiatext, 1);
- TextDrawSetShadow(Russiatext, 1);
- Englandtext = TextDrawCreate(487.000000, 100.000000, "Time: Inglaterra");
- TextDrawBackgroundColor(Englandtext, 255);
- TextDrawFont(Englandtext, 1);
- TextDrawLetterSize(Englandtext, 0.500000, 1.000000);
- TextDrawColor(Englandtext, -1);
- TextDrawSetOutline(Englandtext, 0);
- TextDrawSetProportional(Englandtext, 1);
- TextDrawSetShadow(Englandtext, 1);
- //Textdraw
- /*Brasiltext = TextDrawCreate(20 ,330 , "Time: Brasil");
- TextDrawFont(Brasiltext , 1);
- TextDrawColor(Brasiltext , 0x88ff00FF);
- USAtext = TextDrawCreate(20 ,330 , "Time: EUA");
- TextDrawFont(USAtext , 3);
- TextDrawColor(USAtext , AZUL);
- Arabtext = TextDrawCreate(20 ,330 , "Time: Arabia");
- TextDrawFont(Arabtext , 1);
- TextDrawColor(Arabtext , AMARELO);
- Francetext = TextDrawCreate(20 ,330 , "Time: France");
- TextDrawFont(Francetext , 1);
- TextDrawColor(Francetext , LARANJA);
- Englandtext = TextDrawCreate(20 ,330 , "Time: Inglaterra");
- TextDrawFont(Englandtext , 1);
- TextDrawColor(Englandtext , BRANCO);
- Russiatext = TextDrawCreate(20 ,330 , "Time: Russia");
- TextDrawFont(Russiatext , 1);
- TextDrawColor(Russiatext , COLOR_PURPLE);*/
- //Zone
- USAzone = GangZoneCreate(-168.1480,2588.8999,-400.7213,2759.2844);
- Russiazone = GangZoneCreate(-1643.8575,2737.6323,-1363.2451,2546.4065);
- Francezone = GangZoneCreate(-260.2296,1703.7390,-360.7617,1820.9886);
- Brasilzone = GangZoneCreate(-331.1071,1239.9489,62.0659,1048.4388);
- Englandzone = GangZoneCreate(1012.2824,2281.5361,1170.2402,2058.0911);
- Arabzone = GangZoneCreate(-949.0573,1466.8405,-730.0573,1620.9178);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- forward RandomMSGs();
- public RandomMSGs()
- {
- new string[100];
- new random1 = random(sizeof(MSGs));
- format(string, sizeof(string), "{35CA69}Tom:{FFFFFF} %s", MSGs[random1]);
- SendClientMessageToAll(BRANCO,string);
- }
- forward OnPlayerEnterDynamicCP(playerid,checkpointid);
- public OnPlayerEnterDynamicCP(playerid,checkpointid)
- {
- if(checkpointid == CP[OILFIELD])
- {
- ActiveOil(playerid);
- }
- if(checkpointid == CP[QUARRY])
- {
- ActiveQuarry(playerid);
- }
- if(checkpointid == CP[BIGEAR])
- {
- ActiveBigEar(playerid);
- }
- if(checkpointid == CP[UFO])
- {
- ActiveUfo(playerid);
- }
- if(checkpointid == CP[AREA51])
- {
- ActiveArea51(playerid);
- }
- if(checkpointid == CP[ABANDONED])
- {
- ActiveAbandoned(playerid);
- }
- if(checkpointid == CP[SNAKE])
- {
- ActiveSnake(playerid);
- }
- if(checkpointid == CP[BASIN])
- {
- ActiveBasin(playerid);
- }
- if(checkpointid == CP[BEACHSIDE])
- {
- ActiveBeach(playerid);
- }
- if(checkpointid == CP[RESTAURANT])
- {
- ActiveRestaurant(playerid);
- }
- if(checkpointid == CP[GAS])
- {
- ActiveGas(playerid);
- }
- if(checkpointid == CP[STADIUM])
- {
- ActiveStadium(playerid);
- }
- if(checkpointid == CP[BRIDGE])
- {
- ActiveBridge(playerid);
- }
- if(checkpointid == CP[MOTEL])
- {
- ActiveMotel(playerid);
- }
- if(checkpointid == CP[STATION])
- {
- ActiveStation(playerid);
- }
- if(checkpointid == CP[STUDIO])
- {
- ActiveStudio(playerid);
- }
- if(checkpointid == CP[PROJECT])
- {
- ActiveProject(playerid);
- }
- return 1;
- }
- forward OnPlayerLeaveDynamicCP(playerid,checkpointid);
- public OnPlayerLeaveDynamicCP(playerid,checkpointid)
- {
- if(checkpointid == CP[OILFIELD]&&IsPlayerCapturing[playerid][OILFIELD] == 1&&Captured[playerid][OILFIELD] == 0)
- {
- LeavingOil(playerid);
- }
- if(checkpointid == CP[QUARRY]&&IsPlayerCapturing[playerid][QUARRY] == 1&&Captured[playerid][QUARRY] == 0)
- {
- LeavingQuarry(playerid);
- }
- if(checkpointid == CP[BIGEAR]&&IsPlayerCapturing[playerid][BIGEAR] == 1&&Captured[playerid][BIGEAR] == 0)
- {
- LeavingBigEar(playerid);
- }
- if(checkpointid == CP[UFO]&&IsPlayerCapturing[playerid][UFO] == 1&&Captured[playerid][UFO] == 0)
- {
- LeavingUfo(playerid);
- }
- if(checkpointid == CP[AREA51]&&IsPlayerCapturing[playerid][AREA51] == 1&&Captured[playerid][AREA51] == 0)
- {
- LeavingArea51(playerid);
- }
- if(checkpointid == CP[SNAKE]&&IsPlayerCapturing[playerid][SNAKE] == 1&&Captured[playerid][SNAKE] == 0)
- {
- LeavingSnake(playerid);
- }
- if(checkpointid == CP[BASIN]&&IsPlayerCapturing[playerid][BASIN] == 1&&Captured[playerid][BASIN] == 0)
- {
- LeavingBasin(playerid);
- }
- if(checkpointid == CP[BEACHSIDE]&&IsPlayerCapturing[playerid][BEACHSIDE] == 1&&Captured[playerid][BEACHSIDE] == 0)
- {
- LeavingBeach(playerid);
- }
- if(checkpointid == CP[RESTAURANT]&&IsPlayerCapturing[playerid][RESTAURANT] == 1&&Captured[playerid][RESTAURANT] == 0)
- {
- LeavingRestaurant(playerid);
- }
- if(checkpointid == CP[GAS]&&IsPlayerCapturing[playerid][GAS] == 1&&Captured[playerid][GAS] == 0)
- {
- LeavingGas(playerid);
- }
- if(checkpointid == CP[STADIUM]&&IsPlayerCapturing[playerid][STADIUM] == 1&&Captured[playerid][STADIUM] == 0)
- {
- LeavingStadium(playerid);
- }
- if(checkpointid == CP[BRIDGE]&&IsPlayerCapturing[playerid][BRIDGE] == 1&&Captured[playerid][BRIDGE] == 0)
- {
- LeavingBridge(playerid);
- }
- if(checkpointid == CP[MOTEL]&&IsPlayerCapturing[playerid][MOTEL] == 1&&Captured[playerid][MOTEL] == 0)
- {
- LeavingMotel(playerid);
- }
- if(checkpointid == CP[STATION]&&IsPlayerCapturing[playerid][STATION] == 1&&Captured[playerid][STATION] == 0)
- {
- LeavingStation(playerid);
- }
- if(checkpointid == CP[STUDIO]&&IsPlayerCapturing[playerid][STUDIO] == 1&&Captured[playerid][STUDIO] == 0)
- {
- LeavingStudio(playerid);
- }
- if(checkpointid == CP[ABANDONED]&&Captured[playerid][ABANDONED] == 0&&IsPlayerCapturing[playerid][ABANDONED] == 1)
- {
- LeavingAbandoned(playerid);
- }
- if(checkpointid == CP[PROJECT]&&IsPlayerCapturing[playerid][PROJECT] == 1&&Captured[playerid][PROJECT] == 0)
- {
- LeavingProject(playerid);
- }
- return 1;
- }
- public OnPlayerTakeDamage(playerid,issuerid,Float:amount,weaponid)
- {
- if(gPais[issuerid] == gPais[playerid]&&IsPlayerInDuel[playerid]==0&&IsPlayerInDuel[issuerid]==0)
- {
- new Float:health;
- new Float:Armor;
- GetPlayerHealth(playerid,health);
- GetPlayerArmour(playerid,Armor);
- SetPlayerHealth(playerid,health);
- SetPlayerArmour(playerid,Armor);
- GameTextForPlayer(issuerid,"~r~CUIDADO: Você está Atirando no seu Companheiro!",3000,6);
- }
- else if(gPais[issuerid]!=gPais[playerid])
- {
- PlayerPlaySound(issuerid,1057,0,0,0);
- }
- else if(AFK[playerid] == 1&&AFK[issuerid] == 1)
- {
- SpawnPlayer(issuerid);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] você esta AFK !");
- }
- return 1;
- }
- // Capture zone stock!
- //Oil Field!
- stock ActiveOil(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[OILFIELD] == 0&&tCheck[OILFIELD]!=gPais[playerid])
- {
- GangZoneFlashForAll(Zone[OILFIELD],GetPlayerColor(playerid));
- if(tCheck[OILFIELD] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- if(UnderAttack[OILFIELD] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
- SendClientMessage(playerid,ROSA,"Aguarde nesse ponto por 20 segundos para dominar !");
- UnderAttack[OILFIELD] = 1;
- Captured[playerid][OILFIELD] = 0;
- IsPlayerCapturing[playerid][OILFIELD] = 1;
- timer[playerid][OILFIELD] = SetTimerEx("OilCaptured",20000,false,"i",playerid);
- if(tCheck[OILFIELD] == BRASIL)
- {
- SendClientMessage(playerid,-1,"Territorio Brasileiro");
- foreach(new i:Player)
- {
- if(gPais[i] == BRASIL)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Oil Field - está sob ataque!");
- }
- }
- }
- if(tCheck[OILFIELD] == FRANCE)
- {
- SendClientMessage(playerid,BRANCO,"Territorio Frances");
- foreach(new i:Player)
- {
- if(gPais[i] == FRANCE)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Oil Field - está sob ataque!");
- }
- }
- }
- if(tCheck[OILFIELD] == RUSSIA)
- {
- SendClientMessage(playerid,BRANCO,"Territorio Russo");
- foreach(new i:Player)
- {
- if(gPais[i] == RUSSIA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Oil Field - está sob ataque!");
- }
- }
- }
- if(tCheck[OILFIELD] == USA)
- {
- SendClientMessage(playerid,BRANCO,"Territorio Americano");
- foreach(new i:Player)
- {
- if(gPais[i] == USA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Oil Field - está sob ataque!");
- }
- }
- }
- if(tCheck[OILFIELD] == ENGLAND)
- {
- SendClientMessage(playerid,BRANCO,"Territorio Ingles");
- foreach(new i:Player)
- {
- if(gPais[i] == ENGLAND)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Oil Field - está sob ataque!");
- }
- }
- }
- if(tCheck[OILFIELD] == ARAB)
- {
- SendClientMessage(playerid,BRANCO,"Territorio Arabe");
- foreach(new i:Player)
- {
- if(gPais[i] == ARAB)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Oil Field - está sob ataque!");
- }
- }
- }
- if(tCheck[OILFIELD] == NONE)
- {
- SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém");
- }
- }
- else if(tCheck[OILFIELD] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR] Este Territorio ja é controlado por seu Pais!");
- return 1;
- }
- forward OilCaptured(playerid);
- public OilCaptured(playerid)
- {
- UnderAttack[OILFIELD] = 0;
- tCheck[OILFIELD] = gPais[playerid];
- IsPlayerCapturing[playerid][OILFIELD] = 0;
- Captured[playerid][OILFIELD] = 1;
- GangZoneShowForAll(Zone[OILFIELD],GetPlayerColor(playerid));
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] dominou - Oil filed - para %s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Oil Field - para seu Pais!");
- GivePlayerMoney(playerid,5000);
- SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
- KillTimer(timer[playerid][OILFIELD]);
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_Close(File);
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid]&&i!=playerid)
- {
- SendClientMessage(i,VERDE,"Seu País conquistou - Oil Field - Você ganhou +1 score e + R$ 1000!");
- GivePlayerMoney(i,1000);
- SetPlayerScore(i,GetPlayerScore(i)+1);
- }
- }
- return 1;
- }
- stock LeavingOil(playerid)
- {
- UnderAttack[OILFIELD] = 0;
- Captured[playerid][OILFIELD] = 0;
- GangZoneStopFlashForAll(Zone[OILFIELD]);
- KillTimer(timer[playerid][OILFIELD]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
- return 1;
- }
- //Hunter Quarry
- stock ActiveQuarry(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[QUARRY] == 0&&tCheck[QUARRY]!=gPais[playerid])
- {
- if(tCheck[QUARRY] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- if(UnderAttack[QUARRY] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
- UnderAttack[QUARRY] = 1;
- Captured[playerid][QUARRY] = 0;
- IsPlayerCapturing[playerid][QUARRY] = 1;
- GangZoneFlashForAll(Zone[QUARRY],GetPlayerColor(playerid));
- SendClientMessage(playerid,BRANCO,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
- timer[playerid][QUARRY] = SetTimerEx("QuarryCaptured",20000,false,"i",playerid);
- if(tCheck[QUARRY] == BRASIL)
- {
- SendClientMessage(playerid,BRANCO,"Territorio Brasileiro");
- foreach(new i:Player)
- {
- if(gPais[i] == BRASIL)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Hunter Quarry - está sob ataque!");
- }
- }
- }
- if(tCheck[QUARRY] == USA)
- {
- SendClientMessage(playerid,BRANCO,"Territorio Americano");
- foreach(new i:Player)
- {
- if(gPais[i] == USA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Hunter Quarry - está sob ataque!");
- }
- }
- }
- if(tCheck[QUARRY] == FRANCE)
- {
- SendClientMessage(playerid,-1,"Territorio Frances");
- foreach(new i:Player)
- {
- if(gPais[i] == FRANCE)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Hunter Quarry - está sob ataque!");
- }
- }
- }
- if(tCheck[QUARRY] == ARAB)
- {
- SendClientMessage(playerid,-1,"Territorio Arabe");
- foreach(new i:Player)
- {
- if(gPais[i] == ARAB)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Hunter Quarry - está sob ataque!");
- }
- }
- }
- if(tCheck[QUARRY] == ENGLAND)
- {
- SendClientMessage(playerid,-1,"Territorio Ingles");
- foreach(new i:Player)
- {
- if(gPais[i] == ENGLAND)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Hunter Quarry - está sob ataque!");
- }
- }
- }
- if(tCheck[QUARRY] == RUSSIA)
- {
- SendClientMessage(playerid,-1,"Territorio Russo");
- foreach(new i:Player)
- {
- if(gPais[i] == RUSSIA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Hunter Quarry - está sob ataque!");
- }
- }
- }
- if(tCheck[BIGEAR] == NONE)
- {
- SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
- }
- }
- return 1;
- }
- forward QuarryCaptured(playerid);
- public QuarryCaptured(playerid)
- {
- UnderAttack[QUARRY] = 0;
- Captured[playerid][QUARRY] = 1;
- GangZoneStopFlashForAll(Zone[QUARRY]);
- KillTimer(timer[playerid][QUARRY]);
- GivePlayerMoney(playerid,5000);
- tCheck[QUARRY] = gPais[playerid];
- GangZoneShowForAll(Zone[QUARRY],GetPlayerColor(playerid));
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] dominou - Hunter Quarry - para %s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
- SendClientMessage(playerid,VERDE,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Hunter Quarry - para seu Pais!");
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_Close(File);
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid]&&i!=playerid)
- {
- SetPlayerScore(i,GetPlayerScore(i)+1);
- GivePlayerMoney(i,1000);
- SendClientMessage(i,BRANCO,"Seu País conquistou - Hunter Quarry - Você ganhou +1 score e + R$ 1000!");
- }
- }
- return 1;
- }
- stock LeavingQuarry(playerid)
- {
- UnderAttack[QUARRY] = 0;
- Captured[playerid][QUARRY] = 0;
- IsPlayerCapturing[playerid][QUARRY] = 0;
- KillTimer(timer[playerid][QUARRY]);
- GangZoneStopFlashForAll(Zone[QUARRY]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
- }
- //Bigear
- stock ActiveBigEar(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[BIGEAR] == 0&&tCheck[BIGEAR]!=gPais[playerid])
- {
- if(tCheck[BIGEAR] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- if(UnderAttack[BIGEAR] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
- UnderAttack[BIGEAR] = 1;
- Captured[playerid][BIGEAR] = 0;
- IsPlayerCapturing[playerid][BIGEAR] = 1;
- GangZoneFlashForAll(Zone[BIGEAR],GetPlayerColor(playerid));
- SendClientMessage(playerid,BRANCO,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
- timer[playerid][BIGEAR] = SetTimerEx("BigEarCaptured",20000,false,"i",playerid);
- if(tCheck[BIGEAR] == BRASIL)
- {
- SendClientMessage(playerid,-1,"Territorio Brasileiro");
- foreach(new i:Player)
- {
- if(gPais[i] == BRASIL)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA]- Big Ear - esta sob ataque!");
- }
- }
- }
- if(tCheck[BIGEAR] == USA)
- {
- SendClientMessage(playerid,-1,"Territorio Americano");
- foreach(new i:Player)
- {
- if(gPais[i] == USA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA]- Big Ear - esta sob ataque!");
- }
- }
- }
- if(tCheck[BIGEAR] == ARAB)
- {
- SendClientMessage(playerid,-1,"Territorio Arabe");
- foreach(new i:Player)
- {
- if(gPais[i] == ARAB)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA]- Big Ear - esta sob ataque!!");
- }
- }
- }
- if(tCheck[BIGEAR] == FRANCE)
- {
- SendClientMessage(playerid,-1,"Territorio Frances");
- foreach(new i:Player)
- {
- if(gPais[i] == FRANCE)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA]- Big Ear - esta sob ataque!");
- }
- }
- }
- if(tCheck[BIGEAR] == ENGLAND)
- {
- SendClientMessage(playerid,-1,"Territorio Ingles");
- foreach(new i:Player)
- {
- if(gPais[i] == ENGLAND)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA]- Big Ear - esta sob ataque!");
- }
- }
- }
- if(tCheck[BIGEAR] == RUSSIA)
- {
- SendClientMessage(playerid,-1,"Territorio Russo");
- foreach(new i:Player)
- {
- if(gPais[i] == RUSSIA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA]- Big Ear - esta sob ataque!");
- }
- }
- }
- if(tCheck[BIGEAR] == NONE)
- {
- SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
- }
- }
- return 1;
- }
- forward BigEarCaptured(playerid);
- public BigEarCaptured(playerid)
- {
- tCheck[BIGEAR] = gPais[playerid];
- GangZoneShowForAll(Zone[BIGEAR],GetPlayerColor(playerid));
- GangZoneStopFlashForAll(Zone[BIGEAR]);
- UnderAttack[BIGEAR] = 0;
- Captured[playerid][BIGEAR] = 1;
- KillTimer(timer[playerid][BIGEAR]);
- SendClientMessage(playerid,VERDE,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Big Ear - para seu Pais!");
- GivePlayerMoney(playerid,5000);
- SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] dominou - Big Ear - para %s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_Close(File);
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid]&&i!=playerid)
- {
- GivePlayerMoney(i,1000);
- SetPlayerScore(i,GetPlayerScore(i)+1);
- SendClientMessage(i,VERDE,"Seu País conquistou - Big Ear - Você ganhou +1 score e + R$ 1000!");
- }
- }
- return 1;
- }
- stock LeavingBigEar(playerid)
- {
- UnderAttack[BIGEAR] = 0;
- IsPlayerCapturing[playerid][BIGEAR] = 0;
- Captured[playerid][BIGEAR] = 0;
- GangZoneStopFlashForAll(Zone[BIGEAR]);
- KillTimer(timer[playerid][BIGEAR]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
- return 1;
- }
- //UFO Zone!
- stock ActiveUfo(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&tCheck[UFO]!=gPais[playerid]&&UnderAttack[UFO] == 0)
- {
- if(tCheck[UFO] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- if(UnderAttack[UFO] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
- UnderAttack[UFO] = 1;
- IsPlayerCapturing[playerid][UFO] = 1;
- Captured[playerid][UFO] = 0;
- GangZoneFlashForAll(Zone[UFO],GetPlayerColor(playerid));
- timer[playerid][UFO] = SetTimerEx("UfoCaptured",20000,false,"i",playerid);
- SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
- if(tCheck[UFO] == BRASIL)
- {
- SendClientMessage(playerid,-1,"Territorio Brasileiro");
- foreach(new i:Player)
- {
- if(gPais[i] == BRASIL)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Ufo - está sob ataque!");
- }
- }
- }
- if(tCheck[UFO] == USA)
- {
- SendClientMessage(playerid,-1,"Territorio Americano");
- foreach(new i:Player)
- {
- if(gPais[i] == USA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Ufo - está sob ataque!");
- }
- }
- }
- if(tCheck[UFO] == RUSSIA)
- {
- SendClientMessage(playerid,-1,"Territorio Russo");
- foreach(new i:Player)
- {
- if(gPais[i] == RUSSIA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Ufo - está sob ataque!");
- }
- }
- }
- if(tCheck[UFO] == ENGLAND)
- {
- SendClientMessage(playerid,-1,"Territorio Ingles");
- foreach(new i:Player)
- {
- if(gPais[i] == ENGLAND)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Ufo - está sob ataque!");
- }
- }
- }
- if(tCheck[UFO] == FRANCE)
- {
- SendClientMessage(playerid,-1,"Territorio Frances");
- foreach(new i:Player)
- {
- if(gPais[i] == FRANCE)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Ufo - está sob ataque!");
- }
- }
- }
- if(tCheck[UFO] == ARAB)
- {
- SendClientMessage(playerid,-1,"Territorio Arabe");
- foreach(new i:Player)
- {
- if(gPais[i] == ARAB)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Ufo - está sob ataque!");
- }
- }
- }
- if(tCheck[UFO] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
- }
- return 1;
- }
- forward UfoCaptured(playerid);
- public UfoCaptured(playerid)
- {
- UnderAttack[UFO] = 0;
- Captured[playerid][UFO] = 1;
- tCheck[UFO] = gPais[playerid];
- KillTimer(timer[playerid][UFO]);
- GangZoneStopFlashForAll(Zone[UFO]);
- GangZoneShowForAll(Zone[UFO],GetPlayerColor(playerid));
- GivePlayerMoney(playerid,5000);
- SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
- SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Ufo - para seu Pais!");
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] dominou - Ufo - para %s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_Close(File);
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid]&&i!=playerid)
- {
- GivePlayerMoney(i,1000);
- SetPlayerScore(i,GetPlayerScore(i)+1);
- SendClientMessage(i,VERDE,"Seu País conquistou - Ufo - Você ganhou +1 score e + R$ 1000!");
- }
- }
- return 1;
- }
- stock LeavingUfo(playerid)
- {
- UnderAttack[UFO] = 0;
- Captured[playerid][UFO] = 0;
- IsPlayerCapturing[playerid][UFO] = 0;
- GangZoneStopFlashForAll(Zone[UFO]);
- KillTimer(timer[playerid][UFO]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
- return 1;
- }
- //Area51
- stock ActiveArea51(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[AREA51] == 0&&tCheck[AREA51]!=gPais[playerid])
- {
- if(tCheck[AREA51] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- if(UnderAttack[AREA51] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
- UnderAttack[AREA51] = 1;
- IsPlayerCapturing[playerid][AREA51] = 1;
- Captured[playerid][AREA51] = 0;
- GangZoneFlashForAll(Zone[AREA51],GetPlayerColor(playerid));
- timer[playerid][AREA51] = SetTimerEx("Area51Captured",20000,false,"i",playerid);
- SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
- if(tCheck[AREA51] == BRASIL)
- {
- SendClientMessage(playerid,-1,"Territorio Brasileiro");
- foreach(new i:Player)
- {
- if(gPais[i] == BRASIL)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Area51 - está sob ataque!");
- }
- }
- }
- if(tCheck[AREA51] == RUSSIA)
- {
- SendClientMessage(playerid,-1,"Territorio Russo");
- foreach(new i:Player)
- {
- if(gPais[i] == RUSSIA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Area51 - está sob ataque!");
- }
- }
- }
- if(tCheck[AREA51] == ENGLAND)
- {
- SendClientMessage(playerid,-1,"Territorio Ingles");
- foreach(new i:Player)
- {
- if(gPais[i] == ENGLAND)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Area51 - está sob ataque!");
- }
- }
- }
- if(tCheck[AREA51] == USA)
- {
- SendClientMessage(playerid,-1,"Territorio Americano");
- foreach(new i:Player)
- {
- if(gPais[i] == USA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Area51 - está sob ataque!");
- }
- }
- }
- if(tCheck[AREA51] == FRANCE)
- {
- SendClientMessage(playerid,-1,"Territorio Frances");
- foreach(new i:Player)
- {
- if(gPais[i] == FRANCE)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Area51 - está sob ataque!");
- }
- }
- }
- if(tCheck[AREA51] == ARAB)
- {
- SendClientMessage(playerid,-1,"Territorio Arabe");
- foreach(new i:Player)
- {
- if(gPais[i] == ARAB)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Area51 - está sob ataque!");
- }
- }
- }
- if(tCheck[AREA51] == NONE)
- {
- SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
- }
- }
- return 1;
- }
- forward Area51Captured(playerid);
- public Area51Captured(playerid)
- {
- GangZoneStopFlashForAll(Zone[AREA51]);
- GangZoneShowForAll(Zone[AREA51],GetPlayerColor(playerid));
- KillTimer(timer[playerid][AREA51]);
- UnderAttack[AREA51] = 0;
- tCheck[AREA51] = gPais[playerid];
- Captured[playerid][AREA51] = 1;
- SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
- SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Area 51 - para seu Pais!");
- GivePlayerMoney(playerid,5000);
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] dominou - Area51 - para %s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_Close(File);
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid]&&i!=playerid)
- {
- GivePlayerMoney(i,1000);
- SetPlayerScore(i,GetPlayerScore(i)+1);
- SendClientMessage(i,VERDE,"Seu País conquistou - Area 51 - Você ganhou +1 score e + R$ 1000!");
- }
- }
- }
- stock LeavingArea51(playerid)
- {
- UnderAttack[AREA51] = 0;
- Captured[playerid][AREA51] = 0;
- IsPlayerCapturing[playerid][AREA51] = 0;
- GangZoneStopFlashForAll(Zone[AREA51]);
- KillTimer(timer[playerid][AREA51]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
- return 1;
- }
- //Abandoned airstrip
- stock ActiveAbandoned(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[ABANDONED] == 0&&tCheck[ABANDONED]!=gPais[playerid])
- {
- if(tCheck[ABANDONED] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- if(UnderAttack[ABANDONED] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
- UnderAttack[ABANDONED] = 1;
- Captured[playerid][ABANDONED] = 0;
- IsPlayerCapturing[playerid][ABANDONED] = 1;
- GangZoneFlashForAll(Zone[ABANDONED],GetPlayerColor(playerid));
- timer[playerid][ABANDONED] = SetTimerEx("AbandonedCaptured",20000,false,"i",playerid);
- SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
- if(tCheck[ABANDONED] == BRASIL)
- {
- SendClientMessage(playerid,-1,"Territorio Brasileiro");
- foreach(new i:Player)
- {
- if(gPais[i] == BRASIL)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Abandoned Airstrip - está sob ataque!");
- }
- }
- }
- if(tCheck[ABANDONED] == FRANCE)
- {
- SendClientMessage(playerid,-1,"Territorio Frances");
- foreach(new i:Player)
- {
- if(gPais[i] == FRANCE)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Abandoned Airstrip - está sob ataque!");
- }
- }
- }
- if(tCheck[ABANDONED] == RUSSIA)
- {
- SendClientMessage(playerid,-1,"Territorio Russo");
- foreach(new i:Player)
- {
- if(gPais[i] == RUSSIA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Abandoned Airstrip - está sob ataque!");
- }
- }
- }
- if(tCheck[ABANDONED] == ARAB)
- {
- SendClientMessage(playerid,-1,"Territorio Arabe");
- foreach(new i:Player)
- {
- if(gPais[i] == ARAB)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Abandoned Airstrip - está sob ataque!");
- }
- }
- }
- if(tCheck[ABANDONED] == ENGLAND)
- {
- SendClientMessage(playerid,-1,"Territorio Ingles");
- foreach(new i:Player)
- {
- if(gPais[i] == ENGLAND)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Abandoned Airstrip - está sob ataque!");
- }
- }
- }
- if(tCheck[ABANDONED] == USA)
- {
- SendClientMessage(playerid,-1,"Territorio Americano");
- foreach(new i:Player)
- {
- if(gPais[i] == USA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Abandoned Airstrip - está sob ataque!");
- }
- }
- }
- if(tCheck[ABANDONED] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
- }
- return 1;
- }
- forward AbandonedCaptured(playerid);
- public AbandonedCaptured(playerid)
- {
- UnderAttack[ABANDONED] = 0;
- Captured[playerid][ABANDONED] = 1;
- KillTimer(timer[playerid][ABANDONED]);
- tCheck[ABANDONED] = gPais[playerid];
- GangZoneStopFlashForAll(Zone[ABANDONED]);
- GangZoneShowForAll(Zone[ABANDONED],GetPlayerColor(playerid));
- SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
- SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Abandoned Airstrip - para seu Pais!");
- GivePlayerMoney(playerid,5000);
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] dominou - Abandoned Airsrtip - para %s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_Close(File);
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid]&&i!=playerid)
- {
- SendClientMessage(i,VERDE,"Seu País conquistou - Abandoned Airstrip - Você ganhou +1 score e + R$ 1000!");
- GivePlayerMoney(i,1000);
- SetPlayerScore(i,GetPlayerScore(i)+1);
- }
- }
- return 1;
- }
- stock LeavingAbandoned(playerid)
- {
- UnderAttack[ABANDONED] = 0;
- Captured[playerid][ABANDONED] = 0;
- IsPlayerCapturing[playerid][ABANDONED] = 0;
- GangZoneStopFlashForAll(Zone[ABANDONED]);
- KillTimer(timer[playerid][ABANDONED]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
- return 1;
- }
- //Snake Farm
- stock ActiveSnake(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[SNAKE] == 0&&tCheck[SNAKE]!=gPais[playerid])
- {
- if(tCheck[SNAKE] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- if(UnderAttack[SNAKE] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
- UnderAttack[SNAKE] = 1;
- Captured[playerid][SNAKE] = 0;
- IsPlayerCapturing[playerid][SNAKE] = 1;
- GangZoneFlashForAll(Zone[SNAKE],GetPlayerColor(playerid));
- timer[playerid][SNAKE] = SetTimerEx("SnakeCaptured",20000,false,"i",playerid);
- SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
- if(tCheck[SNAKE] == BRASIL)
- {
- SendClientMessage(playerid,-1,"Territorio Brasileiro");
- foreach(new i:Player)
- {
- if(gPais[i] == BRASIL)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Snake farm - está sob ataque!");
- }
- }
- }
- if(tCheck[SNAKE] == USA)
- {
- SendClientMessage(playerid,-1,"Territorio Americano");
- foreach(new i:Player)
- {
- if(gPais[i] == USA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Snake farm - está sob ataque!");
- }
- }
- }
- if(tCheck[SNAKE] == ARAB)
- {
- SendClientMessage(playerid,-1,"Territorio Arabe");
- foreach(new i:Player)
- {
- if(gPais[i] == ARAB)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Snake farm - está sob ataque!");
- }
- }
- }
- if(tCheck[SNAKE] == FRANCE)
- {
- SendClientMessage(playerid,-1,"Territorio Frances");
- foreach(new i:Player)
- {
- if(gPais[i] == FRANCE)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Snake farm - está sob ataque!");
- }
- }
- }
- if(tCheck[SNAKE] == RUSSIA)
- {
- SendClientMessage(playerid,-1,"Territorio Russo");
- foreach(new i:Player)
- {
- if(gPais[i] == RUSSIA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Snake farm - está sob ataque!");
- }
- }
- }
- if(tCheck[SNAKE] == ENGLAND)
- {
- SendClientMessage(playerid,-1,"Territorio Ingles");
- foreach(new i:Player)
- {
- if(gPais[i] == ENGLAND)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Snake farm - está sob ataque!");
- }
- }
- }
- if(tCheck[SNAKE] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
- }
- return 1;
- }
- forward SnakeCaptured(playerid);
- public SnakeCaptured(playerid)
- {
- tCheck[SNAKE] = gPais[playerid];
- KillTimer(timer[playerid][SNAKE]);
- GangZoneStopFlashForAll(Zone[SNAKE]);
- GangZoneShowForAll(Zone[SNAKE],GetPlayerColor(playerid));
- UnderAttack[SNAKE] = 0;
- Captured[playerid][SNAKE] = 1;
- SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Snack Farm - para seu Pais!");
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] dominou - Snack Farm - para %s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_Close(File);
- SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
- GivePlayerMoney(playerid,5000);
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid] && i!=playerid)
- {
- GivePlayerMoney(i,1000);
- SetPlayerScore(i,GetPlayerScore(i)+1);
- SendClientMessage(i,VERDE,"Seu País conquistou - Snack Farm - Você ganhou +1 score e + R$ 1000!");
- }
- }
- }
- stock LeavingSnake(playerid)
- {
- UnderAttack[SNAKE] = 0;
- Captured[playerid][SNAKE] = 1;
- IsPlayerCapturing[playerid][SNAKE] = 0;
- KillTimer(timer[playerid][SNAKE]);
- GangZoneStopFlashForAll(Zone[SNAKE]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
- return 1;
- }
- //Basin
- stock ActiveBasin(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[BASIN] == 0&&tCheck[BASIN]!=gPais[playerid])
- {
- if(tCheck[BASIN] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- if(UnderAttack[BASIN] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
- UnderAttack[BASIN] = 1;
- Captured[playerid][BASIN] = 0;
- IsPlayerCapturing[playerid][BASIN] = 1;
- GangZoneFlashForAll(Zone[BASIN],GetPlayerColor(playerid));
- timer[playerid][BASIN] = SetTimerEx("BasinCaptured",20000,false,"i",playerid);
- SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
- if(tCheck[BASIN] == BRASIL)
- {
- SendClientMessage(playerid,-1,"Territorio Brasileiro");
- foreach(new i:Player)
- {
- if(gPais[i] == BRASIL)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Basin - está sob ataque!");
- }
- }
- }
- if(tCheck[BASIN] == FRANCE)
- {
- SendClientMessage(playerid,-1,"Territorio Frances");
- foreach(new i:Player)
- {
- if(gPais[i] == FRANCE)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Basin - está sob ataque!");
- }
- }
- }
- if(tCheck[BASIN] == USA)
- {
- SendClientMessage(playerid,-1,"Territorio Americano");
- foreach(new i:Player)
- {
- if(gPais[i] == USA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Basin - está sob ataque!");
- }
- }
- }
- if(tCheck[BASIN] == ARAB)
- {
- SendClientMessage(playerid,-1,"Territorio Arabe");
- foreach(new i:Player)
- {
- if(gPais[i] == ARAB)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Basin - está sob ataque!");
- }
- }
- }
- if(tCheck[BASIN] == RUSSIA)
- {
- SendClientMessage(playerid,-1,"Territorio Russo");
- foreach(new i:Player)
- {
- if(gPais[i] == RUSSIA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Basin - está sob ataque!");
- }
- }
- }
- if(tCheck[BASIN] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
- }
- return 1;
- }
- forward BasinCaptured(playerid);
- public BasinCaptured(playerid)
- {
- UnderAttack[BASIN] = 0;
- Captured[playerid][BASIN] = 1;
- KillTimer(timer[playerid][BASIN]);
- GangZoneStopFlashForAll(Zone[BASIN]);
- tCheck[BASIN] = gPais[playerid];
- GangZoneShowForAll(Zone[BASIN],GetPlayerColor(playerid));
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] dominou - Basin - para %s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Basin - para seu Pais!");
- GivePlayerMoney(playerid,5000);
- SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_Close(File);
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid]&&i!=playerid)
- {
- GivePlayerMoney(i,1000);
- SetPlayerScore(i,GetPlayerScore(i)+1);
- SendClientMessage(i,VERDE,"Seu País conquistou - Basin - Você ganhou +1 score e + R$ 1000!");
- }
- }
- return 1;
- }
- stock LeavingBasin(playerid)
- {
- UnderAttack[BASIN] = 0;
- Captured[playerid][BASIN] = 0;
- IsPlayerCapturing[playerid][BASIN] = 0;
- KillTimer(timer[playerid][BASIN]);
- GangZoneStopFlashForAll(Zone[BASIN]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
- return 1;
- }
- //Beach side
- stock ActiveBeach(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[BEACHSIDE] == 0&&tCheck[BEACHSIDE]!=gPais[playerid])
- {
- if(tCheck[BEACHSIDE] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- if(UnderAttack[BEACHSIDE] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
- UnderAttack[BEACHSIDE] = 1;
- Captured[playerid][BEACHSIDE] = 0;
- IsPlayerCapturing[playerid][BEACHSIDE] = 1;
- GangZoneFlashForAll(Zone[BEACHSIDE],GetPlayerColor(playerid));
- timer[playerid][BEACHSIDE] = SetTimerEx("BeachCaptured",20000,false,"i",playerid);
- SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
- if(tCheck[BEACHSIDE] == BRASIL)
- {
- SendClientMessage(playerid,-1,"Territorio Brasileiro");
- foreach(new i:Player)
- {
- if(gPais[i] == BRASIL)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Beach side - está sob ataque!");
- }
- }
- }
- if(tCheck[BEACHSIDE] == USA)
- {
- SendClientMessage(playerid,-1,"Territorio Americano");
- foreach(new i:Player)
- {
- if(gPais[i] == USA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Beach side - está sob ataque!");
- }
- }
- }
- if(tCheck[BEACHSIDE] == RUSSIA)
- {
- SendClientMessage(playerid,-1,"Territorio Russo");
- foreach(new i:Player)
- {
- if(gPais[i] == RUSSIA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Beach side - está sob ataque!");
- }
- }
- }
- if(tCheck[BEACHSIDE] == ENGLAND)
- {
- SendClientMessage(playerid,-1,"Territorio Ingles");
- foreach(new i:Player)
- {
- if(gPais[i] == ENGLAND)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Beach side - está sob ataque!");
- }
- }
- }
- if(tCheck[BEACHSIDE] == FRANCE)
- {
- SendClientMessage(playerid,-1,"Territorio Frances");
- foreach(new i:Player)
- {
- if(gPais[i] == FRANCE)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Beach side - está sob ataque!");
- }
- }
- }
- if(tCheck[BEACHSIDE] == ARAB)
- {
- SendClientMessage(playerid,-1,"Territorio Arabe");
- foreach(new i:Player)
- {
- if(gPais[i] == ARAB)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Beach side - está sob ataque!");
- }
- }
- }
- if(tCheck[BEACHSIDE] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
- }
- return 1;
- }
- forward BeachCaptured(playerid);
- public BeachCaptured(playerid)
- {
- UnderAttack[BEACHSIDE] = 0;
- Captured[playerid][BEACHSIDE] = 1;
- KillTimer(timer[playerid][BEACHSIDE]);
- GangZoneStopFlashForAll(Zone[BEACHSIDE]);
- GangZoneShowForAll(Zone[BEACHSIDE],GetPlayerColor(playerid));
- tCheck[BEACHSIDE] = gPais[playerid];
- GivePlayerMoney(playerid,5000);
- SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
- SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Beach Side - para seu Pais!");
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] dominou - Beach Side - para %s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_Close(File);
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid]&&i!=playerid)
- {
- GivePlayerMoney(i,1000);
- SetPlayerScore(i,GetPlayerScore(i)+1);
- SendClientMessage(i,VERDE,"Seu País conquistou - Beach Side - Você ganhou +1 score e + R$ 1000!");
- }
- }
- return 1;
- }
- stock LeavingBeach(playerid)
- {
- UnderAttack[BEACHSIDE] = 0;
- Captured[playerid][BEACHSIDE] = 0;
- IsPlayerCapturing[playerid][BEACHSIDE] = 0;
- KillTimer(timer[playerid][BEACHSIDE]);
- GangZoneStopFlashForAll(Zone[BEACHSIDE]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
- return 1;
- }
- //Army restaurant
- stock ActiveRestaurant(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[RESTAURANT] == 0&&tCheck[RESTAURANT]!=gPais[playerid])
- {
- if(tCheck[RESTAURANT] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- if(UnderAttack[RESTAURANT] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
- UnderAttack[RESTAURANT] = 1;
- Captured[playerid][RESTAURANT] = 0;
- IsPlayerCapturing[playerid][RESTAURANT] = 1;
- GangZoneFlashForAll(Zone[RESTAURANT],GetPlayerColor(playerid));
- timer[playerid][RESTAURANT] = SetTimerEx("RestaurantCaptured",20000,false,"i",playerid);
- SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
- if(tCheck[RESTAURANT] == BRASIL)
- {
- SendClientMessage(playerid,-1,"Territorio Brasileiro");
- foreach(new i:Player)
- {
- if(gPais[i] == BRASIL)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Army restaurant - está sob ataque!");
- }
- }
- }
- if(tCheck[RESTAURANT] == RUSSIA)
- {
- SendClientMessage(playerid,-1,"Territorio Russo");
- foreach(new i:Player)
- {
- if(gPais[i] == RUSSIA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Army restaurant - está sob ataque!");
- }
- }
- }
- if(tCheck[RESTAURANT] == USA)
- {
- SendClientMessage(playerid,-1,"Territorio Americano");
- foreach(new i:Player)
- {
- if(gPais[i] == USA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Army restaurant - está sob ataque!");
- }
- }
- }
- if(tCheck[RESTAURANT] == ENGLAND)
- {
- SendClientMessage(playerid,-1,"Territorio Ingles");
- foreach(new i:Player)
- {
- if(gPais[i] == ENGLAND)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Army restaurant - está sob ataque!");
- }
- }
- }
- if(tCheck[RESTAURANT] == ARAB)
- {
- SendClientMessage(playerid,-1,"Territorio Arabe");
- foreach(new i:Player)
- {
- if(gPais[i] == ARAB)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Army restaurant - está sob ataque!");
- }
- }
- }
- if(tCheck[RESTAURANT] == FRANCE)
- {
- SendClientMessage(playerid,-1,"Territorio Frances");
- foreach(new i:Player)
- {
- if(gPais[i] == FRANCE)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Army restaurant - está sob ataque!");
- }
- }
- }
- if(tCheck[RESTAURANT] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
- }
- return 1;
- }
- forward RestaurantCaptured(playerid);
- public RestaurantCaptured(playerid)
- {
- UnderAttack[RESTAURANT] = 0;
- Captured[playerid][RESTAURANT] = 1;
- tCheck[RESTAURANT] = gPais[playerid];
- KillTimer(timer[playerid][RESTAURANT]);
- GangZoneStopFlashForAll(Zone[RESTAURANT]);
- GangZoneShowForAll(Zone[RESTAURANT],GetPlayerColor(playerid));
- GivePlayerMoney(playerid,5000);
- SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
- SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Army Restaurant - para seu Pais!");
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] dominou - Army Restaurant - para %s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_Close(File);
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid]&&i!=playerid)
- {
- SendClientMessage(i,VERDE,"Seu País conquistou - Army Restaurant - Você ganhou +1 score e + R$ 1000!");
- GivePlayerMoney(i,1000);
- SetPlayerScore(i,GetPlayerScore(i)+1);
- }
- }
- return 1;
- }
- stock LeavingRestaurant(playerid)
- {
- UnderAttack[RESTAURANT] = 0;
- Captured[playerid][RESTAURANT] = 0;
- IsPlayerCapturing[playerid][RESTAURANT] = 0;
- KillTimer(timer[playerid][RESTAURANT]);
- GangZoneStopFlashForAll(Zone[RESTAURANT]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
- return 1;
- }
- //Gas STATION
- stock ActiveGas(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[GAS] == 0&&tCheck[GAS]!=gPais[playerid])
- {
- if(tCheck[GAS] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- if(UnderAttack[GAS] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
- UnderAttack[GAS] = 1;
- IsPlayerCapturing[playerid][GAS] = 1;
- Captured[playerid][GAS] = 0;
- GangZoneFlashForAll(Zone[GAS],GetPlayerColor(playerid));
- timer[playerid][GAS] = SetTimerEx("GasCaptured",20000,false,"i",playerid);
- SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
- if(tCheck[GAS] == BRASIL)
- {
- SendClientMessage(playerid,-1,"Territorio Brasileiro");
- foreach(new i:Player)
- {
- if(gPais[i] == BRASIL)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Gas station - está sob ataque!");
- }
- }
- }
- if(tCheck[GAS] == USA)
- {
- SendClientMessage(playerid,-1,"Territorio Americano");
- foreach(new i:Player)
- {
- if(gPais[i] == USA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Gas station - está sob ataque!");
- }
- }
- }
- if(tCheck[GAS] == RUSSIA)
- {
- SendClientMessage(playerid,-1,"Territorio Russo");
- foreach(new i:Player)
- {
- if(gPais[i] == RUSSIA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Gas station - está sob ataque!");
- }
- }
- }
- if(tCheck[GAS] == ARAB)
- {
- SendClientMessage(playerid,-1,"Territorio Arabe");
- foreach(new i:Player)
- {
- if(gPais[i] == ARAB)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Gas station - está sob ataque!");
- }
- }
- }
- if(tCheck[GAS] == FRANCE)
- {
- SendClientMessage(playerid,-1,"Territorio Frances");
- foreach(new i:Player)
- {
- if(gPais[i] == FRANCE)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Gas station - está sob ataque!");
- }
- }
- }
- if(tCheck[GAS] == ENGLAND)
- {
- SendClientMessage(playerid,-1,"Territorio Ingles");
- foreach(new i:Player)
- {
- if(gPais[i] == ENGLAND)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Gas station - está sob ataque!");
- }
- }
- }
- if(tCheck[GAS] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
- }
- return 1;
- }
- forward GasCaptured(playerid);
- public GasCaptured(playerid)
- {
- UnderAttack[GAS] = 0;
- Captured[playerid][GAS] = 1;
- IsPlayerCapturing[playerid][GAS] = 0;
- GangZoneStopFlashForAll(Zone[GAS]);
- GangZoneShowForAll(Zone[GAS],GetPlayerColor(playerid));
- tCheck[GAS] = gPais[playerid];
- KillTimer(timer[playerid][GAS]);
- GivePlayerMoney(playerid,5000);
- SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
- SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Gas Station - para seu Pais!");
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] dominou - Gas Station - para %s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_Close(File);
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid]&&i!=playerid)
- {
- GivePlayerMoney(i,1000);
- SetPlayerScore(i,GetPlayerScore(i)+1);
- SendClientMessage(i,-1,"Seu País conquistou - Gas Station - Você ganhou +1 score e + R$ 1000!");
- }
- }
- return 1;
- }
- stock LeavingGas(playerid)
- {
- UnderAttack[GAS] = 0;
- Captured[playerid][GAS] = 0;
- IsPlayerCapturing[playerid][GAS] = 0;
- KillTimer(timer[playerid][GAS]);
- GangZoneStopFlashForAll(Zone[GAS]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
- return 1;
- }
- //Race Stadium
- stock ActiveStadium(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid) && UnderAttack[STADIUM] == 0 && tCheck[STADIUM]!=gPais[playerid])
- {
- if(tCheck[STADIUM] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- if(UnderAttack[STADIUM] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
- UnderAttack[STADIUM] = 1;
- IsPlayerCapturing[playerid][STADIUM] = 1;
- Captured[playerid][STADIUM] = 0;
- timer[playerid][STADIUM] = SetTimerEx("StadiumCaptured",20000,false,"i",playerid);
- GangZoneFlashForAll(Zone[STADIUM],GetPlayerColor(playerid));
- SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
- if(tCheck[STADIUM] == BRASIL)
- {
- SendClientMessage(playerid,-1,"Territorio Brasileiro");
- foreach(new i:Player)
- {
- if(gPais[i] == BRASIL)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Stadium - está sob ataque!");
- }
- }
- }
- if(tCheck[STADIUM] == USA)
- {
- SendClientMessage(playerid,-1,"Territorio Americano");
- foreach(new i:Player)
- {
- if(gPais[i] == USA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Stadium - está sob ataque!");
- }
- }
- }
- if(tCheck[STADIUM] == RUSSIA)
- {
- SendClientMessage(playerid,-1,"Territorio Russo");
- foreach(new i:Player)
- {
- if(gPais[i] == RUSSIA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Stadium - está sob ataque!");
- }
- }
- }
- if(tCheck[STADIUM] == ARAB)
- {
- SendClientMessage(playerid,-1,"Territorio Arabe");
- foreach(new i:Player)
- {
- if(gPais[i] == ARAB)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Stadium - está sob ataque!");
- }
- }
- }
- if(tCheck[STADIUM] == FRANCE)
- {
- SendClientMessage(playerid,-1,"Territorio Frances");
- foreach(new i:Player)
- {
- if(gPais[i] == FRANCE)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Stadium - está sob ataque!");
- }
- }
- }
- if(tCheck[STADIUM] == ENGLAND)
- {
- SendClientMessage(playerid,-1,"Territorio Ingles");
- foreach(new i:Player)
- {
- if(gPais[i] == ENGLAND)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Stadium - está sob ataque!");
- }
- }
- }
- if(tCheck[STADIUM] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
- }
- return 1;
- }
- forward StadiumCaptured(playerid);
- public StadiumCaptured(playerid)
- {
- UnderAttack[STADIUM] = 0;
- Captured[playerid][STADIUM] = 1;
- tCheck[STADIUM] = gPais[playerid];
- GangZoneStopFlashForAll(Zone[STADIUM]);
- GangZoneShowForAll(Zone[STADIUM],GetPlayerColor(playerid));
- KillTimer(timer[playerid][STADIUM]);
- GivePlayerMoney(playerid,5000);
- SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
- SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Race Stadium - para seu Pais!");
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] dominou - Race Stadium - para %s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_Close(File);
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid]&&i!=playerid)
- {
- SendClientMessage(i,VERDE,"Seu País conquistou - Race Stadium - Você ganhou +1 score e + R$ 1000!");
- GivePlayerMoney(i,1000);
- SetPlayerScore(i,GetPlayerScore(i)+1);
- }
- }
- return 1;
- }
- stock LeavingStadium(playerid)
- {
- UnderAttack[STADIUM] = 0;
- Captured[playerid][STADIUM] = 0;
- IsPlayerCapturing[playerid][STADIUM] = 0;
- KillTimer(timer[playerid][STADIUM]);
- GangZoneStopFlashForAll(Zone[STADIUM]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
- }
- //Golden Gate Bridge
- stock ActiveBridge(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[BRIDGE]==0&&tCheck[BRIDGE]!=gPais[playerid])
- {
- if(tCheck[BRIDGE] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- if(UnderAttack[BRIDGE] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
- UnderAttack[BRIDGE] = 1;
- Captured[playerid][BRIDGE] = 0;
- IsPlayerCapturing[playerid][BRIDGE] = 1;
- GangZoneFlashForAll(Zone[BRIDGE],GetPlayerColor(playerid));
- timer[playerid][BRIDGE] = SetTimerEx("BridgeCaptured",25000,false,"i",playerid);
- SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 25 segundos para dominar! ||");
- if(tCheck[BRIDGE] == BRASIL)
- {
- SendClientMessage(playerid,-1,"Territorio Brasileiro");
- foreach(new i:Player)
- {
- if(gPais[i] == BRASIL)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Golden Gate Bridge - está sob ataque!");
- }
- }
- }
- if(tCheck[BRIDGE] == USA)
- {
- SendClientMessage(playerid,-1,"Territorio Americano");
- foreach(new i:Player)
- {
- if(gPais[i] == USA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Golden Gate Bridge - está sob ataque!");
- }
- }
- }
- if(tCheck[BRIDGE] == ARAB)
- {
- SendClientMessage(playerid,-1,"Territorio Arabe");
- foreach(new i:Player)
- {
- if(gPais[i] == ARAB)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Golden Gate Bridge - está sob ataque!");
- }
- }
- }
- if(tCheck[BRIDGE] == RUSSIA)
- {
- SendClientMessage(playerid,-1,"Territorio Russo");
- foreach(new i:Player)
- {
- if(gPais[i] == RUSSIA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Golden Gate Bridge - está sob ataque!");
- }
- }
- }
- if(tCheck[BRIDGE] == FRANCE)
- {
- SendClientMessage(playerid,-1,"Territorio Frances");
- foreach(new i:Player)
- {
- if(gPais[i] == FRANCE)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Golden Gate Bridge - está sob ataque!");
- }
- }
- }
- if(tCheck[BRIDGE] == ENGLAND)
- {
- SendClientMessage(playerid,-1,"Territorio Ingles");
- foreach(new i:Player)
- {
- if(gPais[i] == ENGLAND)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Golden Gate Bridge - está sob ataque!");
- }
- }
- }
- if(tCheck[BRIDGE] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
- }
- return 1;
- }
- forward BridgeCaptured(playerid);
- public BridgeCaptured(playerid)
- {
- UnderAttack[BRIDGE] = 0;
- Captured[playerid][BRIDGE] = 1;
- GangZoneStopFlashForAll(Zone[BRIDGE]);
- GangZoneShowForAll(Zone[BRIDGE],GetPlayerColor(playerid));
- KillTimer(timer[playerid][BRIDGE]);
- tCheck[BRIDGE] = gPais[playerid];
- GivePlayerMoney(playerid,8000);
- SetPlayerScore(playerid,GetPlayerScore(playerid)+8);
- SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 8000 e +8 score por dominar - Golden Gate Bridge - para seu Pais!");
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_Close(File);
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] dominou - Golden Gate Bridge - para %s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid]&&i!=playerid)
- {
- GivePlayerMoney(i,2000);
- SetPlayerScore(i,GetPlayerScore(i)+2);
- SendClientMessage(i,VERDE,"Seu País conquistou - Golden Gate Bridge - Você ganhou +2 score e + R$ 2000!");
- }
- }
- return 1;
- }
- stock LeavingBridge(playerid)
- {
- UnderAttack[BRIDGE] = 0;
- Captured[playerid][BRIDGE] = 0;
- IsPlayerCapturing[playerid][BRIDGE] = 0;
- KillTimer(timer[playerid][BRIDGE]);
- GangZoneStopFlashForAll(Zone[BRIDGE]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
- return 1;
- }
- //MOTEL
- stock ActiveMotel(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[MOTEL]==0&&tCheck[MOTEL]!=gPais[playerid])
- {
- if(tCheck[MOTEL] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- if(UnderAttack[MOTEL] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
- UnderAttack[MOTEL] = 1;
- Captured[playerid][MOTEL] = 0;
- IsPlayerCapturing[playerid][MOTEL] = 1;
- GangZoneFlashForAll(Zone[MOTEL],GetPlayerColor(playerid));
- timer[playerid][MOTEL] = SetTimerEx("MotelCaptured",20000,false,"i",playerid);
- SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
- if(tCheck[MOTEL] == BRASIL)
- {
- SendClientMessage(playerid,-1,"Territorio Brasileiro");
- foreach(new i:Player)
- {
- if(gPais[i] == BRASIL)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Motel - está sob ataque!");
- }
- }
- }
- if(tCheck[MOTEL] == USA)
- {
- SendClientMessage(playerid,-1,"Territorio Americano");
- foreach(new i:Player)
- {
- if(gPais[i] == USA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Motel - está sob ataque!");
- }
- }
- }
- if(tCheck[MOTEL] == ARAB)
- {
- SendClientMessage(playerid,-1,"Territorio Arabe");
- foreach(new i:Player)
- {
- if(gPais[i] == ARAB)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Motel - está sob ataque!");
- }
- }
- }
- if(tCheck[MOTEL] == RUSSIA)
- {
- SendClientMessage(playerid,-1,"Territorio Russo");
- foreach(new i:Player)
- {
- if(gPais[i] == RUSSIA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Motel - está sob ataque!");
- }
- }
- }
- if(tCheck[MOTEL] == FRANCE)
- {
- SendClientMessage(playerid,-1,"Territorio Frances");
- foreach(new i:Player)
- {
- if(gPais[i] == FRANCE)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Motel - está sob ataque!");
- }
- }
- }
- if(tCheck[MOTEL] == ENGLAND)
- {
- SendClientMessage(playerid,-1,"Territorio Ingles");
- foreach(new i:Player)
- {
- if(gPais[i] == ENGLAND)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Motel - está sob ataque!");
- }
- }
- }
- if(tCheck[MOTEL] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
- }
- return 1;
- }
- forward MotelCaptured(playerid);
- public MotelCaptured(playerid)
- {
- UnderAttack[MOTEL] = 0;
- Captured[playerid][MOTEL] = 1;
- GangZoneStopFlashForAll(Zone[MOTEL]);
- GangZoneShowForAll(Zone[MOTEL],GetPlayerColor(playerid));
- KillTimer(timer[playerid][MOTEL]);
- tCheck[MOTEL] = gPais[playerid];
- GivePlayerMoney(playerid,5000);
- SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
- SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Motel - para seu Pais!");
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_Close(File);
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] dominou - Motel - para %s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid]&&i!=playerid)
- {
- GivePlayerMoney(i,1000);
- SetPlayerScore(i,GetPlayerScore(i)+1);
- SendClientMessage(i,VERDE,"Seu País conquistou - Motel - Você ganhou +1 score e + R$ 1000!");
- }
- }
- return 1;
- }
- stock LeavingMotel(playerid)
- {
- UnderAttack[MOTEL] = 0;
- Captured[playerid][MOTEL] = 0;
- IsPlayerCapturing[playerid][MOTEL] = 0;
- KillTimer(timer[playerid][MOTEL]);
- GangZoneStopFlashForAll(Zone[MOTEL]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
- return 1;
- }
- //San fierro cranberry station
- stock ActiveStation(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[STATION] == 0&&tCheck[STATION]!=gPais[playerid])
- {
- GangZoneFlashForAll(Zone[STATION],GetPlayerColor(playerid));
- if(tCheck[STATION] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- if(UnderAttack[STATION] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
- SendClientMessage(playerid,ROSA,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
- UnderAttack[STATION] = 1;
- Captured[playerid][STATION] = 0;
- IsPlayerCapturing[playerid][STATION] = 1;
- timer[playerid][OILFIELD] = SetTimerEx("StationCaptured",20000,false,"i",playerid);
- if(tCheck[STATION] == BRASIL)
- {
- SendClientMessage(playerid,-1,"Territorio Brasileiro");
- foreach(new i:Player)
- {
- if(gPais[i] == BRASIL)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Station - está sob ataque!");
- }
- }
- }
- if(tCheck[OILFIELD] == FRANCE)
- {
- SendClientMessage(playerid,BRANCO,"Territorio Frances");
- foreach(new i:Player)
- {
- if(gPais[i] == FRANCE)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Station - está sob ataque!");
- }
- }
- }
- if(tCheck[OILFIELD] == RUSSIA)
- {
- SendClientMessage(playerid,BRANCO,"Territorio Russo");
- foreach(new i:Player)
- {
- if(gPais[i] == RUSSIA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Station - está sob ataque!");
- }
- }
- }
- if(tCheck[OILFIELD] == USA)
- {
- SendClientMessage(playerid,BRANCO,"Territorio Americano");
- foreach(new i:Player)
- {
- if(gPais[i] == USA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Station - está sob ataque!");
- }
- }
- }
- if(tCheck[OILFIELD] == ENGLAND)
- {
- SendClientMessage(playerid,BRANCO,"Territorio Ingles");
- foreach(new i:Player)
- {
- if(gPais[i] == ENGLAND)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Station - está sob ataque!");
- }
- }
- }
- if(tCheck[OILFIELD] == ARAB)
- {
- SendClientMessage(playerid,BRANCO,"Territorio Arabe");
- foreach(new i:Player)
- {
- if(gPais[i] == ARAB)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Station - está sob ataque!");
- }
- }
- }
- if(tCheck[OILFIELD] == NONE)
- {
- SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
- }
- }
- else if(tCheck[STATION] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- return 1;
- }
- forward StationCaptured(playerid);
- public StationCaptured(playerid)
- {
- UnderAttack[STATION] = 0;
- Captured[playerid][STATION] = 1;
- GangZoneStopFlashForAll(Zone[STATION]);
- GangZoneShowForAll(Zone[STATION],GetPlayerColor(playerid));
- KillTimer(timer[playerid][STATION]);
- tCheck[STATION] = gPais[playerid];
- GivePlayerMoney(playerid,5000);
- SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
- SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Station - para seu Pais!");
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_Close(File);
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] dominou - Station - para %s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid]&&i!=playerid)
- {
- GivePlayerMoney(i,1000);
- SetPlayerScore(i,GetPlayerScore(i)+1);
- SendClientMessage(i,VERDE,"Seu País conquistou - Station - Você ganhou +1 score e + R$ 1000!");
- }
- }
- return 1;
- }
- stock LeavingStation(playerid)
- {
- UnderAttack[STATION] = 0;
- Captured[playerid][STATION] = 0;
- IsPlayerCapturing[playerid][STATION] = 0;
- KillTimer(timer[playerid][STATION]);
- GangZoneStopFlashForAll(Zone[STATION]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
- return 1;
- }
- //Music studio in San fierro
- stock ActiveStudio(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[STUDIO]==0&&tCheck[STUDIO]!=gPais[playerid])
- {
- if(tCheck[STUDIO] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- if(UnderAttack[STUDIO] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
- UnderAttack[STUDIO] = 1;
- Captured[playerid][STUDIO] = 0;
- IsPlayerCapturing[playerid][STUDIO] = 1;
- GangZoneFlashForAll(Zone[STUDIO],GetPlayerColor(playerid));
- timer[playerid][STUDIO] = SetTimerEx("StudioCaptured",20000,false,"i",playerid);
- SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
- if(tCheck[STUDIO] == BRASIL)
- {
- SendClientMessage(playerid,-1,"Territorio Brasileiro");
- foreach(new i:Player)
- {
- if(gPais[i] == BRASIL)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Studio music - está sob ataque!");
- }
- }
- }
- if(tCheck[STUDIO] == USA)
- {
- SendClientMessage(playerid,-1,"Territorio Americano");
- foreach(new i:Player)
- {
- if(gPais[i] == USA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Studio music - está sob ataque!");
- }
- }
- }
- if(tCheck[STUDIO] == ARAB)
- {
- SendClientMessage(playerid,-1,"Territorio Arabe");
- foreach(new i:Player)
- {
- if(gPais[i] == ARAB)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Studio music - está sob ataque!");
- }
- }
- }
- if(tCheck[STUDIO] == RUSSIA)
- {
- SendClientMessage(playerid,-1,"Territorio Russo");
- foreach(new i:Player)
- {
- if(gPais[i] == RUSSIA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Studio music - está sob ataque!");
- }
- }
- }
- if(tCheck[STUDIO] == FRANCE)
- {
- SendClientMessage(playerid,-1,"Territorio Frances");
- foreach(new i:Player)
- {
- if(gPais[i] == FRANCE)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Studio music - está sob ataque!");
- }
- }
- }
- if(tCheck[STUDIO] == ENGLAND)
- {
- SendClientMessage(playerid,-1,"Territorio Ingles");
- foreach(new i:Player)
- {
- if(gPais[i] == ENGLAND)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Studio music - está sob ataque!");
- }
- }
- }
- if(tCheck[STUDIO] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
- }
- return 1;
- }
- forward StudioCaptured(playerid);
- public StudioCaptured(playerid)
- {
- UnderAttack[STUDIO] = 0;
- Captured[playerid][STUDIO] = 1;
- GangZoneStopFlashForAll(Zone[STUDIO]);
- GangZoneShowForAll(Zone[STUDIO],GetPlayerColor(playerid));
- KillTimer(timer[playerid][STUDIO]);
- tCheck[STUDIO] = gPais[playerid];
- GivePlayerMoney(playerid,5000);
- SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
- SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Studio Music - para seu Pais!");
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_Close(File);
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] dominou - Studio Music - para %s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid]&&i!=playerid)
- {
- GivePlayerMoney(i,1000);
- SetPlayerScore(i,GetPlayerScore(i)+1);
- SendClientMessage(i,VERDE,"Seu País conquistou - Studio Music - Você ganhou +1 score e + R$ 1000!");
- }
- }
- return 1;
- }
- stock LeavingStudio(playerid)
- {
- UnderAttack[STUDIO] = 0;
- Captured[playerid][STUDIO] = 0;
- IsPlayerCapturing[playerid][STUDIO] = 0;
- KillTimer(timer[playerid][STUDIO]);
- GangZoneStopFlashForAll(Zone[STUDIO]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
- return 1;
- }
- //Construction project near doherty san fierro
- stock ActiveProject(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[PROJECT] == 0&&tCheck[PROJECT]!=gPais[playerid])
- {
- GangZoneFlashForAll(Zone[PROJECT],GetPlayerColor(playerid));
- if(tCheck[PROJECT] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- if(UnderAttack[PROJECT] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
- SendClientMessage(playerid,ROSA,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
- UnderAttack[PROJECT] = 1;
- Captured[playerid][PROJECT] = 0;
- IsPlayerCapturing[playerid][PROJECT] = 1;
- timer[playerid][OILFIELD] = SetTimerEx("ProjectCaptured",20000,false,"i",playerid);
- if(tCheck[PROJECT] == BRASIL)
- {
- SendClientMessage(playerid,-1,"Territorio Brasileiro");
- foreach(new i:Player)
- {
- if(gPais[i] == BRASIL)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Construction project - esta sob ataque!");
- }
- }
- }
- if(tCheck[PROJECT] == FRANCE)
- {
- SendClientMessage(playerid,BRANCO,"Territorio Frances");
- foreach(new i:Player)
- {
- if(gPais[i] == FRANCE)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Construction project - esta sob ataque!");
- }
- }
- }
- if(tCheck[PROJECT] == RUSSIA)
- {
- SendClientMessage(playerid,BRANCO,"Territorio Russo");
- foreach(new i:Player)
- {
- if(gPais[i] == RUSSIA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Construction project - esta sob ataque!");
- }
- }
- }
- if(tCheck[PROJECT] == USA)
- {
- SendClientMessage(playerid,BRANCO,"Territorio Americano");
- foreach(new i:Player)
- {
- if(gPais[i] == USA)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Construction project - esta sob ataque!");
- }
- }
- }
- if(tCheck[PROJECT] == ENGLAND)
- {
- SendClientMessage(playerid,BRANCO,"Territorio Ingles");
- foreach(new i:Player)
- {
- if(gPais[i] == ENGLAND)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Construction project - esta sob ataque!");
- }
- }
- }
- if(tCheck[PROJECT] == ARAB)
- {
- SendClientMessage(playerid,BRANCO,"Territorio Arabe");
- foreach(new i:Player)
- {
- if(gPais[i] == ARAB)
- {
- SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Construction project - esta sob ataque!");
- }
- }
- }
- if(tCheck[PROJECT] == NONE)
- {
- SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
- }
- }
- else if(tCheck[OILFIELD] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
- return 1;
- }
- forward ProjectCaptured(playerid);
- public ProjectCaptured(playerid)
- {
- UnderAttack[PROJECT] = 0;
- Captured[playerid][PROJECT] = 1;
- GangZoneStopFlashForAll(Zone[PROJECT]);
- GangZoneShowForAll(Zone[PROJECT],GetPlayerColor(playerid));
- KillTimer(timer[playerid][PROJECT]);
- tCheck[PROJECT] = gPais[playerid];
- GivePlayerMoney(playerid,5000);
- SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
- SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Constrution Preject - para seu Pais!");
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_Close(File);
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] dominou - Constrution Project - para %s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid]&&i!=playerid)
- {
- GivePlayerMoney(i,1000);
- SetPlayerScore(i,GetPlayerScore(i)+1);
- SendClientMessage(i,VERDE,"Seu País conquistou - Constrution Project - Você ganhou +1 score e + R$ 1000!");
- }
- }
- return 1;
- }
- stock LeavingProject(playerid)
- {
- UnderAttack[PROJECT] = 0;
- Captured[playerid][PROJECT] = 0;
- IsPlayerCapturing[playerid][PROJECT] = 0;
- KillTimer(timer[playerid][PROJECT]);
- GangZoneStopFlashForAll(Zone[PROJECT]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- TextDrawHideForPlayer(playerid,Brasiltext);
- TextDrawHideForPlayer(playerid,USAtext);
- TextDrawHideForPlayer(playerid,Russiatext);
- TextDrawHideForPlayer(playerid,Arabtext);
- TextDrawHideForPlayer(playerid,Francetext);
- TextDrawHideForPlayer(playerid,Englandtext);
- SetPlayerPos(playerid, 222.1597,1822.5927,6.4141);
- SetPlayerCameraPos(playerid, 227.2269,1826.0406,7.4141);
- SetPlayerCameraLookAt(playerid, 222.1597,1822.5927,6.4141);
- SetPlayerFacingAngle(playerid,268.8934);
- if(classid == 0)
- {
- gPais[playerid] = BRASIL;
- TextDrawHideForPlayer(playerid,USAteam);
- TextDrawHideForPlayer(playerid,Russiateam);
- TextDrawHideForPlayer(playerid,Franceteam);
- TextDrawHideForPlayer(playerid,Englandteam);
- TextDrawHideForPlayer(playerid,Arabteam);
- TextDrawShowForPlayer(playerid,Brasilteam);
- }
- if(classid == 1)
- {
- gPais[playerid] = FRANCE;
- TextDrawHideForPlayer(playerid,USAteam);
- TextDrawHideForPlayer(playerid,Russiateam);
- TextDrawHideForPlayer(playerid,Englandteam);
- TextDrawHideForPlayer(playerid,Arabteam);
- TextDrawHideForPlayer(playerid,Brasilteam);
- TextDrawShowForPlayer(playerid,Franceteam);
- }
- if(classid == 2)
- {
- gPais[playerid] = ARAB;
- TextDrawHideForPlayer(playerid,USAteam);
- TextDrawHideForPlayer(playerid,Russiateam);
- TextDrawHideForPlayer(playerid,Englandteam);
- TextDrawHideForPlayer(playerid,Franceteam);
- TextDrawHideForPlayer(playerid,Brasilteam);
- TextDrawShowForPlayer(playerid,Arabteam);
- }
- if(classid == 3)
- {
- gPais[playerid] = USA;
- TextDrawHideForPlayer(playerid,Arabteam);
- TextDrawHideForPlayer(playerid,Russiateam);
- TextDrawHideForPlayer(playerid,Englandteam);
- TextDrawHideForPlayer(playerid,Franceteam);
- TextDrawHideForPlayer(playerid,Brasilteam);
- TextDrawShowForPlayer(playerid,USAteam);
- }
- if(classid == 4)
- {
- gPais[playerid] = RUSSIA;
- TextDrawHideForPlayer(playerid,Arabteam);
- TextDrawHideForPlayer(playerid,USAteam);
- TextDrawHideForPlayer(playerid,Englandteam);
- TextDrawHideForPlayer(playerid,Arabteam);
- TextDrawHideForPlayer(playerid,Brasilteam);
- TextDrawShowForPlayer(playerid,Russiateam);
- }
- if(classid == 5)
- {
- gPais[playerid] = ENGLAND;
- TextDrawHideForPlayer(playerid,Arabteam);
- TextDrawHideForPlayer(playerid,Russiateam);
- TextDrawHideForPlayer(playerid,USAteam);
- TextDrawHideForPlayer(playerid,Arabteam);
- TextDrawHideForPlayer(playerid,Brasilteam);
- TextDrawShowForPlayer(playerid,Englandteam);
- }
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- AExplode[playerid] = 0;
- KillStreak[playerid] = 0;
- UsedBomb[playerid] = 0;
- BombPlant[playerid] = 0;
- Duty[playerid] = 0;
- HealedTeam[playerid] = 0;
- ArmoredTeam[playerid] = 0;
- Spectating[playerid] = 0;
- LoadBox(playerid);
- ShowPlayerBox(playerid);
- TextDrawShowForPlayer(playerid,web);
- TextDrawShowForPlayer(playerid,server);
- new str[128],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] ~r~Entrou no Servidor ||%s",Name,playerid,GetLevelName(playerid));
- SendBoxMessage(str);
- SetPlayerCameraPos(playerid,110.9027,1813.5228,33.8984);
- SetPlayerCameraLookAt(playerid,-283.7302,1503.8756,154.8811);
- //USA Base
- RemoveBuildingForPlayer(playerid, 3300, -166.1328, 2731.0859, 63.0703, 0.25);
- RemoveBuildingForPlayer(playerid, 3298, -165.3906, 2708.1016, 62.2266, 0.25);
- RemoveBuildingForPlayer(playerid, 3297, -147.7891, 2684.8125, 63.2188, 0.25);
- RemoveBuildingForPlayer(playerid, 16765, -227.4531, 2716.3516, 62.1719, 0.25);
- RemoveBuildingForPlayer(playerid, 669, -156.0234, 2675.2031, 61.8438, 0.25);
- RemoveBuildingForPlayer(playerid, 672, -240.8359, 2737.1484, 62.4844, 0.25);
- RemoveBuildingForPlayer(playerid, 16011, -227.4531, 2716.3516, 62.1719, 0.25);
- RemoveBuildingForPlayer(playerid, 3241, -165.3906, 2708.1016, 62.2266, 0.25);
- RemoveBuildingForPlayer(playerid, 669, -155.0938, 2711.2344, 61.8438, 0.25);
- RemoveBuildingForPlayer(playerid, 3285, -166.1328, 2731.0859, 63.0703, 0.25);
- RemoveBuildingForPlayer(playerid, 3242, -147.7891, 2684.8125, 63.2188, 0.25);
- //England Base
- RemoveBuildingForPlayer(playerid, 3458, 1101.4297, 2231.5000, 17.2344, 0.25);
- RemoveBuildingForPlayer(playerid, 3458, 1101.4375, 2236.6250, 17.2344, 0.25);
- RemoveBuildingForPlayer(playerid, 3458, 1101.4297, 2253.9141, 17.2344, 0.25);
- RemoveBuildingForPlayer(playerid, 3458, 1101.4375, 2259.0391, 17.2344, 0.25);
- RemoveBuildingForPlayer(playerid, 3458, 1101.4297, 2209.0859, 17.2344, 0.25);
- RemoveBuildingForPlayer(playerid, 3458, 1101.4375, 2214.2109, 17.2344, 0.25);
- RemoveBuildingForPlayer(playerid, 16094, 191.1406, 1870.0391, 21.4766, 0.25);
- if(fexist(UserPath(playerid)))
- {
- INI_ParseFile(UserPath(playerid),"LoadUser_%s", .bExtra = true, .extra = playerid);
- ShowPlayerDialog(playerid,LOGIN,DIALOG_STYLE_INPUT,"Login","Digite Sua Senha abaixo Para Logar","Login","Sair");
- }
- else
- {
- ShowPlayerDialog(playerid,RESGISTRO,DIALOG_STYLE_INPUT,"Registro","Coloque sua senha abaixo para se registrar!","Registrar","Sair");
- }
- Logged[playerid] = 0;
- SendClientMessage(playerid,CINZA,"======================= {F81414}[w.w]{AFAFAF} =======================");
- SendClientMessage(playerid,0xFFFFFFFF," {AFAFAF}========= {FFFFFF}Bem vindos ao {F81414}[TDM] World Wars v1.0{AFAFAF} =========");
- SendClientMessage(playerid,0xFFFFFFFF," {AFAFAF}=== {FFFFFF}Para Saber os comandos do Servidor digite: {F81414}/comandos {AFAFAF}===");
- SendClientMessage(playerid,0xFFFFFFFF," {AFAFAF}== {FFFFFF}Por favor leia as Regras em: {F81414}/regras{FFFFFF} Objetivos: {F81414}/Objetivos {AFAFAF}==");
- SendClientMessage(playerid,0xFFFFFFFF," {AFAFAF}========= {FFFFFF}Criador {F81414}/Creditos {FFFFFF} Tenha um Bom Jogo ! {AFAFAF}=========");
- SendClientMessage(playerid,CINZA,"======================= {F81414}[w.w]{AFAFAF} =======================");
- //SendClientMessage(playerid,LARANJA,">> Bem vindo ao [TDM] World War v1.0");
- //SendClientMessage(playerid,LARANJA,">> Por favor, leia as regras do servidor usando /regras || para ver os objetivos use /objetivo!");
- //Oil Field!
- SetPlayerMapIcon(playerid,0,221.2384,1420.9762,10.5859,19,2,MAPICON_GLOBAL);
- if(tCheck[OILFIELD] == NONE)GangZoneShowForAll(Zone[OILFIELD],COLOR_NONE_CAPTURE);
- if(tCheck[OILFIELD] == BRASIL)GangZoneShowForAll(Zone[OILFIELD],VERDE);
- if(tCheck[OILFIELD] == USA)GangZoneShowForAll(Zone[OILFIELD],AZUL);
- if(tCheck[OILFIELD] == FRANCE)GangZoneShowForAll(Zone[OILFIELD],LARANJA);
- if(tCheck[OILFIELD] == ARAB)GangZoneShowForAll(Zone[OILFIELD],AMARELO);
- if(tCheck[OILFIELD] == ENGLAND)GangZoneShowForAll(Zone[OILFIELD],BRANCO);
- //Hunter Quarry!
- SetPlayerMapIcon(playerid,1,621.7979,890.8572,-41.1028,19,2,MAPICON_GLOBAL);
- if(tCheck[QUARRY] == NONE)GangZoneShowForAll(Zone[QUARRY],COLOR_NONE_CAPTURE);
- if(tCheck[QUARRY] == BRASIL)GangZoneShowForAll(Zone[QUARRY],VERDE);
- if(tCheck[QUARRY] == USA)GangZoneShowForAll(Zone[QUARRY],AZUL);
- if(tCheck[QUARRY] == FRANCE)GangZoneShowForAll(Zone[QUARRY],LARANJA);
- if(tCheck[QUARRY] == ARAB)GangZoneShowForAll(Zone[QUARRY],AMARELO);
- if(tCheck[QUARRY] == ENGLAND)GangZoneShowForAll(Zone[QUARRY],BRANCO);
- //Big ear
- SetPlayerMapIcon(playerid,2,-350.0614,1583.5765,76.4040,19,2,MAPICON_GLOBAL);
- if(tCheck[BIGEAR] == NONE)GangZoneShowForAll(Zone[BIGEAR],COLOR_NONE_CAPTURE);
- if(tCheck[BIGEAR] == BRASIL)GangZoneShowForAll(Zone[BIGEAR],VERDE);
- if(tCheck[BIGEAR] == USA)GangZoneShowForAll(Zone[BIGEAR],AZUL);
- if(tCheck[BIGEAR] == FRANCE)GangZoneShowForAll(Zone[BIGEAR],LARANJA);
- if(tCheck[BIGEAR] == ENGLAND)GangZoneShowForAll(Zone[BIGEAR],BRANCO);
- if(tCheck[BIGEAR] == RUSSIA)GangZoneShowForAll(Zone[BIGEAR],COLOR_PURPLE);
- if(tCheck[BIGEAR] == ARAB)GangZoneShowForAll(Zone[BIGEAR],AMARELO);
- //Ufo Zone
- SetPlayerMapIcon(playerid,3,4.2395,1369.3943,9.1719,19,2,MAPICON_GLOBAL);
- if(tCheck[UFO] == NONE)GangZoneShowForAll(Zone[UFO],COLOR_NONE_CAPTURE);
- if(tCheck[UFO] == BRASIL)GangZoneShowForAll(Zone[UFO],VERDE);
- if(tCheck[UFO] == USA)GangZoneShowForAll(Zone[UFO],AZUL);
- if(tCheck[UFO] == FRANCE)GangZoneShowForAll(Zone[UFO],LARANJA);
- if(tCheck[UFO] == ENGLAND)GangZoneShowForAll(Zone[UFO],BRANCO);
- if(tCheck[UFO] == RUSSIA)GangZoneShowForAll(Zone[UFO],COLOR_PURPLE);
- if(tCheck[UFO] == ARAB)GangZoneShowForAll(Zone[UFO],AMARELO);
- //Area 51
- SetPlayerMapIcon(playerid,4,239.5929,1822.8057,4.7109,19,2,MAPICON_GLOBAL);
- if(tCheck[AREA51] == NONE)GangZoneShowForAll(Zone[AREA51],COLOR_NONE_CAPTURE);
- if(tCheck[AREA51] == BRASIL)GangZoneShowForAll(Zone[AREA51],VERDE);
- if(tCheck[AREA51] == USA)GangZoneShowForAll(Zone[AREA51],AZUL);
- if(tCheck[AREA51] == FRANCE)GangZoneShowForAll(Zone[AREA51],LARANJA);
- if(tCheck[AREA51] == ENGLAND)GangZoneShowForAll(Zone[AREA51],BRANCO);
- if(tCheck[AREA51] == RUSSIA)GangZoneShowForAll(Zone[AREA51],COLOR_PURPLE);
- if(tCheck[AREA51] == ARAB)GangZoneShowForAll(Zone[AREA51],AMARELO);
- //Abandoned airstrip
- SetPlayerMapIcon(playerid,5,403.5271,2448.4187,16.5000,19,2,MAPICON_GLOBAL);
- if(tCheck[ABANDONED] == NONE)GangZoneShowForAll(Zone[ABANDONED],COLOR_NONE_CAPTURE);
- if(tCheck[ABANDONED] == BRASIL)GangZoneShowForAll(Zone[ABANDONED],VERDE);
- if(tCheck[ABANDONED] == USA)GangZoneShowForAll(Zone[ABANDONED],AZUL);
- if(tCheck[ABANDONED] == FRANCE)GangZoneShowForAll(Zone[ABANDONED],LARANJA);
- if(tCheck[ABANDONED] == ENGLAND)GangZoneShowForAll(Zone[ABANDONED],BRANCO);
- if(tCheck[ABANDONED] == RUSSIA)GangZoneShowForAll(Zone[ABANDONED],COLOR_PURPLE);
- if(tCheck[ABANDONED] == ARAB)GangZoneShowForAll(Zone[ABANDONED],AMARELO);
- //Snake Farm
- SetPlayerMapIcon(playerid,6,-36.2617,2350.2056,24.3026,19,2,MAPICON_GLOBAL);
- if(tCheck[SNAKE] == NONE)GangZoneShowForAll(Zone[SNAKE],COLOR_NONE_CAPTURE);
- if(tCheck[SNAKE] == BRASIL)GangZoneShowForAll(Zone[SNAKE],VERDE);
- if(tCheck[SNAKE] == USA)GangZoneShowForAll(Zone[SNAKE],AZUL);
- if(tCheck[SNAKE] == FRANCE)GangZoneShowForAll(Zone[SNAKE],LARANJA);
- if(tCheck[SNAKE] == ENGLAND)GangZoneShowForAll(Zone[SNAKE],BRANCO);
- if(tCheck[SNAKE] == RUSSIA)GangZoneShowForAll(Zone[SNAKE],COLOR_PURPLE);
- if(tCheck[SNAKE] == ARAB)GangZoneShowForAll(Zone[SNAKE],AMARELO);
- //Basin
- SetPlayerMapIcon(playerid,7,-597.1797,1963.8027,7.0000,19,2,MAPICON_GLOBAL);
- if(tCheck[BASIN] == NONE)GangZoneShowForAll(Zone[BASIN],COLOR_NONE_CAPTURE);
- if(tCheck[BASIN] == BRASIL)GangZoneShowForAll(Zone[BASIN],VERDE);
- if(tCheck[BASIN] == USA)GangZoneShowForAll(Zone[BASIN],AZUL);
- if(tCheck[BASIN] == FRANCE)GangZoneShowForAll(Zone[BASIN],LARANJA);
- if(tCheck[BASIN] == ENGLAND)GangZoneShowForAll(Zone[BASIN],BRANCO);
- if(tCheck[BASIN] == RUSSIA)GangZoneShowForAll(Zone[BASIN],COLOR_PURPLE);
- if(tCheck[BASIN] == ARAB)GangZoneShowForAll(Zone[BASIN],AMARELO);
- //Beach side
- SetPlayerMapIcon(playerid,8,-688.4477,936.8319,13.6328,19,2,MAPICON_GLOBAL);
- if(tCheck[BEACHSIDE] == NONE)GangZoneShowForAll(Zone[BEACHSIDE],COLOR_NONE_CAPTURE);
- if(tCheck[BEACHSIDE] == BRASIL)GangZoneShowForAll(Zone[BEACHSIDE],VERDE);
- if(tCheck[BEACHSIDE] == USA)GangZoneShowForAll(Zone[BEACHSIDE],AZUL);
- if(tCheck[BEACHSIDE] == FRANCE)GangZoneShowForAll(Zone[BEACHSIDE],LARANJA);
- if(tCheck[BEACHSIDE] == ENGLAND)GangZoneShowForAll(Zone[BEACHSIDE],BRANCO);
- if(tCheck[BEACHSIDE] == RUSSIA)GangZoneShowForAll(Zone[BEACHSIDE],COLOR_PURPLE);
- if(tCheck[BEACHSIDE] == ARAB)GangZoneShowForAll(Zone[BEACHSIDE],AMARELO);
- //Army restaurant
- SetPlayerMapIcon(playerid,9,-551.0908,2594.7429,53.9348,19,2,MAPICON_GLOBAL);
- if(tCheck[RESTAURANT] == NONE)GangZoneShowForAll(Zone[RESTAURANT],COLOR_NONE_CAPTURE);
- if(tCheck[RESTAURANT] == BRASIL)GangZoneShowForAll(Zone[RESTAURANT],VERDE);
- if(tCheck[RESTAURANT] == USA)GangZoneShowForAll(Zone[RESTAURANT],AZUL);
- if(tCheck[RESTAURANT] == FRANCE)GangZoneShowForAll(Zone[RESTAURANT],LARANJA);
- if(tCheck[RESTAURANT] == ENGLAND)GangZoneShowForAll(Zone[RESTAURANT],BRANCO);
- if(tCheck[RESTAURANT] == RUSSIA)GangZoneShowForAll(Zone[RESTAURANT],COLOR_PURPLE);
- if(tCheck[RESTAURANT] == ARAB)GangZoneShowForAll(Zone[RESTAURANT],AMARELO);
- //Gas station
- SetPlayerMapIcon(playerid,10,664.8769,1701.0980,7.1949,19,2,MAPICON_GLOBAL);
- if(tCheck[GAS] == NONE)GangZoneShowForAll(Zone[GAS],COLOR_NONE_CAPTURE);
- if(tCheck[GAS] == BRASIL)GangZoneShowForAll(Zone[GAS],VERDE);
- if(tCheck[GAS] == USA)GangZoneShowForAll(Zone[GAS],AZUL);
- if(tCheck[GAS] == FRANCE)GangZoneShowForAll(Zone[GAS],LARANJA);
- if(tCheck[GAS] == ENGLAND)GangZoneShowForAll(Zone[GAS],BRANCO);
- if(tCheck[GAS] == RUSSIA)GangZoneShowForAll(Zone[GAS],COLOR_PURPLE);
- if(tCheck[GAS] == ARAB)GangZoneShowForAll(Zone[GAS],AMARELO);
- //Stadium
- SetPlayerMapIcon(playerid,11,1099.8395,1454.6685,12.5469,19,2,MAPICON_GLOBAL);
- if(tCheck[STADIUM] == NONE)GangZoneShowForAll(Zone[STADIUM],COLOR_NONE_CAPTURE);
- if(tCheck[STADIUM] == BRASIL)GangZoneShowForAll(Zone[STADIUM],VERDE);
- if(tCheck[STADIUM] == USA)GangZoneShowForAll(Zone[STADIUM],AZUL);
- if(tCheck[STADIUM] == FRANCE)GangZoneShowForAll(Zone[STADIUM],LARANJA);
- if(tCheck[STADIUM] == ENGLAND)GangZoneShowForAll(Zone[STADIUM],BRANCO);
- if(tCheck[STADIUM] == RUSSIA)GangZoneShowForAll(Zone[STADIUM],COLOR_PURPLE);
- if(tCheck[STADIUM] == ARAB)GangZoneShowForAll(Zone[STADIUM],AMARELO);
- //Golden Gate Bridge
- SetPlayerMapIcon(playerid,12,-2657.0322,1935.6600,64.3639,19,2,MAPICON_GLOBAL);
- if(tCheck[BRIDGE] == NONE)GangZoneShowForAll(Zone[BRIDGE],COLOR_NONE_CAPTURE);
- if(tCheck[BRIDGE] == BRASIL)GangZoneShowForAll(Zone[BRIDGE],VERDE);
- if(tCheck[BRIDGE] == USA)GangZoneShowForAll(Zone[BRIDGE],AZUL);
- if(tCheck[BRIDGE] == FRANCE)GangZoneShowForAll(Zone[BRIDGE],LARANJA);
- if(tCheck[BRIDGE] == ENGLAND)GangZoneShowForAll(Zone[BRIDGE],BRANCO);
- if(tCheck[BRIDGE] == RUSSIA)GangZoneShowForAll(Zone[BRIDGE],COLOR_PURPLE);
- if(tCheck[BRIDGE] == ARAB)GangZoneShowForAll(Zone[BRIDGE],AMARELO);
- //Motel
- SetPlayerMapIcon(playerid,13,-808.0388,2759.4426,46.0000,19,2,MAPICON_GLOBAL);
- if(tCheck[MOTEL] == NONE)GangZoneShowForAll(Zone[MOTEL],COLOR_NONE_CAPTURE);
- if(tCheck[MOTEL] == BRASIL)GangZoneShowForAll(Zone[MOTEL],VERDE);
- if(tCheck[MOTEL] == USA)GangZoneShowForAll(Zone[MOTEL],AZUL);
- if(tCheck[MOTEL] == FRANCE)GangZoneShowForAll(Zone[MOTEL],LARANJA);
- if(tCheck[MOTEL] == ENGLAND)GangZoneShowForAll(Zone[MOTEL],BRANCO);
- if(tCheck[MOTEL] == RUSSIA)GangZoneShowForAll(Zone[MOTEL],COLOR_PURPLE);
- if(tCheck[MOTEL] == ARAB)GangZoneShowForAll(Zone[MOTEL],AMARELO);
- //San fierro station
- SetPlayerMapIcon(playerid,14,-1973.1788,117.6069,27.6875,19,2,MAPICON_GLOBAL);
- if(tCheck[STATION] == NONE)GangZoneShowForAll(Zone[STATION],COLOR_NONE_CAPTURE);
- if(tCheck[STATION] == BRASIL)GangZoneShowForAll(Zone[STATION],VERDE);
- if(tCheck[STATION] == USA)GangZoneShowForAll(Zone[STATION],AZUL);
- if(tCheck[STATION] == FRANCE)GangZoneShowForAll(Zone[STATION],LARANJA);
- if(tCheck[STATION] == ENGLAND)GangZoneShowForAll(Zone[STATION],BRANCO);
- if(tCheck[STATION] == RUSSIA)GangZoneShowForAll(Zone[STATION],COLOR_PURPLE);
- if(tCheck[STATION] == ARAB)GangZoneShowForAll(Zone[STATION],AMARELO);
- //San fierro studio
- SetPlayerMapIcon(playerid,15,-2521.1257,-624.8945,132.7839,19,2,MAPICON_GLOBAL);
- if(tCheck[STUDIO] == NONE)GangZoneShowForAll(Zone[STUDIO],COLOR_NONE_CAPTURE);
- if(tCheck[STUDIO] == BRASIL)GangZoneShowForAll(Zone[STUDIO],VERDE);
- if(tCheck[STUDIO] == USA)GangZoneShowForAll(Zone[STUDIO],AZUL);
- if(tCheck[STUDIO] == FRANCE)GangZoneShowForAll(Zone[STUDIO],LARANJA);
- if(tCheck[STUDIO] == ENGLAND)GangZoneShowForAll(Zone[STUDIO],BRANCO);
- if(tCheck[STUDIO] == RUSSIA)GangZoneShowForAll(Zone[STUDIO],COLOR_PURPLE);
- if(tCheck[STUDIO] == ARAB)GangZoneShowForAll(Zone[STUDIO],AMARELO);
- //Construction project near doherty, san fierro
- SetPlayerMapIcon(playerid,16,-2060.4949,308.2476,35.3623,19,2,MAPICON_GLOBAL);
- if(tCheck[PROJECT] == NONE)GangZoneShowForAll(Zone[PROJECT],COLOR_NONE_CAPTURE);
- if(tCheck[PROJECT] == BRASIL)GangZoneShowForAll(Zone[PROJECT],VERDE);
- if(tCheck[PROJECT] == USA)GangZoneShowForAll(Zone[PROJECT],AZUL);
- if(tCheck[PROJECT] == FRANCE)GangZoneShowForAll(Zone[PROJECT],LARANJA);
- if(tCheck[PROJECT] == ENGLAND)GangZoneShowForAll(Zone[PROJECT],BRANCO);
- if(tCheck[PROJECT] == RUSSIA)GangZoneShowForAll(Zone[PROJECT],COLOR_PURPLE);
- if(tCheck[PROJECT] == ARAB)GangZoneShowForAll(Zone[PROJECT],AMARELO);
- //Zone
- GangZoneShowForAll(Brasilzone,VERDE);
- GangZoneShowForAll(Russiazone,COLOR_PURPLE);
- GangZoneShowForAll(USAzone,AZUL);
- GangZoneShowForAll(Arabzone,AMARELO);
- GangZoneShowForAll(Englandzone,BRANCO);
- GangZoneShowForAll(Francezone,LARANJA);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
- INI_WriteInt(File,"Kill",PlayerInfo[playerid][pKill]);
- INI_WriteInt(File,"Death",PlayerInfo[playerid][pDeath]);
- INI_WriteInt(File,"Level",PlayerInfo[playerid][pAdmin]);
- INI_WriteInt(File,"VIP",PlayerInfo[playerid][pVip]);
- INI_Close(File);
- new str[128],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] ~r~Saiu do Servidor!",Name,playerid);
- SendBoxMessage(str);
- if(Captured[playerid][OILFIELD] == 0&&IsPlayerCapturing[playerid][OILFIELD] == 1)
- {
- LeavingOil(playerid);
- }
- if(Captured[playerid][QUARRY] == 0&&IsPlayerCapturing[playerid][QUARRY] == 1)
- {
- LeavingQuarry(playerid);
- }
- if(Captured[playerid][BIGEAR] == 0&&IsPlayerCapturing[playerid][BIGEAR] == 1)
- {
- LeavingBigEar(playerid);
- }
- if(Captured[playerid][UFO] == 0&&IsPlayerCapturing[playerid][UFO] == 1)
- {
- LeavingUfo(playerid);
- }
- if(Captured[playerid][AREA51] == 0&&IsPlayerCapturing[playerid][AREA51] == 1)
- {
- LeavingArea51(playerid);
- }
- if(Captured[playerid][ABANDONED] == 0&&IsPlayerCapturing[playerid][ABANDONED] == 1)
- {
- LeavingAbandoned(playerid);
- }
- if(Captured[playerid][SNAKE] == 0&&IsPlayerCapturing[playerid][SNAKE] == 1)
- {
- LeavingSnake(playerid);
- }
- if(Captured[playerid][BASIN] == 0&&IsPlayerCapturing[playerid][BASIN] == 1)
- {
- LeavingBasin(playerid);
- }
- if(Captured[playerid][BEACHSIDE] == 0&&IsPlayerCapturing[playerid][BEACHSIDE] == 1)
- {
- LeavingBeach(playerid);
- }
- if(Captured[playerid][RESTAURANT] == 0&&IsPlayerCapturing[playerid][RESTAURANT] == 1)
- {
- LeavingRestaurant(playerid);
- }
- if(Captured[playerid][GAS] == 0&&IsPlayerCapturing[playerid][GAS] == 1)
- {
- LeavingGas(playerid);
- }
- if(Captured[playerid][STADIUM] == 0&&IsPlayerCapturing[playerid][STADIUM] == 1)
- {
- LeavingStadium(playerid);
- }
- if(Captured[playerid][BRIDGE] == 0&&IsPlayerCapturing[playerid][BRIDGE] == 1)
- {
- LeavingBridge(playerid);
- }
- if(IsPlayerCapturing[playerid][MOTEL] == 1&&Captured[playerid][MOTEL] == 0)
- {
- LeavingMotel(playerid);
- }
- if(IsPlayerCapturing[playerid][STATION] == 1&&Captured[playerid][STATION] == 0)
- {
- LeavingStation(playerid);
- }
- if(IsPlayerCapturing[playerid][STUDIO] == 1&&Captured[playerid][STUDIO] == 0)
- {
- LeavingStudio(playerid);
- }
- if(IsPlayerCapturing[playerid][PROJECT] == 1&&Captured[playerid][PROJECT] == 0)
- {
- LeavingProject(playerid);
- }
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- IsPlayerInDuel[playerid] = 0;
- InDM[playerid] = 0;
- AFK[playerid] = 0;
- InHIC[playerid] = 0;
- SpawnKill[playerid] = 1;
- VShop[playerid] = 0;
- HealedTeam[playerid] = 0;
- SetPlayerHealth(playerid,99999999);
- AntiSpawnKill[playerid] = SetTimerEx("AntiSpawnKilling",10000,false,"i",playerid);
- SendClientMessage(playerid,VERDE,"[ANTI-SPAWN-KILL] Protegido por 10 segundos.");
- if(gClasse[playerid] == SOLDADOASSAULT)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,29,9999);
- GivePlayerWeapon(playerid,31,9999);
- GivePlayerWeapon(playerid,24,9999);
- GivePlayerWeapon(playerid,33,9999);
- GivePlayerWeapon(playerid,17,5);
- gClasse[playerid] = SOLDADOASSAULT;
- }
- if(gClasse[playerid] == SOLDADOSNIPER)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,24,9999);
- GivePlayerWeapon(playerid,25,9999);
- GivePlayerWeapon(playerid,34,9999);
- GivePlayerWeapon(playerid,29,9999);
- GivePlayerWeapon(playerid,17,5);
- gClasse[playerid] = SOLDADOSNIPER;
- }
- if(gClasse[playerid] == MEDICO)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,26,9999);
- GivePlayerWeapon(playerid,17,5);
- GivePlayerWeapon(playerid,24,9999);
- GivePlayerWeapon(playerid,29,9999);
- GivePlayerWeapon(playerid,25,9999);
- gClasse[playerid] = MEDICO;
- }
- if(gClasse[playerid] == MECANICO)
- {
- SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe de - Soldado Mecanico Tanker -");
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,26,9999);
- GivePlayerWeapon(playerid,24,9999);
- GivePlayerWeapon(playerid,28,9999);
- GivePlayerWeapon(playerid,30,9999);
- GivePlayerWeapon(playerid,18,5);
- gClasse[playerid] = MECANICO;
- }
- if(gClasse[playerid] == PILOTO)
- {
- SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe de - Piloto -");
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,16,5);
- GivePlayerWeapon(playerid,27,9999);
- GivePlayerWeapon(playerid,24,9999);
- GivePlayerWeapon(playerid,30,9999);
- GivePlayerWeapon(playerid,32,9999);
- gClasse[playerid] = PILOTO;
- }
- if(gClasse[playerid] == BOMBARDEIRO)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,24,9999);
- GivePlayerWeapon(playerid,32,9999);
- GivePlayerWeapon(playerid,33,9999);
- GivePlayerWeapon(playerid,39,10);
- GivePlayerWeapon(playerid,40,10);
- GivePlayerWeapon(playerid,16,10);
- gClasse[playerid] = BOMBARDEIRO;
- }
- if(gClasse[playerid] == CAPITAO)
- {
- SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe de - Capitão -");
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,26,99999);
- GivePlayerWeapon(playerid,24,99999);
- GivePlayerWeapon(playerid,31,99999);
- GivePlayerWeapon(playerid,33,99999);
- GivePlayerWeapon(playerid,35,2);
- GivePlayerWeapon(playerid,16,10);
- GivePlayerWeapon(playerid,17,10);
- GivePlayerWeapon(playerid,18,10);
- gClasse[playerid] = CAPITAO;
- }
- if(gClasse[playerid] == GENERAL)
- {
- SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe de - General -");
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,26,99999);
- GivePlayerWeapon(playerid,24,99999);
- GivePlayerWeapon(playerid,30,99999);
- GivePlayerWeapon(playerid,33,99999);
- GivePlayerWeapon(playerid,35,5);
- GivePlayerWeapon(playerid,32,99999);
- GivePlayerWeapon(playerid,16,10);
- GivePlayerWeapon(playerid,17,10);
- GivePlayerWeapon(playerid,18,10);
- gClasse[playerid] = GENERAL;
- }
- if(GetPlayerScore(playerid)>=6000)
- {
- GivePlayerWeapon(playerid,35,10);
- GivePlayerWeapon(playerid,16,10);
- SendClientMessage(playerid,VERDE,"[PARABÉNS] Score 6000, ja é Rei dos Reis !");
- }
- new str[256];
- format(str,sizeof(str),"Sua posição atual é %s. !",GetRankName(playerid));
- SendClientMessage(playerid,LARANJA,str);
- if(gPais[playerid] == BRASIL)
- {
- new Random = random(sizeof(BrasilSpawn));
- SetPlayerColor(playerid,VERDE);
- SetPlayerPos(playerid, BrasilSpawn[Random][0],BrasilSpawn[Random][1],BrasilSpawn[Random][2]);
- }
- if(gPais[playerid] == FRANCE)
- {
- new Random = random(sizeof(FranceSpawn));
- SetPlayerColor(playerid,LARANJA);
- SetPlayerPos(playerid, FranceSpawn[Random][0],FranceSpawn[Random][1],FranceSpawn[Random][2]);
- }
- if(gPais[playerid] == ARAB)
- {
- new Random = random(sizeof(ArabSpawn));
- SetPlayerColor(playerid,AMARELO);
- SetPlayerPos(playerid,ArabSpawn[Random][0],ArabSpawn[Random][1],ArabSpawn[Random][2]);
- }
- if(gPais[playerid] == USA)
- {
- new Random = random(sizeof(USASpawn));
- SetPlayerColor(playerid,AZUL);
- SetPlayerPos(playerid,USASpawn[Random][0],USASpawn[Random][1],USASpawn[Random][2]);
- }
- if(gPais[playerid] == ENGLAND)
- {
- new Random = random(sizeof(EnglandSpawn));
- SetPlayerColor(playerid,BRANCO);
- SetPlayerPos(playerid,EnglandSpawn[Random][0],EnglandSpawn[Random][1],EnglandSpawn[Random][2]);
- }
- if(gPais[playerid] == RUSSIA)
- {
- new Random = random(sizeof(RussiaSpawn));
- SetPlayerColor(playerid,COLOR_PURPLE);
- SetPlayerPos(playerid,RussiaSpawn[Random][0],RussiaSpawn[Random][1],RussiaSpawn[Random][2]);
- }
- if(Captured[playerid][OILFIELD] == 0&&IsPlayerCapturing[playerid][OILFIELD] == 1)
- {
- LeavingOil(playerid);
- }
- if(Captured[playerid][QUARRY] == 0&&IsPlayerCapturing[playerid][QUARRY] == 1)
- {
- LeavingQuarry(playerid);
- }
- if(Captured[playerid][BIGEAR] == 0&&IsPlayerCapturing[playerid][BIGEAR] == 1)
- {
- LeavingBigEar(playerid);
- }
- if(Captured[playerid][UFO] == 0&&IsPlayerCapturing[playerid][UFO] == 1)
- {
- LeavingUfo(playerid);
- }
- if(Captured[playerid][AREA51] == 0&&IsPlayerCapturing[playerid][AREA51] == 1)
- {
- LeavingArea51(playerid);
- }
- if(Captured[playerid][ABANDONED] == 0&&IsPlayerCapturing[playerid][ABANDONED] == 1)
- {
- LeavingAbandoned(playerid);
- }
- if(Captured[playerid][SNAKE] == 0&&IsPlayerCapturing[playerid][SNAKE] == 1)
- {
- LeavingSnake(playerid);
- }
- if(Captured[playerid][BASIN] == 0&&IsPlayerCapturing[playerid][BASIN] == 1)
- {
- LeavingBasin(playerid);
- }
- if(Captured[playerid][BEACHSIDE] == 0&&IsPlayerCapturing[playerid][BEACHSIDE] == 1)
- {
- LeavingBeach(playerid);
- }
- if(Captured[playerid][RESTAURANT] == 0&&IsPlayerCapturing[playerid][RESTAURANT] == 1)
- {
- LeavingRestaurant(playerid);
- }
- if(Captured[playerid][GAS] == 0&&IsPlayerCapturing[playerid][GAS] == 1)
- {
- LeavingGas(playerid);
- }
- if(Captured[playerid][STADIUM] == 0&&IsPlayerCapturing[playerid][STADIUM] == 1)
- {
- LeavingStadium(playerid);
- }
- if(Captured[playerid][BRIDGE] == 0&&IsPlayerCapturing[playerid][BRIDGE] == 1)
- {
- LeavingBridge(playerid);
- }
- if(IsPlayerCapturing[playerid][MOTEL] == 1&&Captured[playerid][MOTEL] == 0)
- {
- LeavingMotel(playerid);
- }
- if(IsPlayerCapturing[playerid][STATION] == 1&&Captured[playerid][STATION] == 0)
- {
- LeavingStation(playerid);
- }
- if(IsPlayerCapturing[playerid][STUDIO] == 1&&Captured[playerid][STUDIO] == 0)
- {
- LeavingStudio(playerid);
- }
- if(IsPlayerCapturing[playerid][PROJECT] == 1&&Captured[playerid][PROJECT] == 0)
- {
- LeavingProject(playerid);
- }
- return 1;
- }
- forward AntiSpawnKilling(playerid);
- public AntiSpawnKilling(playerid)
- {
- SetPlayerHealth(playerid,100);
- SetPlayerArmour(playerid,100);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ANTI-SPAWN-KILL] Verificação Terminada! Prepare-se para a guerra!");
- SpawnKill[playerid] = 0;
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(Captured[playerid][OILFIELD] == 0&&IsPlayerCapturing[playerid][OILFIELD] == 1)
- {
- LeavingOil(playerid);
- }
- if(Captured[playerid][QUARRY] == 0&&IsPlayerCapturing[playerid][QUARRY] == 1)
- {
- LeavingQuarry(playerid);
- }
- if(Captured[playerid][BIGEAR] == 0&&IsPlayerCapturing[playerid][BIGEAR] == 1)
- {
- LeavingBigEar(playerid);
- }
- if(Captured[playerid][UFO] == 0&&IsPlayerCapturing[playerid][UFO] == 1)
- {
- LeavingUfo(playerid);
- }
- if(Captured[playerid][AREA51] == 0&&IsPlayerCapturing[playerid][AREA51] == 1)
- {
- LeavingArea51(playerid);
- }
- if(Captured[playerid][ABANDONED] == 0&&IsPlayerCapturing[playerid][ABANDONED] == 1)
- {
- LeavingAbandoned(playerid);
- }
- if(Captured[playerid][SNAKE] == 0&&IsPlayerCapturing[playerid][SNAKE] == 1)
- {
- LeavingSnake(playerid);
- }
- if(Captured[playerid][BASIN] == 0&&IsPlayerCapturing[playerid][BASIN] == 1)
- {
- LeavingBasin(playerid);
- }
- if(Captured[playerid][BEACHSIDE] == 0&&IsPlayerCapturing[playerid][BEACHSIDE] == 1)
- {
- LeavingBeach(playerid);
- }
- if(Captured[playerid][RESTAURANT] == 0&&IsPlayerCapturing[playerid][RESTAURANT] == 1)
- {
- LeavingRestaurant(playerid);
- }
- if(Captured[playerid][GAS] == 0&&IsPlayerCapturing[playerid][GAS] == 1)
- {
- LeavingGas(playerid);
- }
- if(Captured[playerid][STADIUM] == 0&&IsPlayerCapturing[playerid][STADIUM] == 1)
- {
- LeavingStadium(playerid);
- }
- if(Captured[playerid][BRIDGE] == 0&&IsPlayerCapturing[playerid][BRIDGE] == 1)
- {
- LeavingBridge(playerid);
- }
- if(IsPlayerCapturing[playerid][MOTEL] == 1&&Captured[playerid][MOTEL] == 0)
- {
- LeavingMotel(playerid);
- }
- if(IsPlayerCapturing[playerid][STATION] == 1&&Captured[playerid][STATION] == 0)
- {
- LeavingStation(playerid);
- }
- if(IsPlayerCapturing[playerid][STUDIO] == 1&&Captured[playerid][STUDIO] == 0)
- {
- LeavingStudio(playerid);
- }
- if(IsPlayerCapturing[playerid][PROJECT] == 1&&Captured[playerid][PROJECT] == 0)
- {
- LeavingProject(playerid);
- }
- AExplode[playerid] = 0;
- BombPlant[playerid] = 0;
- UsedBomb[playerid] = 0;
- HealedTeam[playerid] = 0;
- ArmoredTeam[playerid] = 0;
- SendDeathMessage(killerid,playerid,reason);
- PlayerInfo[playerid][pDeath]++;
- PlayerInfo[killerid][pKill]++;
- KillStreak[killerid]++;
- KillStreak[playerid] = 0;
- GivePlayerMoney(killerid,2000);
- SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
- if(KillStreak[playerid]>10&&KillStreak[playerid]<30)
- {
- KillStreak[playerid] = 0;
- new Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(killerid,Name2,sizeof(Name2));
- //format(str,sizeof(str),"%s[%d] %s[%d]sprees!",Name2,killerid,Name,playerid);
- //SendClientMessageToAll(LARANJA,str);
- }
- if(KillStreak[killerid] == 10)
- {
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(killerid,Name,sizeof(Name));
- format(str,sizeof(str),"{35CA69}Tom:{FFFFFF} O %s[%d] começou a aquecer matou ~r~10 ~w~ '-'",Name,killerid);
- SendBoxMessage(str);
- GameTextForAll(str,3000,6);
- GivePlayerMoney(killerid,3000);
- SetPlayerScore(killerid,GetPlayerScore(killerid)+3);
- SendClientMessage(killerid,VERDE,"[INFO] Você ganhou R$ 3000 e +3 scores por ja ter matado 10 !");
- }
- else if(KillStreak[killerid] == 20)
- {
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(killerid,Name,sizeof(Name));
- format(str,sizeof(str),"{35CA69}Tom:{FFFFFF} O %s[%d] matou ~r~20 ~w~ ta aprendendo :)",Name,killerid);
- SendBoxMessage(str);
- GivePlayerMoney(killerid,5000);
- SetPlayerScore(killerid,GetPlayerScore(killerid)+5);
- SendClientMessage(killerid,VERDE,"[INFO] Você ganhou R$ 5000 e +5 scores por ja ter matado 20 !");
- }
- else if(KillStreak[killerid] == 30)
- {
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(killerid,Name,sizeof(Name));
- format(str,sizeof(str),"{35CA69}Tom:{FFFFFF} %s[%d] ja matou ~r~30 ~w~ to ficando com medo dele D:",Name,killerid);
- SendBoxMessage(str);
- GivePlayerMoney(killerid,7000);
- SetPlayerScore(killerid,GetPlayerScore(killerid)+7);
- SendClientMessage(killerid,VERDE,"[INFO] Você ganhou R$ 7000 e +7 scores por ja ter matado 30 !");
- }
- else if(KillStreak[killerid] == 50)
- {
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(killerid,Name,sizeof(Name));
- format(str,sizeof(str),"{35CA69}Tom:{FFFFFF} Gente o %s[%d] ja matou ~r~50 ~w~ ta fazendo chacina",Name,killerid);
- SendBoxMessage(str);
- GivePlayerMoney(killerid,10000);
- SetPlayerScore(killerid,GetPlayerScore(killerid)+10);
- SendClientMessage(killerid,VERDE,"[INFO] Você ganhou R$ 10000 e +10 scores por ja ter matado 50 !");
- }
- else if(KillStreak[killerid] == 70)
- {
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(killerid,Name,sizeof(Name));
- format(str,sizeof(str),"{35CA69}Tom:{FFFFFF} O %s[%d] matou ~r~70 ~w~ Aprendeu comigo '-'",Name,killerid);
- SendBoxMessage(str);
- GivePlayerMoney(killerid,10000);
- SetPlayerScore(killerid,GetPlayerScore(killerid)+10);
- SendClientMessage(killerid,VERDE,"[INFO] Você ganhou R$ 10000 e +10 scores por ja ter matado 70 !");
- }
- else if(KillStreak[killerid] == 100)
- {
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(killerid,Name,sizeof(Name));
- format(str,sizeof(str),"{35CA69}Tom:{FFFFFF} %s[%d] matou ~r~100 ~w~ Salve se quem puder!! :O ",Name,killerid);
- SendBoxMessage(str);
- GivePlayerMoney(killerid,10000);
- SetPlayerScore(killerid,GetPlayerScore(killerid)+10);
- SendClientMessage(killerid,VERDE,"[INFO] Você ganhou R$ 10000 e +10 scores por ja ter matado 70 !");
- }
- if(IsPlayerInDuel[playerid] == 1&&IsPlayerInDuel[killerid] == 1)
- {
- GameTextForPlayer(playerid,"~r~Derrotado",3000,6);
- GameTextForPlayer(killerid,"~g~Vencedor",3000,6);
- SpawnPlayer(killerid);
- GivePlayerMoney(killerid,5000);
- IsPlayerInDuel[killerid] = 0;
- IsPlayerInDuel[playerid] = 0;
- ExistDuel = 0;
- new str[256],Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(killerid,Name2,sizeof(Name2));
- format(str,sizeof(str),"%s[%d] ganhou o duelo contra %s[%d]",Name2,killerid,Name,playerid);
- SendClientMessageToAll(LARANJA,str);
- }
- VShop[playerid] = 0;
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(Muted[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode falar se estiver calado !");
- return 0;
- }
- if(Logged[playerid] == 0)
- {
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode falar enquanto ainda não estiver registrado!");
- return 0;
- }
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"%s[%d]: {FFFFFF}%s",Name,playerid,text[0]);
- SendClientMessageToAll(GetPlayerColor(playerid),str);
- return 0;
- }
- public OnPlayerCommandPerformed(playerid, cmdtext[], success)
- {
- if(!success)
- return SendClientMessage(playerid, CINZA, "[ERRO] Comando Invalido");
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- /*new Float:p[3],model = GetVehicleModel(vehicleid);
- if(model == 432&&PlayerInfo[playerid][pVip]>0)
- {
- GetPlayerPos(playerid,p[0],p[1],p[2]);
- SetPlayerPos(playerid,p[0],p[1],p[2]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você precisa ser VIP ou Mecanico Tanker para ultilizar este veículo!");
- }
- if(model == 425 && gClasse[playerid] == PILOTO && gClasse[playerid] == CAPITAO && gClasse[playerid] == GENERAL && PlayerInfo[playerid][pVip]>0)
- {
- GetPlayerPos(playerid,p[0],p[1],p[2]);
- SetPlayerPos(playerid,p[0],p[1],p[2]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você precisa ser VIP ou Piloto para ultilizar este veículo!");
- }
- if(model == 520 && gClasse[playerid] == PILOTO && gClasse[playerid] == CAPITAO && gClasse[playerid] == GENERAL && PlayerInfo[playerid][pVip]>0)
- {
- GetPlayerPos(playerid,p[0],p[1],p[2]);
- SetPlayerPos(playerid,p[0],p[1],p[2]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você precisa ser VIP ou Piloto para ultilizar este veículo!");
- }
- if(model == 447 && gClasse[playerid] == PILOTO && gClasse[playerid] == CAPITAO && gClasse[playerid] == GENERAL && PlayerInfo[playerid][pVip]>0)
- {
- GetPlayerPos(playerid,p[0],p[1],p[2]);
- SetPlayerPos(playerid,p[0],p[1],p[2]);
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você precisa ser VIP ou Piloto para ultilizar este veículo!");
- }*/
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new aname[MAX_PLAYER_NAME];
- new file[50];
- GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
- format(file, sizeof(file), CONTAS, aname);
- new modelo = GetVehicleModel(GetPlayerVehicleID(playerid));
- if(newstate == PLAYER_STATE_DRIVER)
- {
- if(modelo == 432)
- {
- if(gClasse[playerid] == MECANICO || gClasse[playerid] == CAPITAO || gClasse[playerid] == GENERAL || PlayerInfo[playerid][pVip]>0)
- {
- } else {
- SendClientMessage(playerid, LARANJA,"*[ERRO] Você precisa ser VIP ou Mecanico Tanker para ultilizar este veículo!");
- RemovePlayerFromVehicle(playerid);
- TogglePlayerControllable(playerid, 1);
- }
- }
- if(modelo == 425)
- {
- if(gClasse[playerid] == PILOTO || gClasse[playerid] == CAPITAO || gClasse[playerid] == GENERAL || PlayerInfo[playerid][pVip]>0)
- {
- } else {
- SendClientMessage(playerid, LARANJA,"*[ERRO] Você precisa ser VIP ou Piloto para ultilizar este veículo!");
- RemovePlayerFromVehicle(playerid);
- TogglePlayerControllable(playerid, 1);
- }
- }
- if(modelo == 520)
- {
- if(gClasse[playerid] == PILOTO || gClasse[playerid] == CAPITAO || gClasse[playerid] == GENERAL || PlayerInfo[playerid][pVip]>0)
- {
- } else {
- SendClientMessage(playerid, LARANJA,"*[ERRO] Você precisa ser VIP ou Piloto para ultilizar este veículo!");
- RemovePlayerFromVehicle(playerid);
- TogglePlayerControllable(playerid, 1);
- }
- }
- if(modelo == 447)
- {
- if(gClasse[playerid] == PILOTO || gClasse[playerid] == CAPITAO || gClasse[playerid] == GENERAL || PlayerInfo[playerid][pVip]>0)
- {
- } else {
- SendClientMessage(playerid, LARANJA,"*[ERRO] Você precisa ser VIP ou Piloto para ultilizar este veículo!");
- RemovePlayerFromVehicle(playerid);
- TogglePlayerControllable(playerid, 1);
- }
- }
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- if(Logged[playerid] == 0)
- {
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você ainda não está logado!");
- return 0;
- }
- if(gPais[playerid] == BRASIL)TextDrawShowForPlayer(playerid,Brasiltext);
- if(gPais[playerid] == RUSSIA)TextDrawShowForPlayer(playerid,Russiatext);
- if(gPais[playerid] == USA)TextDrawShowForPlayer(playerid,USAtext);
- if(gPais[playerid] == ARAB)TextDrawShowForPlayer(playerid,Arabtext);
- if(gPais[playerid] == FRANCE)TextDrawShowForPlayer(playerid,Francetext);
- if(gPais[playerid] == ENGLAND)TextDrawShowForPlayer(playerid,Englandtext);
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] Se Juntou a ~r~%s",Name,playerid,GetTeamName(playerid));
- SendBoxMessage(str);
- ShowPlayerDialog(playerid, DCLASS, DIALOG_STYLE_LIST,"{0080AA}Escolha sua classe","Soldado Assault\nSoldado Sniper\nSoldado Médico - Score 800\nSoldado Mecanico - Score 1200\nSoldado Piloto - Score 1500\nSoldado Bombardeiro - Score 1800\nCapitao - Score 2000\nGeneral - Score 2500","Selecionar","");
- TextDrawHideForPlayer(playerid,USAteam);
- TextDrawHideForPlayer(playerid,Russiateam);
- TextDrawHideForPlayer(playerid,Franceteam);
- TextDrawHideForPlayer(playerid,Englandteam);
- TextDrawHideForPlayer(playerid,Arabteam);
- TextDrawHideForPlayer(playerid,Brasilteam);
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == BrasilBriefcase)
- {
- if(gPais[playerid]!=BRASIL)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar Kits de outro País!");
- ShowPlayerDialog(playerid,BRIEFCASE,DIALOG_STYLE_LIST,"Kits","Vida - $5000\nColete - $5500\nMount Chiliad DM\nExtremo Deseart DM","Selecionar","Cancelar");
- }
- if(pickupid == RussianBriefcase)
- {
- if(gPais[playerid]!=RUSSIA)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar Kits de outro País!");
- ShowPlayerDialog(playerid,BRIEFCASE,DIALOG_STYLE_LIST,"Kits","Vida - $5000\nColete - $5500\nMount Chiliad DM\nExtreme Deseart DM","Selecionar","Cancelar");
- }
- if(pickupid == FranceBriefcase)
- {
- if(gPais[playerid]!=FRANCE)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar Kits de outro País!");
- ShowPlayerDialog(playerid,BRIEFCASE,DIALOG_STYLE_LIST,"Kits","Vida - $5000\nColete - $5500\nMount Chiliad DM\nExtreme Deseart DM","Selecionar","Cancelar");
- }
- if(pickupid == ArabBriefcase)
- {
- if(gPais[playerid]!=ARAB)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar Kits de outro País!");
- ShowPlayerDialog(playerid,BRIEFCASE,DIALOG_STYLE_LIST,"Kits","Vida - $5000\nColete - $5500\nMount Chiliad DM\nExtreme Deseart DM","Selecionar","Cancelar");
- }
- if(pickupid == EnglandBriefcase)
- {
- if(gPais[playerid]!=ENGLAND)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar Kits de outro País!");
- ShowPlayerDialog(playerid,BRIEFCASE,DIALOG_STYLE_LIST,"Kits","Vida - $5000\nColete - $5500\nMount Chiliad DM\nExtreme Deseart DM","Selecionar","Cancelar");
- }
- if(pickupid == USABriefcase)
- {
- if(gPais[playerid]!=USA)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar Kits de outro País!");
- ShowPlayerDialog(playerid,BRIEFCASE,DIALOG_STYLE_LIST,"Kits","Vida - $5000\nColete - $5500\nMount Chiliad DM\nExtreme Deseart DM","Selecionar","Cancelar");
- }
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == LOGIN)
- {
- if(response)
- {
- if(udb_hash(inputtext)==PlayerInfo[playerid][pPass])
- {
- INI_ParseFile(UserPath(playerid),"LoadUser_Data", .bExtra = true, .extra = playerid);
- GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
- SetPlayerScore(playerid,PlayerInfo[playerid][pScores]);
- Logged[playerid] = 1;
- SendClientMessage(playerid,ROSA,"[INFO] Logado com Sucesso!");
- foreach(new i:Player)
- {
- if(IsPlayerAdmin(i)&&PlayerInfo[i][pAdmin]>0)
- {
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"%s[%d] Esta logado",Name,playerid);
- SendClientMessage(i,AZUL,str);
- }
- }
- }
- else
- {
- ShowPlayerDialog(playerid,LOGIN,DIALOG_STYLE_INPUT,"Login","Coloque sua senha abaixo para logar","Login","Sair");
- Logged[playerid] = 0;
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Senha Incorreta!");
- }
- }
- if(!response)return Kick(playerid);
- }
- if(dialogid == RESGISTRO)
- {
- if(response)
- {
- if(!strlen(inputtext))return ShowPlayerDialog(playerid,RESGISTRO,DIALOG_STYLE_INPUT,"Registro","Coloque sua senha abaixo para se registrar!","Registrar","Sair");
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Cash",0);
- INI_WriteInt(File,"Password",udb_hash(inputtext));
- INI_WriteInt(File,"Kill",0);
- INI_WriteInt(File,"Death",0);
- Logged[playerid] = 1;
- INI_WriteInt(File,"Scores",0);
- INI_WriteInt(File,"Level",0);
- INI_WriteInt(File,"VIP",0);
- SavePlayerAdmin(playerid);
- SavePlayerVip(playerid);
- PlayerInfo[playerid][pAdmin] = 0;
- PlayerInfo[playerid][pVip] = 0;
- INI_Close(File);
- }
- }
- if(dialogid == DCLASS)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ResetPlayerWeapons(playerid);
- gClasse[playerid] = SOLDADOASSAULT;
- GivePlayerWeapon(playerid,29,9999);
- GivePlayerWeapon(playerid,31,9999);
- GivePlayerWeapon(playerid,24,9999);
- GivePlayerWeapon(playerid,33,9999);
- GivePlayerWeapon(playerid,17,5);
- SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe - Soldado Assault -");
- }
- if(listitem == 1)
- {
- ResetPlayerWeapons(playerid);
- gClasse[playerid] = SOLDADOSNIPER;
- GivePlayerWeapon(playerid,24,9999);
- GivePlayerWeapon(playerid,25,9999);
- GivePlayerWeapon(playerid,34,9999);
- GivePlayerWeapon(playerid,29,9999);
- GivePlayerWeapon(playerid,17,5);
- SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe - Soldado Sniper -");
- }
- if(listitem == 2)
- {
- if(GetPlayerScore(playerid)>=800)
- {
- ResetPlayerWeapons(playerid);
- SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe - Soldado Médico -");
- GivePlayerWeapon(playerid,26,9999);
- GivePlayerWeapon(playerid,17,5);
- GivePlayerWeapon(playerid,24,9999);
- GivePlayerWeapon(playerid,29,9999);
- GivePlayerWeapon(playerid,25,9999);
- gClasse[playerid] = MEDICO;
- }
- else
- {
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Essa classe requer 800 de scores!");
- ShowPlayerDialog(playerid,DCLASS,DIALOG_STYLE_LIST,"{0080AA}Escolha sua classe","Soldado Assault\nSoldado Sniper\nSoldado Médico - Score 800\nSoldado Mecanico - Score 1200\nSoldado Piloto - Score 1500\nSoldado Bombardeiro - Score 1800\nCapitao - Score 2000\nGeneral - Score 2500","Selecionar","");
- return 0;
- }
- }
- if(listitem == 3)
- {
- if(GetPlayerScore(playerid)>1200)
- {
- ResetPlayerWeapons(playerid);
- SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe - Soldado Mecanico -");
- GivePlayerWeapon(playerid,26,9999);
- GivePlayerWeapon(playerid,24,9999);
- GivePlayerWeapon(playerid,28,9999);
- GivePlayerWeapon(playerid,30,9999);
- GivePlayerWeapon(playerid,18,5);
- gClasse[playerid] = MECANICO;
- }
- else
- {
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] São necessários 1200 de Scores para esta classe!");
- ShowPlayerDialog(playerid,DCLASS,DIALOG_STYLE_LIST,"{0080AA}Escolha sua classe","Soldado Assault\nSoldado Sniper\nSoldado Médico - Score 800\nSoldado Mecanico - Score 1200\nSoldado Piloto - Score 1500\nSoldado Bombardeiro - Score 1800\nCapitao - Score 2000\nGeneral - Score 2500","Selecionar","");
- }
- }
- if(listitem == 4)
- {
- if(GetPlayerScore(playerid)>1500)
- {
- ResetPlayerWeapons(playerid);
- SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe - Piloto de Aviões -");
- GivePlayerWeapon(playerid,16,5);
- GivePlayerWeapon(playerid,27,9999);
- GivePlayerWeapon(playerid,24,9999);
- GivePlayerWeapon(playerid,30,9999);
- GivePlayerWeapon(playerid,32,9999);
- gClasse[playerid] = PILOTO;
- }
- else
- {
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR] 1500 Scores necessários para esta classe!");
- ShowPlayerDialog(playerid,DCLASS,DIALOG_STYLE_LIST,"{0080AA}Escolha sua classe","Soldado Assault\nSoldado Sniper\nSoldado Médico - Score 800\nSoldado Mecanico - Score 1200\nSoldado Piloto - Score 1500\nSoldado Bombardeiro - Score 1800\nCapitao - Score 2000\nGeneral - Score 2500","Selecionar","");
- }
- }
- if(listitem == 5)
- {
- if(GetPlayerScore(playerid)>=1800)
- {
- ResetPlayerWeapons(playerid);
- SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe - Soldado Bombardeiro -");
- GivePlayerWeapon(playerid,24,9999);
- GivePlayerWeapon(playerid,32,9999);
- GivePlayerWeapon(playerid,33,9999);
- GivePlayerWeapon(playerid,39,10);
- GivePlayerWeapon(playerid,40,10);
- GivePlayerWeapon(playerid,16,10);
- SendClientMessage(playerid,VERDE,"Esta classe é capaz de plantar bomba em qualquer lugar usando /plantarbomba. Utilizáveis 5 vezes por Morte. Ou pode usar /abomba para plantar bomba para o jogador mais próximo");
- gClasse[playerid] = BOMBARDEIRO;
- }
- else
- {
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Essa classe requer 1800 de scores!");
- ShowPlayerDialog(playerid,DCLASS,DIALOG_STYLE_LIST,"{0080AA}Escolha sua classe","Soldado Assault\nSoldado Sniper\nSoldado Médico - Score 800\nSoldado Mecanico - Score 1200\nSoldado Piloto - Score 1500\nSoldado Bombardeiro - Score 1800\nCapitao - Score 2000\nGeneral - Score 2500","Selecionar","");
- return 0;
- }
- }
- if(listitem == 6)
- {
- if(GetPlayerScore(playerid)>2000)
- {
- ResetPlayerWeapons(playerid);
- SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe - Capitao -");
- GivePlayerWeapon(playerid,26,99999);
- GivePlayerWeapon(playerid,24,99999);
- GivePlayerWeapon(playerid,31,99999);
- GivePlayerWeapon(playerid,33,99999);
- GivePlayerWeapon(playerid,35,2);
- GivePlayerWeapon(playerid,16,10);
- GivePlayerWeapon(playerid,17,10);
- GivePlayerWeapon(playerid,18,10);
- gClasse[playerid] = CAPITAO;
- }
- else
- {
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] 2000 Scores necessários para esta classe!");
- ShowPlayerDialog(playerid,DCLASS,DIALOG_STYLE_LIST,"{0080AA}Escolha sua classe","Soldado Assault\nSoldado Sniper\nSoldado Médico - Score 800\nSoldado Mecanico - Score 1200\nPiloto - Score 1500\nSoldado Bombardeiro - Score 1800\nCapitao - Score 2000\nGeneral - Score 2500","Selecionar","");
- }
- }
- if(listitem == 7)
- {
- if(GetPlayerScore(playerid)>2500)
- {
- ResetPlayerWeapons(playerid);
- SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe - General -");
- GivePlayerWeapon(playerid,26,99999);
- GivePlayerWeapon(playerid,24,99999);
- GivePlayerWeapon(playerid,30,99999);
- GivePlayerWeapon(playerid,33,99999);
- GivePlayerWeapon(playerid,35,5);
- GivePlayerWeapon(playerid,32,99999);
- GivePlayerWeapon(playerid,16,10);
- GivePlayerWeapon(playerid,17,10);
- GivePlayerWeapon(playerid,18,10);
- gClasse[playerid] = GENERAL;
- }
- else
- {
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] 2500 Scores necessários para esta classe!");
- ShowPlayerDialog(playerid,DCLASS,DIALOG_STYLE_LIST,"{0080AA}Escolha sua classe","Soldado Assault\nSoldado Sniper\nSoldado Médico - Score 800\nSoldado Mecanico - Score 1200\nSoldado Piloto - Score 1500\nSoldado Bombardeiro - Score 1800\nCapitao - Score 2000\nGeneral - Score 2500","Selecionar","");
- return 0;
- }
- }
- }
- if(!response)
- {
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você deve escolher sua classe!");
- ShowPlayerDialog(playerid,DCLASS,DIALOG_STYLE_LIST,"{0080AA}Escolha sua classe","Soldado Assault\nSoldado Sniper\nSoldado Médico - Score 800\nSoldado Mecanico - Score 1200\nSoldado Piloto - Score 1500\nSoldado Bombardeiro - Score 1800\nCapitao - Score 2000\nGeneral - Score 2500","Selecionar","");
- return 0;
- }
- }
- if(dialogid == VDIALOG)
- {
- if(response)
- {
- if(listitem == 0)
- {
- new Float:p[4];
- GetPlayerPos(playerid,p[0],p[1],p[2]);
- GetPlayerFacingAngle(playerid,p[3]);
- CreateVehicle(520,p[0],p[1],p[2],p[3]+90,-1,-1,9998989899);
- SendClientMessage(playerid,ROSA,"[INFO] Hydra Spawned");
- }
- if(listitem == 1)
- {
- new Float:p[4];
- GetPlayerPos(playerid,p[0],p[1],p[2]);
- GetPlayerFacingAngle(playerid,p[3]);
- CreateVehicle(425,p[0],p[1],p[2],p[3]+90,-1,-1,988888998);
- SendClientMessage(playerid,ROSA,"[INFO] Hunter spawned");
- }
- if(listitem == 2)
- {
- new Float:p[4];
- GetPlayerPos(playerid,p[0],p[1],p[2]);
- GetPlayerFacingAngle(playerid,p[3]);
- CreateVehicle(432,p[0],p[1],p[2],p[3]+90,-1,-1,99999898);
- SendClientMessage(playerid,ROSA,"[INFO] Rhino spawned");
- }
- }
- }
- if(dialogid == DIALOGDUEL)
- {
- if(response == 1)
- {
- if(listitem == 0)
- {
- foreach(new i:Player)
- {
- UsedWeaps[i] = COMBAT;
- SendClientMessage(playerid,LARANJA,"[INFO] Combate Shotgun selecionada como arma do duelo!");
- Configured[i] = 1;
- GivePlayerWeapon(playerid,27,9989);
- DuelMaker[playerid] = playerid;
- }
- }
- if(listitem == 1)
- {
- foreach(new i:Player)
- {
- DuelMaker[playerid] = playerid;
- UsedWeaps[i] = DEAGLE;
- SendClientMessage(playerid,LARANJA,"[INFO] Deseart eagle selecionada como arma do duelo!");
- Configured[i] = 1;
- GivePlayerWeapon(playerid,24,9989);
- }
- }
- if(listitem == 2)
- {
- foreach(new i:Player)
- {
- DuelMaker[playerid] = playerid;
- UsedWeaps[i] = SHOTGUN;
- SendClientMessage(playerid,LARANJA,"[INFO] Shotgun selecionada como arma do duelo!");
- Configured[i] = 1;
- GivePlayerWeapon(playerid,25,9989);
- }
- }
- if(listitem == 3)
- {
- foreach(new i:Player)
- {
- DuelMaker[playerid] = playerid;
- UsedWeaps[i] = M4;
- SendClientMessage(playerid,LARANJA,"[INFO] M4 selecionada como arma do duelo!");
- Configured[i] = 1;
- GivePlayerWeapon(playerid,31,9989);
- }
- }
- }
- if(!response)
- {
- ShowPlayerDialog(playerid,DIALOGDUEL,DIALOG_STYLE_LIST,"Escolha a sua Arma","Combat Shotgun\nDeagle\nShotgun\nM4","Choose","");
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Por Favor Escolha a sua Arma!");
- return 0;
- }
- }
- if(dialogid == BRIEFCASE)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerHealth(playerid,100);
- GivePlayerMoney(playerid,-5000);
- }
- if(listitem == 1)
- {
- SetPlayerArmour(playerid,100);
- GivePlayerMoney(playerid,-5000);
- }
- if(listitem == 2)
- {
- InDM[playerid] = 1;
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,34,300);
- GivePlayerWeapon(playerid,24,300);
- SendClientMessage(playerid,VERDE,"[SERVER] Bem vindo ao Mount Chiliad DM");
- SendClientMessage(playerid,VERDE,"[INFO] Use /kill para sair da DM Arena!");
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] ~r~Foi para Mount Chilliad DM!",Name,playerid);
- SendBoxMessage(str);
- SetPlayerPos(playerid,-2404.4795,-1623.3090,518.2908);
- }
- if(listitem == 3)
- {
- InHIC[playerid] = 1;
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,27,300);
- GivePlayerWeapon(playerid,24,300);
- SendClientMessage(playerid,VERDE,"[SERVER] Bem-vindo ao inferno em uma célula!");
- SendClientMessage(playerid,VERDE,"[INFO] Use /kill para sair da DM Arena!");
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] ~r~foi para Inferno DM!",Name,playerid);
- SendBoxMessage(str);
- new Random = random(sizeof(HICSpawn));
- SetPlayerPos(playerid,HICSpawn[Random][0],HICSpawn[Random][1],HICSpawn[Random][2]);
- }
- }
- }
- if(dialogid == VSHOP)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid)<5000)
- {
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não tem dinheiro suficiente!");
- VShop[playerid] = 0;
- }
- else
- {
- SetPlayerHealth(playerid,100);
- GivePlayerMoney(playerid,-5000);
- SendClientMessage(playerid,COLOR_NONE_CAPTURE,"[INFO] Vida adquirida com sucesso!");
- VShop[playerid] = 1;
- }
- }
- }
- if(listitem == 1)
- {
- if(GetPlayerMoney(playerid)<5500)
- {
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não tem dinheiro suficiente!");
- VShop[playerid] = 0;
- }
- else
- {
- SetPlayerArmour(playerid,100);
- GivePlayerMoney(playerid,-5500);
- SendClientMessage(playerid,COLOR_NONE_CAPTURE,"[INFO] Colete adquirido com sucesso!");
- VShop[playerid] = 1;
- }
- }
- if(listitem == 2)
- {
- if(GetPlayerMoney(playerid)<7000)
- {
- SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não tem dinheiro suficiente!");
- VShop[playerid] = 0;
- }
- else
- {
- GivePlayerMoney(playerid,-7000);
- SendClientMessage(playerid,COLOR_NONE_CAPTURE,"[INFO] RPG adquirido com sucesso!");
- VShop[playerid] = 1;
- GivePlayerWeapon(playerid,35,10);
- }
- }
- if(!response)return 1;
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- stock GetLevelName(playerid)
- {
- new str[64];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- str = ("Moderador");
- }
- if(PlayerInfo[playerid][pAdmin] == 2)
- {
- str = ("Admin");
- }
- if(PlayerInfo[playerid][pAdmin] == 3)
- {
- str = ("Admin");
- }
- if(PlayerInfo[playerid][pAdmin] == 4)
- {
- str = ("Admin");
- }
- if(PlayerInfo[playerid][pAdmin] == 5)
- {
- str = ("Admin");
- }
- if(PlayerInfo[playerid][pAdmin] >= 6)
- {
- str = ("Admin");
- }
- if(IsPlayerAdmin(playerid))
- {
- str = ("Admin");
- }
- return str;
- }
- stock SavePlayerAdmin(playerid)
- {
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Level",PlayerInfo[playerid][pAdmin]);
- INI_Close(File);
- return 1;
- }
- stock SavePlayerVip(playerid)
- {
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"VIP",PlayerInfo[playerid][pVip]);
- INI_Close(File);
- return 1;
- }
- stock GetTeamName(playerid)
- {
- new str[256];
- if(gPais[playerid] == BRASIL)
- {
- str = ("Brasil");
- }
- if(gPais[playerid] == USA)
- {
- str = ("EUA");
- }
- if(gPais[playerid] == ENGLAND)
- {
- str = ("Inglaterra");
- }
- if(gPais[playerid] == RUSSIA)
- {
- str = ("Russia");
- }
- if(gPais[playerid] == FRANCE)
- {
- str = ("Franca");
- }
- if(gPais[playerid] == ARAB)
- {
- str = ("Arabia");
- }
- return str;
- }
- stock GetRankName(playerid)
- {
- new str[64];
- if(GetPlayerScore(playerid)>=6000)
- {
- str = ("Rei dos Reis");
- }
- if(GetPlayerScore(playerid)>=0&&GetPlayerScore(playerid)<100)str = ("Nivel Aprendiz");
- if(GetPlayerScore(playerid)>=500&&GetPlayerScore(playerid)<800)str = ("Nivel Medio");
- if(GetPlayerScore(playerid)>=1000&&GetPlayerScore(playerid)<1500)str = ("Nivel Intermediario");
- if(GetPlayerScore(playerid)>=2000&&GetPlayerScore(playerid)<3000)str = ("Nivel Master");
- if(GetPlayerScore(playerid)>=5000&&GetPlayerScore(playerid)<4500)str = ("Special force Medio");
- if(GetPlayerScore(playerid)>=7500&&GetPlayerScore(playerid)<6000)str = ("Special Force Mestre");
- return str;
- }
- stock ResetStats(playerid)
- {
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Kill",PlayerInfo[playerid][pKill]);
- INI_WriteInt(File,"Death",PlayerInfo[playerid][pDeath]);
- INI_WriteInt(File,"Scores",PlayerInfo[playerid][pScores]);
- INI_Close(File);
- return 1;
- }
- // ------------------------------------
- // Player Commands
- // ------------------------------------
- CMD:ajudax1(playerid,params[])
- {
- SendClientMessage(playerid,LARANJA,"---------------------------------------------------");
- SendClientMessage(playerid,BRANCO," /Duelar [ID DO PLAYER]");
- SendClientMessage(playerid,BRANCO," /x1 [ID DO PLAYER] ");
- SendClientMessage(playerid,BRANCO," O ganhador recebera 12k de grana e +10 de scores");
- SendClientMessage(playerid,LARANJA,"---------------------------------------------------");
- return 1;
- }
- CMD:mudarpais(playerid,params[])
- {
- SetPlayerHealth(playerid,0);
- ForceClassSelection(playerid);
- if(IsPlayerInDuel[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar este comando no duelo!");
- return 1;
- }
- CMD:jetpack(playerid,params[])
- {
- if(gClasse[playerid] == PILOTO || gClasse[playerid] == CAPITAO || PlayerInfo[playerid][pVip]>0)
- {
- SetPlayerSpecialAction(playerid,2);
- SendClientMessage(playerid,BRANCO,"[INFO] Você pegou seu jetpack!");
- }
- else return SendClientMessage(playerid,BRANCO,"[ERRO] Você não tem permissão!");
- return 1;
- }
- CMD:criarduelo(playerid,params[])
- {
- if(ExistDuel == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Ja existe um duelo em andamento!");
- ExistDuel = 1;
- foreach(new i:Player)
- {
- Configured[i] = 0;
- }
- if(AFK[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode criar duelo em modo afk!");
- if(InDM[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode criar duelo enquanto você está no DM Arena!");
- ShowPlayerDialog(playerid,DIALOGDUEL,DIALOG_STYLE_LIST,"Escolha sua Arma","Combat Shotgun\nDeagle\nShotgun\nM4","Choose","");
- SendClientMessage(playerid,LARANJA,"Bem-vindo ao duelo arena. Por favor, escolha a sua arma abaixo!");
- SetPlayerPos(playerid,1305.2247,2191.3816,11.0234);
- new Name[MAX_PLAYER_NAME],str[256];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] ~r~criou um duelo!",Name,playerid);
- SendBoxMessage(str);
- ResetPlayerWeapons(playerid);
- SendClientMessage(playerid,LARANJA,"Por favor, tome a sua posição!");
- IsPlayerInDuel[playerid] = 1;
- return 1;
- }
- CMD:aceitarduelo(playerid,params[])
- {
- if(ExistDuel == 0)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Nenhum duelo criado! Use /criarduelo!");
- if(Configured[playerid] == 0)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Duelo não configurado! Por favor, tente novamente mais tarde!");
- if(DuelMaker[playerid] == playerid)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Voce ja esta no duelo!");
- if(AFK[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Voce nao pode usar esse comando AFK!");
- SetPlayerPos(playerid,1305.2247,2191.3816,11.0234);
- GameTextForAll("~g~o Duelo ~r~iniciou!",3000,6);
- if(InDM[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode duelo enquanto você está no DM Arena");
- ResetPlayerWeapons(playerid);
- IsPlayerInDuel[playerid] = 1;
- if(SpawnKill[playerid] == 1)
- {
- KillTimer(AntiSpawnKill[playerid]);
- return AntiSpawnKilling(playerid);
- }
- if(UsedWeaps[playerid] == COMBAT)
- {
- GivePlayerWeapon(playerid,27,9889);
- }
- else if(UsedWeaps[playerid] == DEAGLE)
- {
- GivePlayerWeapon(playerid,24,9889);
- }
- else if(UsedWeaps[playerid] == SHOTGUN)
- {
- GivePlayerWeapon(playerid,25,9889);
- }
- else if(UsedWeaps[playerid] == M4)
- {
- GivePlayerWeapon(playerid,31,9889);
- }
- return 1;
- }
- CMD:reportar(playerid,params[])
- {
- new Name[MAX_PLAYER_NAME],targetid,Name2[MAX_PLAYER_NAME],str[256],reason[256];
- if(sscanf(params,"us[256]",targetid,reason))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /reportar ID [Motivo]!");
- if(targetid == INVALID_PLAYER_ID)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]:Invalid target ID!");
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- format(str,sizeof(str),"%s[%d]has reported %s[%d]for %s",Name,playerid,Name2,targetid,reason);
- SendClientMessage(playerid,LARANJA,"[INFO]:Your report has sent to all online administrators!");
- foreach(new i:Player)
- {
- if(PlayerInfo[i][pAdmin]>0||IsPlayerAdmin(i))
- {
- SendClientMessage(i,COLOR_BRIGHTRED,str);
- }
- }
- return 1;
- }
- CMD:chat(playerid,params[])
- {
- new Name[MAX_PLAYER_NAME],text[256],str[256];
- GetPlayerName(playerid,Name,sizeof(Name));
- if(sscanf(params,"s[256",text))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /chat [texto]!");
- foreach(new i:Player)
- {
- if(gPais[i] == gPais[playerid])
- {
- format(str,sizeof(str),"%s[%d][%s chat]:{FFFFAA}%s",Name,playerid,GetTeamName(playerid),text);
- SendClientMessage(i,LARANJA,str);
- }
- }
- return 1;
- }
- CMD:ajuda(playerid,params[])
- {
- new str[256],Name[MAX_PLAYER_NAME],text[256];
- GetPlayerName(playerid,Name,sizeof(Name));
- if(sscanf(params,"s[256]",text))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /ajuda [Duvida]!");
- format(str,sizeof(str),"Pedido de ajuda de %s[%d]: %s",Name,playerid,text);
- SendClientMessage(playerid,ROSA,"[INFO] Sua mensagem foi enviada para todos os administradores");
- foreach(new i:Player)
- {
- if(IsPlayerAdmin(i)||PlayerInfo[i][pAdmin]>0)SendClientMessage(i,LARANJA,str);
- }
- return 1;
- }
- CMD:status(playerid,params[])
- {
- new str[256],Name[MAX_PLAYER_NAME],str2[256],str3[256];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"Nome:%s||Grana:%i||Matou:%i||Morreu:%i||Killstreak:%i",Name,GetPlayerMoney(playerid),PlayerInfo[playerid][pKill],PlayerInfo[playerid][pDeath],KillStreak[playerid]);
- format(str2,sizeof(str2),"Admin Level:%i||VIP Level:%i||Score:%i||Rank:%s",PlayerInfo[playerid][pAdmin],PlayerInfo[playerid][pVip],GetPlayerScore(playerid),GetRankName(playerid));
- format(str3,sizeof(str3),"Estatísticas do usuário %s",Name);
- SendClientMessage(playerid,LARANJA,"---------------------------------------------------");
- SendClientMessage(playerid,LARANJA," USER STATS ");
- SendClientMessage(playerid,LARANJA,str3);
- SendClientMessage(playerid,LARANJA,str);
- SendClientMessage(playerid,LARANJA,str2);
- SendClientMessage(playerid,LARANJA,"---------------------------------------------------");
- return 1;
- }
- CMD:afk(playerid,params[])
- {
- if(AFK[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você já está na zona AFK!");
- if(IsPlayerInDuel[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar esse comando no duelo!");
- if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar AFK de dentro de um veículo!");
- if(InDM[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR] Você não pode usar AFK enquanto você está no DM Arena!");
- if(InHIC[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este comando não suporta na sua zona AFK!");
- else
- {
- AFKTimer[playerid] = SetTimerEx("GoAFK",5000,false,"i",playerid);
- SendClientMessage(playerid,AZUL,"Você será teletransportado para Zona AFK em 5 segundos");
- }
- return 1;
- }
- forward GoAFK(playerid);
- public GoAFK(playerid)
- {
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"%s[%d] esta AFK!",Name,playerid);
- SendBoxMessage(str);
- SetPlayerPos(playerid,1830.70508, -1281.54004, 90.47750);
- AFK[playerid] = 1;
- KillTimer(AFKTimer[playerid]);
- SendClientMessage(playerid,ROSA,"[INFO] Você está na Zona AFK!");
- ResetPlayerWeapons(playerid);
- return 1;
- }
- CMD:online(playerid,params[])
- {
- if(AFK[playerid] == 0)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não esta AFK!");
- if(InDM[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Comando nao suportado para DM Arenas");
- if(InHIC[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Comando não suportado na sua zona atual!");
- else
- {
- SpawnPlayer(playerid);
- AFK[playerid] = 0;
- SendClientMessage(playerid,VERDE,"[INFO] Você voltou da Zona AFK!");
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] Retornou da zona AFK!",Name,playerid);
- SendBoxMessage(str);
- }
- return 1;
- }
- CMD:objetivo(playerid,params[])
- {
- SendClientMessage(playerid,COLOR_BRIGHTRED,"===============================================");
- SendClientMessage(playerid,BRANCO,"A fim de ganhar dinheiro e marcar rápido, você precisa fazer isso:");
- SendClientMessage(playerid,BRANCO,"1.Capturar mais zona. A melhor maneira e mais fácil maneira de ganhar dinheiro e pontuação");
- SendClientMessage(playerid,BRANCO,"2.Make killspree");
- SendClientMessage(playerid,BRANCO,"3.Kill more PPL");
- SendClientMessage(playerid,COLOR_BRIGHTRED,"================================================");
- return 1;
- }
- CMD:pm(playerid,params[])
- {
- new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[256],str2[256],text[256];
- if(sscanf(params,"us[256",targetid,text))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /pm ID [texto]");
- if(targetid == INVALID_PLAYER_ID)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] ID Invalido");
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- format(str,sizeof(str),"* PM Enviado para %s[%d]:%s",Name2,targetid,text);
- format(str2,sizeof(str2),"* PM Recebido de %s[%d]:%s",Name,playerid,text);
- SendClientMessage(playerid,VERDE,str);
- SendClientMessage(targetid,VERDE,str2);
- return 1;
- }
- CMD:resetarstatus(playerid,params[])
- {
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Kill",0);
- INI_WriteInt(File,"Death",0);
- INI_WriteInt(File,"Scores",0);
- ResetStats(playerid);
- PlayerInfo[playerid][pKill] = 0;
- PlayerInfo[playerid][pDeath] = 0;
- PlayerInfo[playerid][pScores] = 0;
- SetPlayerScore(playerid,0);
- INI_Close(File);
- SendClientMessage(playerid,ROSA,"[INFO] Informaçoes resetadas!");
- return 1;
- }
- CMD:kill(playerid,params[])
- {
- SetPlayerHealth(playerid,0);
- return 1;
- }
- CMD:regras(playerid,params[])
- {
- ShowPlayerDialog(playerid,300,DIALOG_STYLE_MSGBOX,"Regras - World War -","1.Não use Hack, ou algo para se beneficiar\n2.Não fique discutindo com outros Players\n3.Não Mate Players de Seu Pais\n{0000AA}4.Respeite os Admins\n5.Não mate na Zona AFK\n6.Não cometa DB","Ok","");
- return 1;
- }
- CMD:curar(playerid,params[])
- {
- new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[256],str2[256],Float:pD[3];
- if(gClasse[playerid] == MEDICO)
- {
- if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /CurarEquipe ID");
- //if(HealedTeam[playerid]>5)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]:You have healled your team mate for maximum time!");
- //if(GetPlayerMoney(playerid)<6000)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não tem dinheiro suficiente!");
- GetPlayerPos(targetid,pD[0],pD[1],pD[2]);
- GetPlayerName(targetid,Name2,sizeof(Name2));
- GetPlayerName(playerid,Name,sizeof(Name));
- if(IsPlayerInRangeOfPoint(playerid,4,pD[0],pD[1],pD[2])&&gPais[targetid]==gPais[playerid]&&targetid!=INVALID_PLAYER_ID&&targetid!=playerid&&HealedTeam[playerid]<6)
- {
- SetPlayerHealth(targetid,100);
- format(str,sizeof(str),"Você curou %s[%d]",Name2,targetid);
- format(str2,sizeof(str2),"[MEDICO] %s[%d] Te curou!",Name,playerid);
- SendClientMessage(playerid,ROSA,str);
- SendClientMessage(targetid,ROSA,str2);
- //GivePlayerMoney(playerid,-6000);
- //HealedTeam[playerid]++;
- }
- else return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Chegue mais perto para poder curar!");
- }
- else return 0;
- return 1;
- }
- /*CMD:armteam(playerid,params[])
- {
- new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[256],str2[256],Float:pD[3];
- if(gClasse[playerid] == MEDICO)
- {
- if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]:Usage /armteam ID");
- if(ArmoredTeam[playerid]>5)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]:You have armored your team mate for maximum time!");
- if(GetPlayerMoney(playerid)<6500)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]:You dont have enough money!");
- GetPlayerPos(targetid,pD[0],pD[1],pD[2]);
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- if(IsPlayerInRangeOfPoint(playerid,4,pD[0],pD[1],pD[2])&&gPais[targetid]==gPais[playerid]&&targetid!=INVALID_PLAYER_ID&&targetid!=playerid&&ArmoredTeam[playerid]<6)
- {
- SetPlayerArmour(targetid,100);
- format(str,sizeof(str),"You have given armor to%s[%d]",Name2,targetid);
- format(str2,sizeof(str2),"[INFO]:%s[%d]has restore your armor!",Name,playerid);
- SendClientMessage(playerid,ROSA,str);
- SendClientMessage(targetid,ROSA,str2);
- GivePlayerMoney(playerid,-6500);
- ArmoredTeam[playerid]++;
- }
- else return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]:That player is not near you!");
- }
- else return 0;
- return 1;
- }*/
- CMD:plantarbomba(playerid,params[])
- {
- if(gClasse[playerid] == BOMBARDEIRO || PlayerInfo[playerid][pVip]>1)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&UsedBomb[playerid]<6)
- {
- if(GetPlayerMoney(playerid)<5000)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Voce não tem dinheiro suficiente!");
- new Float:p[3];
- GetPlayerPos(playerid,p[0],p[1],p[2]);
- ApplyAnimation(playerid, "ped", "bomber", 1.0, 0, 0, 0, 0, 0);
- Bomb = CreateObject(1636,p[0],p[1],p[2],0,0,0,0);
- SetPVarFloat(playerid,"BombX",p[0]);
- SetPVarFloat(playerid,"BombY",p[1]);
- SetPVarFloat(playerid,"BombZ",p[2]);
- BombTimer[playerid] = SetTimerEx("BombExploded",10000,false,"i",playerid);
- GivePlayerMoney(playerid,-6000);
- new str[256],Name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~%s[%d] ~r~Plantou Uma bomba! Cuidado !!!",Name,playerid);
- SendBoxMessage(str);
- //SendClientMessageToAll(str);
- GivePlayerMoney(playerid,-5000);
- }
- else return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você está dentro de um veículo ou ja usou este comandos por 5 vezes!");
- }
- else return 0;
- return 1;
- }
- forward BombExploded(playerid);
- public BombExploded(playerid)
- {
- CreateExplosion(GetPVarFloat(playerid,"BombX"),GetPVarFloat(playerid,"BombY"),GetPVarFloat(playerid,"BombZ"),3,5);
- SendClientMessage(playerid,ROSA,"[INFO] Sua bomba explodiu com sucesso!");
- UsedBomb[playerid]++;
- DestroyObject(Bomb);
- return 1;
- }
- CMD:bomba(playerid,params[])
- {
- new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[256],str2[256],Float:pD[3];
- if(gClasse[playerid] == BOMBARDEIRO || PlayerInfo[playerid][pVip]>2)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&BombPlant[playerid]<5)
- {
- if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /bomba ID");
- if(IsPlayerInAnyVehicle(targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] O Jogador esta em um veiculo!");
- if(GetPlayerMoney(playerid)<8000)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não tem dinheiro suficiente!");
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- GetPlayerPos(targetid,pD[0],pD[1],pD[2]);
- if(IsPlayerInRangeOfPoint(playerid,5,pD[0],pD[1],pD[2])&&targetid!=INVALID_PLAYER_ID&&targetid!=playerid)
- {
- format(str,sizeof(str),"%s[%d] plantou uma bomba em você!",Name,playerid);
- format(str2,sizeof(str2),"Você Plantou uma Bomba em %s[%d]",Name2,targetid);
- SendClientMessage(playerid,ROSA,str2);
- SendClientMessage(targetid,COLOR_BRIGHTRED,str);
- CreateExplosion(pD[0],pD[1],pD[2],3,4);
- GivePlayerMoney(playerid,-8000);
- BombPlant[playerid]++;
- }
- else return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Esse player não está perto de você!");
- }
- else return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você está dentro de um veículo ou ja usou este comandos por 5 vezes!");
- }
- else return 0;
- return 1;
- }
- CMD:explodirme(playerid,params[])
- {
- if(gClasse[playerid] == MECANICO||PlayerInfo[playerid][pVip]>0)
- {
- if(!IsPlayerInAnyVehicle(playerid)&&AExplode[playerid]<6)
- {
- new Float:p[3],Float:health,Float:armor;
- GetPlayerPos(playerid,p[0],p[1],p[2]);
- GetPlayerHealth(playerid,health);
- GetPlayerArmour(playerid,armor);
- CreateExplosion(p[0],p[1],p[2],3,4);
- SetPlayerHealth(playerid,health);
- SetPlayerArmour(playerid,armor);
- AExplode[playerid]++;
- }
- else return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você está dentro de um veículo ou ja usou este comandos por 5 vezes!");
- }
- else return 0;
- return 1;
- }
- CMD:admins(playerid,params[])
- {
- SendClientMessage(playerid,0x008000AA,"~~~~~~~• Admins Online ~~~~~~~•");
- new Jogador[24];
- new count = 0;
- new msg[120];
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && PlayerInfo[i][pAdmin]>0)
- {
- GetPlayerName(i,Jogador,24);
- format(msg,sizeof(msg),"» %s (ID: %d)", Jogador,i);
- SendClientMessage(playerid, 0x0088CAAA, msg);
- count++;
- }
- }
- if(count == 0)
- {
- SendClientMessage(playerid, 0xFFFF00AA, "** Nenhum Admin está online no momento!");
- }
- return 1;
- }
- CMD:vips(playerid,params[])
- {
- SendClientMessage(playerid,0x008000AA,"~~~~~~~• Players VIP Online ~~~~~~~•");
- new Jogador[24];
- new count = 0;
- new msg[120];
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && PlayerInfo[i][pVip]>0)
- {
- GetPlayerName(i,Jogador,24);
- format(msg,sizeof(msg),"» %s (ID: %d)", Jogador,i);
- SendClientMessage(playerid, 0x0088CAAA, msg);
- count++;
- }
- }
- if(count == 0)
- {
- SendClientMessage(playerid, 0xFFFF00AA, "** Nenhum player VIP está online no momento!");
- SendClientMessage(playerid, 0x80FFFFAA, "* Veja as vantagens VIP /vipbeneficios");
- }
- return 1;
- }
- // -----------------------------------
- // VIP Commands
- // -----------------------------------
- CMD:cvv(playerid,params[])
- {
- if(PlayerInfo[playerid][pVip]>0)
- {
- ShowPlayerDialog(playerid,VDIALOG,DIALOG_STYLE_LIST,"Selecione o veiculo","Hydra\nHunter\nRhino","Spawn","");
- }
- else return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não é VIP !");
- return 1;
- }
- CMD:vchat(playerid,params[])
- {
- if(PlayerInfo[playerid][pVip]>0)
- {
- new str[256],Name[MAX_PLAYER_NAME],msg[256];
- GetPlayerName(playerid,Name,sizeof(Name));
- if(sscanf(params,"s[256]",msg))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /vchat [texto]");
- format(str,sizeof(str),"VIP Chat %s[%d]:{FFFFAA}%s",Name,playerid,msg);
- foreach(new i:Player)
- {
- if(PlayerInfo[i][pVip]>0)
- {
- SendClientMessage(i,LARANJA,str);
- }
- }
- }
- else return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não é VIP !");
- return 1;
- }
- CMD:v(playerid,params[])
- {
- if(PlayerInfo[playerid][pVip]>0)
- {
- new str[256],Name[MAX_PLAYER_NAME],msg[256];
- GetPlayerName(playerid,Name,sizeof(Name));
- if(sscanf(params,"s[256]",msg))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /v [texto]");
- format(str,sizeof(str),"* VIP %s[%d]:{FFFFAA}%s",Name,playerid,msg);
- SendClientMessageToAll(VERDE,str);
- }
- else return 0;
- return 1;
- }
- CMD:anunciarv(playerid,params[])
- {
- if(PlayerInfo[playerid][pVip]>0)
- {
- new str[256],Name[MAX_PLAYER_NAME],msg[256];
- GetPlayerName(playerid,Name,sizeof(Name));
- if(sscanf(params,"s[256]",msg))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /anunciarv [texto]");
- format(str,sizeof(str),"~g~VIP:~w~%s",msg);
- GameTextForAll(str,3000,6);
- }
- else return 0;
- return 1;
- }
- CMD:shop(playerid,params[])
- {
- if(IsPlayerInDuel[playerid] == 1)return 0;
- if(InDM[playerid] == 1)return 0;
- if(InHIC[playerid] == 1)return 0;
- if(VShop[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este comando só utilizável uma vez por morte!");
- ShowPlayerDialog(playerid,VSHOP,DIALOG_STYLE_LIST,"{0080AA}VIP Shop","Vida-{0080AA}$5000\nColete-{0080AA}$5500\n10 Packs de RPG-{0080AA}$7000","Buy","");
- return 1;
- }
- // ------------------------------------
- // ADMIN COMMANDS
- // ------------------------------------
- CMD:setadmin(playerid,params[])
- {
- new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[128],str2[128];
- if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Você precisa estar na RCON para usar esse comando!");
- if(sscanf(params,"ui",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use:/setadmin ID ");
- if(PlayerInfo[playerid][pAdmin] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Jogador selecionado já é admin!");
- {
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- format(str,sizeof(str),">> %s[%d] setou %s[%d] como Admin !",Name,playerid,Name2,targetid);
- SendClientMessageToAll(ROSA,str);
- PlayerInfo[targetid][pAdmin] = 1;
- SavePlayerAdmin(playerid);
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Level", 1);
- INI_Close(File);
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i)&&IsPlayerAdmin(i)||PlayerInfo[i][pAdmin] >=1)
- {
- format(str2,sizeof(str2),"Admin %s[%d] usou /setadmin !",Name,playerid);
- SendClientMessage(i,LARANJA,str);
- }
- }
- }
- return 1;
- }
- CMD:tiraradmin(playerid,params[])
- {
- new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[128],str2[128];
- if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Você precisa estar na RCON para usar esse comando!");
- if(sscanf(params,"ui",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use:/tiraradmin ID ID ");
- if(PlayerInfo[playerid][pAdmin] == 0)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Jogador selecionado não é admin!");
- {
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- format(str,sizeof(str),">> %s[%d] Tirou o Admin de %s[%d] !",Name,playerid,Name2,targetid);
- SendClientMessageToAll(ROSA,str);
- PlayerInfo[targetid][pAdmin] = 0;
- SavePlayerAdmin(playerid);
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"Data");
- INI_WriteInt(File,"Level", 0);
- INI_Close(File);
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i)&&IsPlayerAdmin(i)||PlayerInfo[i][pAdmin] >=1)
- {
- format(str2,sizeof(str2),"Admin %s[%d] usou /TirarAdmin !",Name,playerid);
- SendClientMessage(i,LARANJA,str);
- }
- }
- }
- return 1;
- }
- CMD:setvip(playerid,params[])
- {
- new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[128],str2[128];
- if(IsPlayerAdmin(playerid))
- {
- if(sscanf(params,"ui",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /setvip ID ");
- if(PlayerInfo[targetid][pVip] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Jogador selecionado já é Vip!");
- PlayerInfo[targetid][pVip] = 1;
- SavePlayerVip(playerid);
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- format(str,sizeof(str),"Admin %s[%d] te setou VIP",Name,playerid);
- format(str2,sizeof(str2),"Você deu VIP a %s[%d]",Name2,targetid);
- SendClientMessage(playerid,ROSA,str2);
- SendClientMessage(targetid,ROSA,str);
- }
- return 1;
- }
- CMD:tirarvip(playerid,params[])
- {
- new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[128],str2[128];
- if(IsPlayerAdmin(playerid))
- {
- if(sscanf(params,"ui",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /tirarvip ID ");
- if(PlayerInfo[targetid][pVip] == 0)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Esse Jogador não é VIP!");
- PlayerInfo[targetid][pVip] = 0;
- SavePlayerVip(playerid);
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- format(str,sizeof(str),"Admin %s[%d] tirou seu VIP",Name,playerid);
- format(str2,sizeof(str2),"Você tirou VIP de %s[%d]",Name2,targetid);
- SendClientMessage(playerid,ROSA,str2);
- SendClientMessage(targetid,ROSA,str);
- }
- return 1;
- }
- CMD:desabilitarchat(playerid,params[])
- {
- new Name[MAX_PLAYER_NAME],str[256];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~Admin %s[%d]~r~ Desabilitou Chat principal!",Name,playerid);
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- Muted[i] = 1;
- GameTextForAll(str,3000,6);
- }
- }
- return 1;
- }
- CMD:habilitarchat(playerid,params[])
- {
- new Name[MAX_PLAYER_NAME],str[256];
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~g~Admin %s[%d]~r~Habilitou Chat principal!",Name,playerid);
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- Muted[i] = 0;
- GameTextForAll(str,3000,6);
- }
- }
- return 1;
- }
- CMD:fechareventos(playerid,params[])
- {
- new Name[MAX_PLAYER_NAME],str[256];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- ExistDuel = 0;
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"Admin %s[%d] Fechou todos os eventos!",Name,playerid);
- SendClientMessageToAll(ROSA,str);
- foreach(new i:Player)
- {
- PlayerPlaySound(i,1057,0,0,0);
- if(IsPlayerInDuel[i] == 1)
- {
- IsPlayerInDuel[i] = 0;
- SpawnPlayer(i);
- }
- }
- }
- return 1;
- }
- CMD:setscore(playerid,params[])
- {
- if(IsPlayerAdmin(playerid))
- {
- new score,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[256],str2[256],targetid;
- if(sscanf(params,"ui",targetid,score))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /setscore ID [quantidade]");
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- format(str,sizeof(str),"Admin %s[%d] setou seu score a %i",Name,playerid,score);
- format(str2,sizeof(str2)," Você setou o score de %s[%d] a %i",Name2,targetid,score);
- SendClientMessage(playerid,ROSA,str2);
- SendClientMessage(targetid,VERDE,str);
- SetPlayerScore(targetid,score);
- }
- return 1;
- }
- CMD:calar(playerid,params[])
- {
- new targetid,reason[256],Name[MAX_PLAYER_NAME],str[256],Name2[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- if(sscanf(params,"us[256]",targetid,reason))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /calar [Motivo]");
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- format(str,sizeof(str),"Admin %s[%d] calou %s[%d] Motivo: %s",Name,playerid,Name2,targetid,reason);
- SendClientMessageToAll(COLOR_BRIGHTRED,str);
- Muted[targetid] = 1;
- }
- return 1;
- }
- CMD:descalar(playerid,params[])
- {
- new targetid,Name[MAX_PLAYER_NAME],str[256],Name2[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /descalar ID");
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- format(str,sizeof(str),"Admin %s[%d] descalou %s[%d]",Name,playerid,Name2,targetid);
- SendClientMessageToAll(VERDE,str);
- Muted[targetid] = 0;
- }
- return 1;
- }
- CMD:explodir(playerid,params[])
- {
- new targetid,reason[256],Name[MAX_PLAYER_NAME],str[256],str2[256],Name2[MAX_PLAYER_NAME],str3[256];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- if(sscanf(params,"us[256]",targetid,reason))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /explodir ID [Motivo]");
- if(targetid == INVALID_PLAYER_ID)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] ID Invalido");
- if(IsPlayerInDuel[targetid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Jogador selecionado esta em duelo!");
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- format(str,sizeof(str),"Admin %s[%d] te explodiu. Motivo: %s",Name,playerid,reason);
- format(str2,sizeof(str2),"Você esxplodiu %s[%d]",Name2,targetid);
- format(str3,sizeof(str3),"%s[%d] Foi explodido pelo Admin %s[%d] Motivo: %s",Name2,targetid,Name,playerid,reason);
- SendClientMessage(playerid,ROSA,str2);
- SendClientMessage(targetid,COLOR_BRIGHTRED,str);
- SendClientMessageToAll(COLOR_BRIGHTRED,str3);
- new Float:p[3];
- GetPlayerPos(targetid,p[0],p[1],p[2]);
- CreateExplosion(p[0],p[1],p[2],3,3);
- }
- return 1;
- }
- CMD:banir(playerid,params[])
- {
- new targetid,Name[MAX_PLAYER_NAME],str[256],str2[256],reason[256],Name2[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- if(sscanf(params,"us[256]",targetid,reason))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /banir ID [Motivo]");
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- format(str,sizeof(str),"Admin %s[%d] Baniu %s[%d] Motivo: %s",Name,playerid,Name2,targetid,reason);
- format(str2,sizeof(str2),"Voce foi banido pelo Admin %s[%d] por: %s",Name,playerid,reason);
- SendClientMessageToAll(COLOR_BRIGHTRED,str);
- SendClientMessage(targetid,COLOR_BRIGHTRED,str2);
- BanEx(targetid,reason);
- }
- return 1;
- }
- CMD:ir(playerid,params[])
- {
- new targetid,Name[MAX_PLAYER_NAME],str[256];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /ir ID");
- GetPlayerName(targetid,Name,sizeof(Name));
- format(str,sizeof(str),"Você foi ate %s[%d]",Name,targetid);
- new Float:p[3];
- GetPlayerPos(targetid,p[0],p[1],p[2]);
- SetPlayerPos(playerid,p[0],p[1],p[2]);
- SendClientMessage(playerid,ROSA,str);
- }
- return 1;
- }
- CMD:trazer(playerid,params[])
- {
- new targetid,Name[MAX_PLAYER_NAME],str[256];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /trazer ID");
- if(IsPlayerInDuel[targetid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Jogador selecionado está em duelo!");
- if(targetid == INVALID_PLAYER_ID)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] ID Invalido");
- if(InDM[targetid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Jogador selecionado está no DM Arena!");
- if(InHIC[targetid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Jogador selecionado está no inferno em uma célula DM!");
- if(AFK[targetid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Jogador selecionado está em duelo!");
- if(AFK[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] AFK");
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"Admin %s[%d] Te trouxe a posição dele",Name,playerid);
- new Float:p[3];
- GetPlayerPos(playerid,p[0],p[1],p[2]);
- SetPlayerPos(targetid,p[0],p[1],p[2]);
- SendClientMessage(targetid,VERDE,str);
- }
- return 1;
- }
- CMD:trazert(playerid,params[])
- {
- new Name[MAX_PLAYER_NAME],str[256];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"Admin %s[%d] Trouxe todos a sua posição",Name,playerid);
- SendClientMessageToAll(LARANJA,str);
- new Float:p[3];
- GetPlayerPos(playerid,p[0],p[1],p[2]);
- foreach(new i:Player)
- {
- if(IsPlayerInDuel[i] == 0)
- {
- SetPlayerPos(i,p[0],p[1],p[2]);
- }
- }
- }
- return 1;
- }
- CMD:dargrana(playerid,params[])
- {
- new ammount,targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[256],str2[256];
- if(IsPlayerAdmin(playerid))
- {
- if(sscanf(params,"ui",targetid,ammount))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /dargrana ID [quantidade]");
- if(targetid == INVALID_PLAYER_ID)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] ID Invalido");
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- format(str,sizeof(str),"Admin %s[%d] te deu $%i de grana",Name,playerid,ammount);
- format(str2,sizeof(str2),"voce deu a %s[%d] $%i de grana",Name2,targetid,ammount);
- SendClientMessage(targetid,ROSA,str);
- SendClientMessage(playerid,ROSA,str2);
- GivePlayerMoney(targetid,ammount);
- }
- return 1;
- }
- CMD:dargranat(playerid,params[])
- {
- new ammount,str[256],Name[MAX_PLAYER_NAME];
- if(IsPlayerAdmin(playerid))
- {
- if(sscanf(params,"i",ammount))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /dargranat [quantidade]");
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"Admin %s[%d] deu R$%i para todos",Name,playerid,ammount);
- SendClientMessageToAll(ROSA,str);
- foreach(new i:Player)
- { if(i!=playerid)
- {
- GivePlayerMoney(i,ammount);
- }
- }
- }
- return 1;
- }
- CMD:congelar(playerid,params[])
- {
- new targetid,reason[256],str[256],Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str2[256];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- if(sscanf(params,"us[256]",targetid,reason))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /congelar ID [Motivo]");
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- format(str,sizeof(str),"Admin %s[%d] Te congelou pelo Motivo :%s!",Name,playerid,reason);
- format(str2,sizeof(str2),"Voce congelou %s[%d] Motivo :%s",Name2,targetid,reason);
- SendClientMessage(playerid,ROSA,str2);
- SendClientMessage(targetid,COLOR_BRIGHTRED,str);
- TogglePlayerControllable(targetid,0);
- }
- return 1;
- }
- CMD:descongelar(playerid,params[])
- {
- new targetid,str[256],Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str2[256];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /descongelar ID");
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- format(str,sizeof(str),"Admin %s[%d] Te descongelou!",Name,playerid);
- format(str2,sizeof(str2),"Voce descongelou %s[%d]",Name2,targetid);
- SendClientMessage(playerid,ROSA,str2);
- SendClientMessage(targetid,COLOR_BRIGHTRED,str);
- TogglePlayerControllable(targetid,1);
- }
- return 1;
- }
- CMD:congelart(playerid,params[])
- {
- new Name[MAX_PLAYER_NAME],str[256];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"Admin %s[%d] Congelou Todos!",Name,playerid);
- SendClientMessageToAll(COLOR_BRIGHTRED,str);
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(i!=playerid)
- {
- TogglePlayerControllable(i,0);
- }
- }
- }
- return 1;
- }
- CMD:descongelart(playerid,params[])
- {
- new Name[MAX_PLAYER_NAME],str[256];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"Admin %s[%d] Descongelou Todos!",Name,playerid);
- SendClientMessageToAll(ROSA,str);
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- TogglePlayerControllable(i,1);
- }
- }
- return 1;
- }
- CMD:aviso(playerid,params[])
- {
- new Name[MAX_PLAYER_NAME],reason[256],Name2[MAX_PLAYER_NAME],targetid,str3[256];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- if(sscanf(params,"us[256]",targetid,reason))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /aviso ID [Motivo]");
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- format(str3,sizeof(str3),"Admin %s[%d]Deu aviso ao jogador %s[%d]Motivo: %s",Name,playerid,Name2,targetid,reason);
- SendClientMessageToAll(COLOR_BRIGHTRED,str3);
- }
- return 1;
- }
- CMD:ann(playerid,params[])
- {
- new Name[MAX_PLAYER_NAME],str[256],text[256];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- if(sscanf(params,"s[256]",text))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /anunciar [Texto]");
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"~r~%s",text);
- GameTextForAll(str,3500,6);
- }
- return 1;
- }
- CMD:espiar(playerid,params[])
- {
- new targetid;
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /espiar ID");
- Spectating[playerid] = 1;
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- SetPVarFloat(playerid,"xpos",x); // save X POS
- SetPVarFloat(playerid,"ypos",y); // save Y POS
- SetPVarFloat(playerid,"zpos",z); // save Z POS
- TogglePlayerSpectating(targetid,1);
- PlayerSpectatePlayer(playerid,targetid);
- }
- return 1;
- }
- CMD:pararespiar(playerid,params[])
- {
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- if(Spectating[playerid] == 0)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não esta espiando ninguem!");
- Spectating[playerid] = 0;
- TogglePlayerSpectating(playerid,0);
- SetPlayerPos(playerid,GetPVarFloat(playerid,"xpos"),GetPVarFloat(playerid,"ypos"),GetPVarFloat(playerid,"zpos"));
- }
- return 1;
- }
- CMD:a(playerid,params[])
- {
- new text[256],str[256],Name[MAX_PLAYER_NAME];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- if(sscanf(params,"s[256]",text))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /a [Texto]");
- GetPlayerName(playerid,Name,sizeof(Name));
- format(str,sizeof(str),"* Admin %s[%d]: %s",Name,playerid,text);
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(PlayerInfo[i][pAdmin] == 1)
- {
- SendClientMessage(i,0x0080FFAA,str);
- }
- }
- }
- return 1;
- }
- CMD:kick(playerid,params[])
- {
- new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],reason[256],str[256];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- if(sscanf(params,"us[256]",targetid,reason))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /kick ID [Motivo]");
- GetPlayerName(playerid,Name,sizeof(Name));
- GetPlayerName(targetid,Name2,sizeof(Name2));
- format(str,sizeof(str),"Admin %s[%d] Kickou o Jogador %s[%d] Motivo :%s",Name,playerid,Name2,targetid,reason);
- SendClientMessageToAll(COLOR_BRIGHTRED,str);
- Kick(targetid);
- }
- return 1;
- }
- CMD:infoplayer(playerid,params[])
- {
- new str[256],Name[MAX_PLAYER_NAME],targetid,ip[164];
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /InfoPlayer ID");
- if(targetid == INVALID_PLAYER_ID)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] ID Invalido");
- GetPlayerName(targetid,Name,sizeof(Name));
- GetPlayerIp(playerid,ip,sizeof(ip));
- format(str,sizeof(str),"Nome:%s||ID:%d,Grana:%i||Mortes:%i||Matou:%i||Admin Level:%i||VIP Level:%i||Rank:%s||IP:%i",Name,targetid,GetPlayerMoney(targetid),PlayerInfo[targetid][pKill],PlayerInfo[targetid][pDeath],PlayerInfo[targetid][pAdmin],PlayerInfo[targetid][pVip],GetRankName(targetid),ip);
- SendClientMessage(playerid,LARANJA,str);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement