Advertisement
Guest User

World War [TDM]

a guest
Sep 6th, 2014
1,248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 244.58 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #include <streamer>
  4. #include <YSI\y_ini>
  5. #include <sscanf2>
  6. #include <boxmsg>
  7. #include <foreach>
  8.  
  9. main()
  10. {
  11. print("\n---------------------------");
  12. print(" BATTLELION v1.6 ADVANCED TDM By qazwsx");
  13. print(" Atualizado e Editado com autorização por Cleyson");
  14. print(" [TDM] World War v1.0 ");
  15. print("-----------------------------\n");
  16. }
  17.  
  18.  
  19. #define CONTAS "Contas/%s.ini"
  20.  
  21.  
  22. #define AZUL 0xFF0000FF
  23. #define CINZA 0xAFAFAFAAf
  24. #define VERDE 0x33AA33AA
  25. #define COLOR_BRIGHTRED 0xFF0000AA
  26. #define AMARELO 0xFFAF0255
  27. #define ROSA 0xFF66FFAA
  28. //#define AZUL 0x0080FF55
  29. #define COLOR_TAN 0xBDB76BAA
  30. #define COLOR_PURPLE 0x800080AA
  31. #define BRANCO 0xFFFFFFAA
  32. #define LARANJA 0xFF9900AA
  33. #define COLOR_INDIGO 0x4B00B0AA
  34. #define PRETO 0x00000000
  35. #define CINZAESCURO 0x696969FF
  36. #define AZUL 0xFF0000FF
  37. #define COLOR_NONE_CAPTURE 0x88C9C9CC
  38.  
  39. //Defining Team
  40. #define BRASIL 0
  41. #define FRANCE 1
  42. #define USA 2
  43. #define ARAB 3
  44. #define RUSSIA 4
  45. #define ENGLAND 5
  46. #define NONE 6
  47.  
  48. //Defining Dialogs
  49. #define LOGIN 0
  50. #define RESGISTRO 1
  51. #define VDIALOG 2
  52. #define DIALOGDUEL 3
  53. #define BRIEFCASE 10
  54. #define FEATURES 11
  55. #define VSHOP 12
  56.  
  57.  
  58. //Defining Dialog class
  59. #define DCLASS 6
  60.  
  61. //Defining Class
  62. #define SOLDADOASSAULT 0
  63. #define SOLDADOSNIPER 1
  64. #define MEDICO 7
  65. #define MECANICO 2
  66. #define PILOTO 3
  67. #define BOMBARDEIRO 6
  68. #define CAPITAO 4
  69. #define GENERAL 5
  70.  
  71.  
  72.  
  73. //Defining name of captures zone
  74. #define QUARRY 0
  75. #define UFO 1
  76. #define BIGEAR 2
  77. #define OILFIELD 3
  78. #define AREA51 4
  79. #define ABANDONED 5
  80. #define SNAKE 6
  81. #define BASIN 7
  82. #define BEACHSIDE 8
  83. #define RESTAURANT 9
  84. #define GAS 10
  85. #define STADIUM 11
  86. #define BRIDGE 12
  87. #define MOTEL 13
  88. #define STATION 14
  89. #define STUDIO 15
  90. #define PROJECT 16
  91. #define AIRPORT 17
  92. #define SFSTADIUM 18
  93. #define GOLF 19
  94.  
  95. //Defining the weapons name in a duel
  96. #define COMBAT 0
  97. #define M4 1
  98. #define SHOTGUN 2
  99. #define DEAGLE 3
  100.  
  101. new MSGs[7][128] =
  102. {
  103. "Pessoal por favor leiam as /regras ! ta bom ?",
  104. "Vocês podem saber mais em /comandos ! ;)",
  105. "Ta entendendo nada do Word Wars ? leia /objetivo",
  106. "Ola povo eu sou o BOT tom se quizerem conversar e so me chamar",
  107. "Pessoal por favor leiam as /regras ! ta bom ?",
  108. "Quer duelar com alguem a sos ? de uma olha do /ajudax1",
  109. "World Wars é a nova era dos TDMs confira nossa fan page /facebook"
  110. };
  111.  
  112. enum pInfo
  113. {
  114. pPass,
  115. pCash,
  116. pKill,
  117. pDeath,
  118. pScores,
  119. pAdmin,
  120. Float:LastSpec,
  121. pVip
  122. }
  123. new PlayerInfo[MAX_PLAYERS][pInfo];
  124. new Logged[MAX_PLAYERS];
  125.  
  126.  
  127. //Admin Info Variable
  128. new Spectating[MAX_PLAYERS];
  129. new Duty[MAX_PLAYERS];
  130.  
  131. //Anti Spam Stuff
  132. new Muted[MAX_PLAYERS];
  133.  
  134. new AExplode[MAX_PLAYERS];
  135.  
  136. new gPais[MAX_PLAYERS];
  137.  
  138. new gClasse[MAX_PLAYERS];
  139.  
  140. //Brasil random spawn
  141. new Float:BrasilSpawn[][]=
  142. {
  143. {-144.0366,1222.8787,19.8992},
  144. {-91.3313,1189.2188,19.7422},
  145. {-144.3653,1179.3804,19.7422}
  146. };
  147.  
  148. //USA Random Spawn
  149. new Float:USASpawn[][]=
  150. {
  151. {-273.9471,2643.1785,62.7865},
  152. {-236.2266,2656.1907,62.6463},
  153. {-227.3011,2710.0374,62.9843}
  154. };
  155.  
  156. //France Random Spawn
  157. new Float:FranceSpawn[][]=
  158. {
  159. {-314.1872,1774.2017,43.6406},
  160. {-308.0606,1772.3461,43.6406},
  161. {-312.4215,1799.0254,43.6331}
  162. };
  163.  
  164. //Arab Random Spawn
  165. new Float:ArabSpawn[][]=
  166. {
  167. {-786.8586,1563.0490,27.1172},
  168. {-744.7610,1554.8470,28.0025},
  169. {-768.0215,1557.1635,27.1069}
  170. };
  171.  
  172. //Russia Random Spawn
  173. new Float:RussiaSpawn[][]=
  174. {
  175. {-1480.1362,2593.1069,55.8359},
  176. {-1514.6189,2592.1829,55.8359},
  177. {-1520.1665,2567.8599,55.8359}
  178. };
  179.  
  180.  
  181. //England Random spawn
  182. new Float:EnglandSpawn[][]=
  183. {
  184. {1026.0166,2247.7397,10.8203},
  185. {1044.3496,2233.5847,10.8203},
  186. {1062.1794,2206.4993,10.8203}
  187. };
  188.  
  189. //Hell in a Cell random spawn
  190. new Float:HICSpawn[][]=
  191. {
  192. {-846.7576,2629.9792,133.3514},
  193. {-826.0588,2578.4988,135.8853},
  194. {-810.3622,2596.8772,131.2852}
  195. };
  196.  
  197. //Hell in a cell
  198. new InHIC[MAX_PLAYERS];
  199.  
  200. //Mount Chiliad DM
  201. new InDM[MAX_PLAYERS];
  202.  
  203. new UsedBomb[MAX_PLAYERS];
  204. new BombTimer[MAX_PLAYERS];
  205. new BombPlant[MAX_PLAYERS];
  206.  
  207.  
  208.  
  209. //Spawn Kill
  210. new AntiSpawnKill[MAX_PLAYERS];
  211. new SpawnKill[MAX_PLAYERS];
  212.  
  213. //Killstreak system
  214. new KillStreak[MAX_PLAYERS];
  215.  
  216. //Briefcase
  217. new BrasilBriefcase;
  218. new RussianBriefcase;
  219. new FranceBriefcase;
  220. new EnglandBriefcase;
  221. new ArabBriefcase;
  222. new USABriefcase;
  223.  
  224. // CAPTURES ZONE STUFF
  225. new Zone[30];
  226. new CP[30];
  227. new IsPlayerCapturing[MAX_PLAYERS][30];
  228. new Captured[MAX_PLAYERS][30];
  229. new tCheck[30];
  230. new UnderAttack[30];
  231. new timer[MAX_PLAYERS][30];
  232.  
  233.  
  234. //Duelling stuff
  235. new ExistDuel;
  236. new UsedWeaps[MAX_PLAYERS];
  237. new DuelMaker[MAX_PLAYERS];
  238. new Configured[MAX_PLAYERS];
  239. new IsPlayerInDuel[MAX_PLAYERS];
  240.  
  241. //AFK SYSTEM
  242. new AFK[MAX_PLAYERS];
  243. new AFKTimer[MAX_PLAYERS];
  244.  
  245. //Used VSHOP
  246. new VShop[MAX_PLAYERS];
  247.  
  248. new HealedTeam[MAX_PLAYERS];
  249. new ArmoredTeam[MAX_PLAYERS];
  250.  
  251. new Bomb;
  252.  
  253. //Zone
  254. new Brasilzone;
  255. new USAzone;
  256. new Arabzone;
  257. new Francezone;
  258. new Russiazone;
  259. new Englandzone;
  260.  
  261. //Textdraw
  262. new Text:Brasiltext;
  263. new Text:USAtext;
  264. new Text:Russiatext;
  265. new Text:Englandtext;
  266. new Text:Francetext;
  267. new Text:Arabtext;
  268. new Text:web;
  269. new Text:server;
  270.  
  271. new Text:NomeServer;
  272. new Text:USAteam;
  273. new Text:Arabteam;
  274. new Text:Englandteam;
  275. new Text:Franceteam;
  276. new Text:Brasilteam;
  277. new Text:Russiateam;
  278.  
  279.  
  280. stock udb_hash(buf[])
  281. {
  282. new length=strlen(buf);
  283. new s1 = 1;
  284. new s2 = 0;
  285. new n;
  286. for (n=0; n<length; n++)
  287. {
  288. s1 = (s1 + buf[n]) % 65521;
  289. s2 = (s2 + s1) % 65521;
  290. }
  291. return (s2 << 16) + s1;
  292. }
  293.  
  294. stock UserPath(playerid)
  295. {
  296. new file[128],Name[MAX_PLAYER_NAME];
  297. GetPlayerName(playerid,Name,sizeof(Name));
  298. format(file,sizeof(file),CONTAS,Name);
  299. return file;
  300. }
  301.  
  302.  
  303. forward LoadUser_Data(playerid,name[],value[]);
  304. public LoadUser_Data(playerid,name[],value[])
  305. {
  306. INI_Int("Cash",PlayerInfo[playerid][pCash]);
  307. INI_Int("Password",PlayerInfo[playerid][pPass]);
  308. INI_Int("Kill",PlayerInfo[playerid][pKill]);
  309. INI_Int("Death",PlayerInfo[playerid][pDeath]);
  310. INI_Int("Level",PlayerInfo[playerid][pAdmin]);
  311. INI_Int("VIP",PlayerInfo[playerid][pVip]);
  312. INI_Int("Scores",PlayerInfo[playerid][pScores]);
  313. INI_Float("Last Spec",PlayerInfo[playerid][LastSpec]);
  314. return 1;
  315. }
  316.  
  317.  
  318. public OnGameModeInit()
  319. {
  320. UsePlayerPedAnims();
  321. //DisableInteriorEnterExits();
  322. SetTimer("RandomMSGs",180000,1);
  323. SetGameModeText(" World War [TDM]");
  324. //OilField
  325. tCheck[OILFIELD] = NONE;
  326. CP[OILFIELD] = CreateDynamicCP(221.2384,1420.9762,10.5859,3,-1,-1,-1,100.0);
  327. Zone[OILFIELD] = GangZoneCreate(321.0501,1324.8580,71.2471,1522.6896);
  328. //Hunter Quarry
  329. tCheck[QUARRY] = NONE;
  330. CP[QUARRY] = CreateDynamicCP(621.7979,890.8572,-41.1028,3,-1,-1,-1,100.0);
  331. Zone[QUARRY] = GangZoneCreate(793.0861,1013.4042,370.4387,801.2401);
  332. //Big Ear
  333. tCheck[BIGEAR] = NONE;
  334. CP[BIGEAR] = CreateDynamicCP(-350.0614,1583.5765,76.4040,3,-1,-1,-1,100.0);
  335. Zone[BIGEAR] = GangZoneCreate(-240.8311,1473.4460,-402.6071,1620.4480);
  336. //UFO Zone
  337. tCheck[UFO] = NONE;
  338. CP[UFO] = CreateDynamicCP(4.2395,1369.3943,9.1719,3,-1,-1,-1,100.0);
  339. Zone[UFO] = GangZoneCreate(-51.9826,1312.5043,43.7309,1448.0228);
  340. //Area 51
  341. tCheck[AREA51] = NONE;
  342. CP[AREA51] = CreateDynamicCP(243.8955,1822.3300,4.7109,3,-1,-1,-1,100.0);
  343. Zone[AREA51] = GangZoneCreate(93.5300,2073.3130,384.3928,1810.8533);
  344. //Abandoned Airstrip
  345. tCheck[ABANDONED] = NONE;
  346. CP[ABANDONED] = CreateDynamicCP(403.5271,2448.4187,16.5000,3,-1,-1,-1,100.0);
  347. Zone[ABANDONED] = GangZoneCreate(466.5181,2564.1472,-90.4305,2442.8879);
  348. //Snake Farm
  349. tCheck[SNAKE] = NONE;
  350. CP[SNAKE] = CreateDynamicCP(-36.2617,2350.2056,24.3026,3,-1,-1,-1,100.0);
  351. Zone[SNAKE] = GangZoneCreate(4.1391,2303.6960,-66.5679,2392.0767);
  352. //Basin
  353. tCheck[BASIN] = NONE;
  354. CP[BASIN] = CreateDynamicCP(-597.1797,1963.8027,7.0000,3,-1,-1,-1,100.0);
  355. Zone[BASIN] = GangZoneCreate(-625.4212,1827.3645,-964.8021,2143.4541);
  356. //Beach Side
  357. tCheck[BEACHSIDE] = NONE;
  358. CP[BEACHSIDE] = CreateDynamicCP(-688.4477,936.8319,13.6328,3,-1,-1,-1,100.0);
  359. Zone[BEACHSIDE] = GangZoneCreate(-722.0542,919.9863,-649.3535,988.3495);
  360. //Army Restaurant
  361. tCheck[RESTAURANT] = NONE;
  362. CP[RESTAURANT] = CreateDynamicCP(-551.0908,2594.7429,53.9348,3,-1,-1,-1,100.0);
  363. Zone[RESTAURANT] = GangZoneCreate(-491.6069,2526.8638,-607.8930,2617.6926);
  364. //Gas Station
  365. tCheck[GAS] = NONE;
  366. CP[GAS] = CreateDynamicCP(664.8769,1701.0980,7.1949,3,-1,-1,-1,100.0);
  367. Zone[GAS] = GangZoneCreate(548.5383,1599.5879,669.9327,1785.8500);
  368. //Las Venturas Race Stadium
  369. tCheck[STADIUM] = NONE;
  370. CP[STADIUM] = CreateDynamicCP(1099.8395,1454.6685,12.5469,3,-1,-1,-1,100.0);
  371. Zone[STADIUM] = GangZoneCreate(1016.4172,1382.8154,1174.7744,1683.2684);
  372. //Golden Gate Bridge
  373. tCheck[BRIDGE] = NONE;
  374. CP[BRIDGE] = CreateDynamicCP(-2657.0322,1935.6600,64.3639,3,-1,-1,-1,100.0);
  375. Zone[BRIDGE] = GangZoneCreate(-2720.5789,2184.3894,-2663.5535,1488.5360);
  376. //Motel
  377. tCheck[MOTEL] = NONE;
  378. CP[MOTEL] = CreateDynamicCP(-808.0388,2759.4426,46.0000,3,-1,-1,-1,100.0);
  379. Zone[MOTEL] = GangZoneCreate(-701.8905,2733.3696,-914.1039,2788.2644);
  380. //San fierro station
  381. tCheck[STATION] = NONE;
  382. CP[STATION] = CreateDynamicCP(-1973.1788,117.6069,27.6875, 3, -1, -1, -1, 100.0);
  383. Zone[STATION] = GangZoneCreate(-2005.1421,219.8342,-1910.9355,-20.6220);
  384. //San fierro Music studio
  385. tCheck[STUDIO] = NONE;
  386. CP[STUDIO] = CreateDynamicCP(-2521.1257,-624.8945,132.7839, 3, -1, -1, -1, 100.0);
  387. Zone[STUDIO] = GangZoneCreate(-2458.7478,-589.5889,-2568.0571,-717.6374);
  388. //Construction project near doherty in san fierro
  389. tCheck[PROJECT] = NONE;
  390. CP[PROJECT] = CreateDynamicCP(-2060.4949,308.2476,35.3623, 3, -1, -1, -1, 100.0);
  391. Zone[PROJECT] = GangZoneCreate(-2150.8040,112.5782,-2013.4456,311.5277);
  392. //Briefcase
  393. BrasilBriefcase = CreatePickup(1210,3,-132.1471,1163.9203,19.7422,0);
  394. RussianBriefcase = CreatePickup(1210,3,-1486.2881,2574.4629,55.8359,0);
  395. ArabBriefcase = CreatePickup(1210,3,-795.6211,1556.9738,27.1244,0);
  396. FranceBriefcase = CreatePickup(1210,3,-320.6973,1800.5728,42.7813,0);
  397. EnglandBriefcase = CreatePickup(1210,3,1052.5883,2255.3054,10.8203,0);
  398. USABriefcase = CreatePickup(1210,3,-265.9566,2606.6392,62.8582,0);
  399. AddPlayerClass(293,-144.0366,1222.8787,19.8992,176.9380,0,0,0,0,0,0); // Brasilpawn1
  400. AddPlayerClass(285,-314.1872,1774.2017,43.6406,137.0719,0,0,0,0,0,0); // francespawn
  401. AddPlayerClass(179,-786.8586,1563.0490,27.1172,1.3842,0,0,0,0,0,0); // arabspawn1
  402. AddPlayerClass(287,-273.9471,2643.1785,62.7865,182.0460,0,0,0,0,0,0); // usaspawn1
  403. AddPlayerClass(111,-1480.1362,2593.1069,55.8359,354.9003,0,0,0,0,0,0); // russiaspawn1
  404. AddPlayerClass(126,1026.0166,2247.7397,10.8203,79.4094,0,0,0,0,0,0); // englandspawn1
  405.  
  406. //textdraw for class selection
  407. USAteam = TextDrawCreate(253.5 ,229 , "EUA");
  408. TextDrawFont(USAteam , 3);
  409. TextDrawLetterSize(USAteam , 1.8, 2.8);
  410. TextDrawColor(USAteam , AZUL);
  411. TextDrawSetOutline(USAteam , false);
  412. TextDrawSetProportional(USAteam , true);
  413. TextDrawSetShadow(USAteam , 1);
  414.  
  415. Arabteam = TextDrawCreate(275.5 ,220 , "Arabia");
  416. TextDrawFont(Arabteam , 3);
  417. TextDrawLetterSize(Arabteam , 1.8, 2.8);
  418. TextDrawColor(Arabteam , 0xe6b947FF);
  419. TextDrawSetOutline(Arabteam , false);
  420. TextDrawSetProportional(Arabteam , true);
  421. TextDrawSetShadow(Arabteam , 1);
  422.  
  423. Englandteam = TextDrawCreate(259.5 ,227 , "Inglaterra");
  424. TextDrawFont(Englandteam , 3);
  425. TextDrawLetterSize(Englandteam , 1.8, 2.8);
  426. TextDrawColor(Englandteam , BRANCO);
  427. TextDrawSetOutline(Englandteam , false);
  428. TextDrawSetProportional(Englandteam , true);
  429. TextDrawSetShadow(Englandteam , 1);
  430.  
  431. Brasilteam = TextDrawCreate(256.5 ,234 , "Brasil");
  432. TextDrawFont(Brasilteam , 3);
  433. TextDrawLetterSize(Brasilteam , 1.8, 2.8);
  434. TextDrawColor(Brasilteam , VERDE);
  435. TextDrawSetOutline(Brasilteam , false);
  436. TextDrawSetProportional(Brasilteam , true);
  437. TextDrawSetShadow(Brasilteam , 1);
  438.  
  439. Russiateam = TextDrawCreate(286.5 ,239 , "Russia");
  440. TextDrawFont(Russiateam , 3);
  441. TextDrawLetterSize(Russiateam , 1.8, 2.8);
  442. TextDrawColor(Russiateam , 0x6c45edFF);
  443. TextDrawSetOutline(Russiateam , false);
  444. TextDrawSetProportional(Russiateam , true);
  445. TextDrawSetShadow(Russiateam , 1);
  446.  
  447. Franceteam = TextDrawCreate(272.5 ,237 , "Franca");
  448. TextDrawFont(Franceteam , 3);
  449. TextDrawLetterSize(Franceteam , 1.8, 2.8);
  450. TextDrawColor(Franceteam , 0xf5b14cFF);
  451. TextDrawSetOutline(Franceteam , false);
  452. TextDrawSetProportional(Franceteam , true);
  453. TextDrawSetShadow(Franceteam , 1);
  454.  
  455. NomeServer = TextDrawCreate(7.0, 431.0, "World War");
  456. TextDrawBackgroundColor(NomeServer, 255);
  457. TextDrawFont(NomeServer, 3);
  458. TextDrawLetterSize(NomeServer, 0.5, 1.2);
  459. TextDrawColor(NomeServer, -1);
  460. TextDrawSetOutline(NomeServer, true);
  461. TextDrawSetProportional(NomeServer, true);
  462.  
  463. //Simple AFK Zone
  464. CreateObject(2627, 1833.80237, -1309.74817, 86.52841, 0.00000, 0.00000, -91.13998);
  465. CreateObject(2627, 1833.75708, -1306.76855, 86.52841, 0.00000, 0.00000, -91.13998);
  466. CreateObject(2627, 1833.95605, -1302.21863, 86.52841, 0.00000, 0.00000, -91.13998);
  467. CreateObject(2627, 1834.17651, -1297.82275, 86.52841, 0.00000, 0.00000, -91.13998);
  468. CreateObject(2628, 1828.71716, -1297.77026, 86.57931, 0.00000, 0.00000, 0.00000);
  469. CreateObject(2627, 1834.35278, -1291.81873, 86.52841, 0.00000, 0.00000, -91.13998);
  470. CreateObject(2627, 1834.58728, -1285.46533, 86.52841, 0.00000, 0.00000, -91.13998);
  471. CreateObject(2638, 1811.61621, -1300.36487, 87.11104, 0.00000, 0.00000, 82.19997);
  472. CreateObject(2638, 1811.82275, -1298.10925, 87.11104, 0.00000, 0.00000, 86.64002);
  473. CreateObject(955, 1818.10559, -1288.56958, 86.82449, 0.00000, 0.00000, -94.49998);
  474. CreateObject(2638, 1811.98132, -1295.98303, 87.11104, 0.00000, 0.00000, 86.64002);
  475. CreateObject(638, 1817.90625, -1300.46423, 87.28287, 0.00000, 0.00000, 0.00000);
  476. CreateObject(638, 1817.90479, -1296.23669, 87.28287, 0.00000, 0.00000, 0.00000);
  477. CreateObject(638, 1817.83264, -1292.19458, 87.28287, 0.00000, 0.00000, 0.00000);
  478. CreateObject(638, 1815.43408, -1301.38672, 87.28287, 0.00000, 0.00000, -93.23997);
  479. CreateObject(638, 1811.68274, -1301.32129, 87.28287, 0.00000, 0.00000, -93.23997);
  480. CreateObject(3051, 1785.01843, -1301.55505, 92.84725, 0.00000, 0.00000, -37.92000);
  481. CreateObject(3051, 1785.92236, -1301.52686, 92.84725, 0.00000, 0.00000, -37.92000);
  482. CreateObject(3051, 1787.11194, -1301.53259, 92.84725, 0.00000, 0.00000, -37.92000);
  483. CreateObject(3051, 1788.06897, -1301.52136, 92.84725, 0.00000, 0.00000, -37.92000);
  484. CreateObject(3051, 1786.51245, -1301.54260, 92.84725, 0.00000, 0.00000, -37.92000);
  485. CreateObject(3051, 1784.88428, -1301.55566, 92.84725, 0.00000, 0.00000, -37.92000);
  486.  
  487. //USA Base
  488. CreateObject(3749, -143.44405, 2635.68823, 68.13203, 0.00000, 0.00000, 92.88000);
  489. CreateObject(987, -141.83218, 2645.61670, 62.69147, 0.00000, 0.00000, 92.04002);
  490. CreateObject(987, -142.22502, 2657.45898, 62.20262, 0.00000, 0.00000, 92.04002);
  491. CreateObject(987, -142.18954, 2668.00195, 61.35778, 0.00000, 0.00000, 91.98003);
  492. CreateObject(987, -141.79443, 2678.38794, 61.35412, 0.00000, 0.00000, 91.98003);
  493. CreateObject(987, -142.57678, 2690.17065, 61.32923, 0.00000, 0.00000, 91.98003);
  494. CreateObject(987, -143.06248, 2701.94238, 61.19660, 0.00000, 0.00000, 91.98003);
  495. CreateObject(987, -143.41924, 2713.92212, 60.93741, 0.00000, 0.00000, 91.98003);
  496. CreateObject(987, -143.34697, 2725.80078, 60.49798, 0.00000, 0.00000, 30.06002);
  497. CreateObject(987, -156.02478, 2597.39209, 57.16665, 0.00000, 0.00000, 59.28001);
  498. CreateObject(987, -149.81326, 2607.44824, 58.15889, 0.00000, 0.00000, 74.28008);
  499. CreateObject(987, -146.67737, 2618.64868, 60.52200, 0.00000, 0.00000, 73.50009);
  500. CreateObject(987, -165.85417, 2590.69507, 55.71833, 0.00000, 0.00000, 38.94001);
  501. CreateObject(987, -177.00473, 2589.02026, 55.29672, 0.00000, 0.00000, 10.56000);
  502. CreateObject(987, -188.06581, 2590.29858, 55.05135, 0.00000, 0.00000, -5.28000);
  503. CreateObject(987, -199.62314, 2589.95532, 58.08915, 0.00000, 0.00000, -5.28000);
  504. CreateObject(987, -211.28972, 2591.06689, 60.88651, 0.00000, 0.00000, -4.86000);
  505. CreateObject(987, -162.02985, 2593.69336, 55.71833, 0.00000, 0.00000, 38.88000);
  506. CreateObject(987, -223.09227, 2591.89185, 60.88651, 0.00000, 0.00000, -4.86000);
  507. CreateObject(987, -234.82062, 2592.21265, 60.88651, 0.00000, 0.00000, -3.84000);
  508. CreateObject(987, -245.82745, 2593.21802, 60.88651, 0.00000, 0.00000, -4.86000);
  509. CreateObject(3627, -203.26088, 2725.19800, 61.66415, 0.00000, 0.00000, 181.37987);
  510. CreateObject(3749, -380.88376, 2693.08740, 68.11394, 0.00000, 0.00000, 29.34000);
  511. CreateObject(987, -398.70822, 2695.76147, 62.81682, 0.00000, 0.00000, -37.43997);
  512. CreateObject(987, -409.68478, 2700.41797, 61.98143, 0.00000, 0.00000, -21.89997);
  513. CreateObject(987, -417.74490, 2702.86450, 60.68196, 0.00000, 0.00000, -17.87997);
  514. CreateObject(987, -373.50537, 2699.80151, 61.25262, 0.00000, 0.00000, 129.83995);
  515. CreateObject(987, -381.65036, 2709.15552, 61.25262, 0.00000, 0.00000, 135.65994);
  516. CreateObject(987, -390.48630, 2717.64966, 61.25262, 0.00000, 0.00000, 148.19997);
  517. CreateObject(987, -394.13882, 2719.89575, 61.25262, 0.00000, 0.00000, 150.47995);
  518. CreateObject(7091, -381.97327, 2694.81104, 69.92089, 0.00000, 0.00000, 129.77998);
  519. CreateObject(18850, -227.94589, 2726.39502, 50.21958, 0.00000, 0.00000, 90.59999);
  520. CreateObject(987, -297.66248, 2588.19263, 59.85277, 0.00000, 0.00000, -2.22000);
  521. CreateObject(987, -297.64285, 2588.18872, 59.85277, 0.00000, 0.00000, -2.22000);
  522. CreateObject(987, -306.16199, 2596.69849, 60.95236, 0.00000, 0.00000, -38.27998);
  523. CreateObject(987, -315.23065, 2603.90649, 61.73264, 0.00000, 0.00000, -38.27998);
  524. CreateObject(987, -323.86050, 2611.83911, 62.54288, 0.00000, 0.00000, -38.27998);
  525. CreateObject(987, -325.66202, 2623.85156, 62.54288, 0.00000, 0.00000, -74.58001);
  526. CreateObject(987, -326.67789, 2626.73633, 62.54288, 0.00000, 0.00000, -74.58001);
  527. CreateObject(987, -135.10069, 2730.50928, 66.28409, 0.00000, 0.00000, 31.08002);
  528. CreateObject(987, -126.03819, 2736.37158, 66.28409, 0.00000, 0.00000, 87.96001);
  529. CreateObject(987, -124.55650, 2748.96436, 66.28409, 0.00000, 0.00000, 87.96001);
  530. CreateObject(987, -122.82605, 2762.12793, 66.28409, 0.00000, 0.00000, 87.96001);
  531. CreateObject(987, -386.86578, 2686.10645, 62.81682, 0.00000, 0.00000, -65.27998);
  532. CreateObject(987, -383.78967, 2679.23096, 63.74162, 0.00000, 0.00000, -62.33996);
  533. CreateObject(19361, -253.93460, 2605.59644, 62.86180, 0.00000, 0.00000, 91.56001);
  534. CreateObject(1491, -252.15242, 2605.47998, 61.85031, 0.00000, 0.00000, 0.00000);
  535. CreateObject(1491, -250.65959, 2605.53906, 61.85031, 0.00000, 0.00000, 0.00000);
  536. CreateObject(19361, -247.39757, 2605.73560, 62.86180, 0.00000, 0.00000, 91.56001);
  537. CreateObject(19361, -246.83383, 2605.78613, 62.86180, 0.00000, 0.00000, 91.56001);
  538. CreateObject(19361, -245.42514, 2601.06030, 62.86180, 0.00000, 0.00000, 180.66011);
  539. CreateObject(19361, -245.47653, 2604.29126, 62.86180, 0.00000, 0.00000, 180.66011);
  540. CreateObject(19361, -245.38631, 2598.03003, 62.86180, 0.00000, 0.00000, 180.66011);
  541. CreateObject(19361, -245.42514, 2601.06030, 62.86180, 0.00000, 0.00000, 180.66011);
  542. CreateObject(19361, -245.35898, 2595.27832, 62.86180, 0.00000, 0.00000, 180.66011);
  543. CreateObject(19390, -250.64673, 2605.63257, 63.28755, 0.00000, 0.00000, 91.97999);
  544. CreateObject(19390, -248.34424, 2593.27930, 64.14415, 0.00000, 0.00000, 91.97999);
  545. CreateObject(19361, -253.79369, 2605.58350, 62.86180, 0.00000, 0.00000, 91.56001);
  546. CreateObject(14805, -249.78220, 2599.12305, 62.31296, 0.00000, 0.00000, -84.72009);
  547. CreateObject(3094, -247.88042, 2598.20850, 61.84872, 0.00000, 0.00000, 4.32000);
  548. CreateObject(19361, -245.37849, 2595.31055, 66.32496, 0.00000, 0.00000, 181.08009);
  549. CreateObject(19361, -245.47380, 2598.46436, 66.32496, 0.00000, 0.00000, 181.08009);
  550. CreateObject(19361, -245.49577, 2601.54565, 66.32496, 0.00000, 0.00000, 181.08009);
  551. CreateObject(19361, -245.55092, 2604.01270, 66.32496, 0.00000, 0.00000, 181.08009);
  552. CreateObject(19361, -251.55960, 2593.18579, 64.14163, 0.00000, 0.00000, 91.56001);
  553. CreateObject(19361, -245.67992, 2593.33765, 64.14163, 0.00000, 0.00000, 91.56001);
  554. CreateObject(1491, -249.92465, 2593.33325, 62.38810, 0.00000, 0.00000, 0.00000);
  555. CreateObject(1491, -248.47728, 2593.38940, 62.38810, 0.00000, 0.00000, 0.00000);
  556. CreateObject(987, -288.83215, 2593.81885, 59.85277, 0.00000, 0.00000, 7.50000);
  557. CreateObject(987, -299.54468, 2591.86401, 59.85277, 0.00000, 0.00000, 10.86000);
  558. AddStaticVehicleEx(470, -314.4819, 1515.0563, 74.6196, 1.0800, -1, -1, 150);
  559. AddStaticVehicleEx(470, -317.8907, 1514.9899, 74.6196, 0.4200, -1, -1, 150);
  560. AddStaticVehicleEx(470, -321.1856, 1515.1089, 74.6196, 0.4200, -1, -1, 150);
  561. AddStaticVehicleEx(470, -324.3321, 1515.3081, 74.6196, 0.2400, -1, -1, 150);
  562. AddStaticVehicleEx(470, -327.7700, 1515.1003, 74.6196, 0.4200, -1, -1, 150);
  563. AddStaticVehicleEx(461, -199.1041, 2739.2107, 62.0206, 181.0200, -1, -1, 150);
  564. AddStaticVehicleEx(461, -201.6959, 2738.5757, 62.0206, 181.0200, -1, -1, 150);
  565. AddStaticVehicleEx(461, -203.8460, 2738.5190, 62.0206, 181.0200, -1, -1, 150);
  566. AddStaticVehicleEx(470, -199.2373, 2729.4673, 61.6772, 0.0000, -1, -1, 150);
  567. AddStaticVehicleEx(470, -202.3681, 2714.7815, 61.6772, 87.0600, -1, -1, 150);
  568. AddStaticVehicleEx(470, -201.6902, 2726.1926, 61.6772, 87.0600, -1, -1, 150);
  569. AddStaticVehicleEx(520, -228.2592, 2728.7087, 63.0481, 3.0600, -1, -1, 150);
  570. AddStaticVehicleEx(470, -237.5010, 2609.3389, 61.8505, 0.3600, -1, -1, 100);
  571. AddStaticVehicleEx(470, -231.5939, 2609.1050, 61.8505, 0.0000, -1, -1, 100);
  572. AddStaticVehicleEx(470, -243.5108, 2609.3801, 61.8505, 0.3600, -1, -1, 100);
  573. AddStaticVehicleEx(432, -212.4549, 2608.5825, 61.6847, 0.0000, -1, -1, 100);
  574. AddStaticVehicleEx(432, -205.9130, 2608.3987, 61.6847, 0.0000, -1, -1, 100);
  575. AddStaticVehicleEx(432, -198.9789, 2607.8083, 61.6847, 0.0000, -1, -1, 100);
  576. AddStaticVehicleEx(520, -221.3014, 2602.7019, 62.2515, 0.0000, -1, -1, 100);
  577. AddStaticVehicleEx(447, -250.1350, 2582.2188, 63.4356, -180.8400, -1, -1, 100);
  578. AddStaticVehicleEx(447, -258.5356, 2583.6543, 63.4356, -180.8400, -1, -1, 100);
  579. AddStaticVehicleEx(447, -267.2936, 2584.8599, 63.4356, -180.8999, -1, -1, 100);
  580. AddStaticVehicleEx(447, -277.3560, 2585.8018, 63.4356, -180.8999, -1, -1, 100);
  581. AddStaticVehicleEx(425, -257.2518, 2616.3379, 62.5419, 90.4800, -1, -1, 100);
  582. AddStaticVehicleEx(425, -277.8891, 2617.1660, 62.5419, 93.0000, -1, -1, 100);
  583. AddStaticVehicleEx(425, -290.2361, 2603.2656, 62.5419, 187.3200, -1, -1, 100);
  584. AddStaticVehicleEx(425, -301.8882, 2602.1050, 62.5419, 187.3200, -1, -1, 100);
  585. AddStaticVehicleEx(425, -303.3350, 2618.5242, 62.5419, 93.0000, -1, -1, 100);
  586. AddStaticVehicleEx(520, -158.7146, 2731.9724, 61.8970, 83.9400, -1, -1, 100);
  587. AddStaticVehicleEx(520, -159.3616, 2716.4102, 61.8970, 83.9400, -1, -1, 100);
  588. AddStaticVehicleEx(520, -160.4530, 2703.3176, 61.8970, 89.5200, -1, -1, 100);
  589. AddStaticVehicleEx(520, -159.3748, 2687.0505, 61.8970, 89.3400, -1, -1, 100);
  590. AddStaticVehicleEx(520, -158.9906, 2670.8633, 62.5717, 89.2800, -1, -1, 100);
  591. AddStaticVehicleEx(520, -159.9136, 2662.5676, 63.2620, 89.1000, -1, -1, 100);
  592.  
  593. //base map Brasil
  594. CreateObject(3749, -117.94898, 1245.98218, 21.43558, 0.00000, 0.00000, 9.24000);
  595. CreateObject(987, -108.35272, 1245.64587, 14.37146, 0.00000, 0.00000, 7.02000);
  596. CreateObject(987, -97.25953, 1246.63721, 13.61889, 0.00000, 0.00000, 4.02000);
  597. CreateObject(987, -85.30552, 1247.45581, 13.53324, 0.00000, 0.00000, 4.02000);
  598. CreateObject(987, -73.46326, 1247.76843, 13.53324, 0.00000, 0.00000, 6.84000);
  599. CreateObject(987, -61.49105, 1248.84827, 13.26093, 0.00000, 0.00000, 6.84000);
  600. CreateObject(987, -49.82125, 1249.69116, 12.83415, 0.00000, 0.00000, 7.02000);
  601. CreateObject(987, -37.00455, 1250.05762, 12.01260, 0.00000, 0.00000, 7.02000);
  602. CreateObject(987, -25.09912, 1250.79309, 10.55881, 0.00000, 0.00000, 2.04000);
  603. CreateObject(987, -13.79858, 1251.26440, 10.55881, 0.00000, 0.00000, 2.22000);
  604. CreateObject(987, -3.47302, 1252.07800, 10.55881, 0.00000, 0.00000, -13.14000);
  605. CreateObject(987, -40.00960, 1249.76794, 12.01260, 0.00000, 0.00000, 7.02000);
  606. CreateObject(987, 7.72754, 1249.54224, 10.55881, 0.00000, 0.00000, -13.20000);
  607. CreateObject(987, 19.00318, 1246.74304, 12.20000, 0.00000, 0.00000, -13.20000);
  608. CreateObject(987, 30.53748, 1243.99316, 14.56580, 0.00000, 0.00000, -13.08000);
  609. CreateObject(987, 42.13554, 1241.22888, 14.56580, 0.00000, 0.00000, -13.08000);
  610. CreateObject(987, 53.16895, 1238.85339, 14.56580, 0.00000, 0.00000, -21.78001);
  611. CreateObject(987, 64.02823, 1234.20239, 16.16684, 0.00000, 0.00000, -21.48001);
  612. CreateObject(987, 74.21346, 1230.42627, 16.16684, 0.00000, 0.00000, -24.48001);
  613. CreateObject(987, 85.32027, 1224.47559, 17.63095, 0.00000, 0.00000, -32.16001);
  614. CreateObject(987, 95.37110, 1218.02637, 17.63095, 0.00000, 0.00000, -52.37999);
  615. CreateObject(987, 102.72379, 1208.54077, 17.63095, 0.00000, 0.00000, -52.37999);
  616. CreateObject(987, 109.85915, 1199.04883, 17.63095, 0.00000, 0.00000, -93.83999);
  617. CreateObject(987, 104.66291, 1174.44812, 17.63095, 0.00000, 0.00000, -93.83999);
  618. CreateObject(987, 109.00822, 1187.12854, 17.63095, 0.00000, 0.00000, -93.83999);
  619. CreateObject(987, 108.05228, 1175.37866, 17.63095, 0.00000, 0.00000, -93.83999);
  620. CreateObject(987, 107.30560, 1163.90027, 17.63095, 0.00000, 0.00000, -93.77999);
  621. CreateObject(987, 106.04839, 1152.96460, 17.12340, 0.00000, 0.00000, -184.62003);
  622. CreateObject(987, 94.16957, 1153.85571, 17.12340, 0.00000, 0.00000, -184.62003);
  623. CreateObject(987, 84.55934, 1154.32629, 17.12340, 0.00000, 0.00000, -184.62003);
  624. CreateObject(987, 72.64340, 1155.35571, 17.12340, 0.00000, 0.00000, -177.47998);
  625. CreateObject(987, 60.70780, 1154.80786, 17.12340, 0.00000, 0.00000, -177.47998);
  626. CreateObject(987, 48.74080, 1154.24438, 17.12340, 0.00000, 0.00000, -177.47998);
  627. CreateObject(987, 39.38115, 1132.29639, 17.12340, 0.00000, 0.00000, -269.03989);
  628. CreateObject(987, 38.15394, 1155.92847, 17.12340, 0.00000, 0.00000, -84.89998);
  629. CreateObject(987, 39.42833, 1120.28308, 17.12340, 0.00000, 0.00000, -269.03989);
  630. CreateObject(987, 39.42386, 1108.47058, 17.12340, 0.00000, 0.00000, -269.69986);
  631. CreateObject(987, 37.57386, 1097.24011, 17.12340, 0.00000, 0.00000, -279.35983);
  632. CreateObject(987, 30.29461, 1088.57751, 17.12340, 0.00000, 0.00000, -309.23981);
  633. CreateObject(987, 18.62357, 1087.87732, 17.12340, 0.00000, 0.00000, -356.93982);
  634. CreateObject(987, -5.47304, 1051.48083, 17.12340, 0.00000, 0.00000, -270.47971);
  635. CreateObject(987, -5.65904, 1039.73291, 17.12340, 0.00000, 0.00000, -270.47971);
  636. CreateObject(987, -6.25693, 1028.24109, 17.12340, 0.00000, 0.00000, -272.45963);
  637. CreateObject(987, -11.56853, 1017.13409, 17.12340, 0.00000, 0.00000, -296.27945);
  638. CreateObject(987, -21.43148, 1010.51788, 17.12340, 0.00000, 0.00000, -325.67935);
  639. CreateObject(987, -32.61505, 1006.90967, 17.82045, 0.00000, 0.00000, -340.73929);
  640. CreateObject(987, -44.58681, 1008.09583, 17.82045, 0.00000, 0.00000, -364.91934);
  641. CreateObject(987, -56.85416, 1008.55115, 17.82045, 0.00000, 0.00000, -364.91934);
  642. CreateObject(987, -68.50488, 1009.94238, 17.82045, 0.00000, 0.00000, -364.91934);
  643. CreateObject(987, -77.71033, 1017.35522, 17.82045, 0.00000, 0.00000, -397.31934);
  644. CreateObject(987, -80.32636, 1028.69250, 17.82045, 0.00000, 0.00000, -437.33923);
  645. CreateObject(987, -81.57175, 1040.58826, 17.82045, 0.00000, 0.00000, -444.29926);
  646. CreateObject(987, -80.66316, 1052.46594, 17.82045, 0.00000, 0.00000, -452.81934);
  647. CreateObject(987, -80.06864, 1064.40869, 17.82045, 0.00000, 0.00000, -452.87933);
  648. CreateObject(987, -80.40147, 1067.55969, 17.82045, 0.00000, 0.00000, -452.93933);
  649. CreateObject(987, -54.72144, 1008.88190, 17.82045, 0.00000, 0.00000, -364.97934);
  650. CreateObject(3749, -193.03320, 951.31427, 20.71482, 0.00000, 0.00000, 0.00000);
  651. CreateObject(987, -183.59485, 950.37976, 14.97472, 0.00000, 0.00000, -358.85944);
  652. CreateObject(987, -171.73183, 950.59314, 14.97472, 0.00000, 0.00000, -358.97943);
  653. CreateObject(987, -213.80399, 949.66144, 14.97472, 0.00000, 0.00000, -358.85944);
  654. CreateObject(987, -159.71703, 950.70233, 16.20727, 0.00000, 0.00000, -359.03943);
  655. CreateObject(987, -147.52090, 951.10461, 17.58963, 0.00000, 0.00000, -359.09943);
  656. CreateObject(16737, -91.02970, 922.20483, 26.17969, 356.85840, 0.00000, 3.14159);
  657. CreateObject(987, -135.70891, 951.19806, 18.64198, 0.00000, 0.00000, -359.09943);
  658. CreateObject(987, -124.17487, 951.14075, 19.17500, 0.00000, 0.00000, -359.09943);
  659. CreateObject(987, -112.75116, 951.11377, 19.17500, 0.00000, 0.00000, -359.09943);
  660. CreateObject(987, -100.87405, 951.24231, 19.17500, 0.00000, 0.00000, -361.55942);
  661. CreateObject(987, -89.11709, 950.81134, 19.17500, 0.00000, 0.00000, -362.27942);
  662. CreateObject(987, -78.09285, 950.49847, 19.17500, 0.00000, 0.00000, -362.27942);
  663. CreateObject(987, -68.83374, 950.41986, 19.17500, 0.00000, 0.00000, -270.89951);
  664. CreateObject(987, -68.46243, 962.30469, 19.17500, 0.00000, 0.00000, -270.89951);
  665. CreateObject(987, -68.15705, 974.08905, 19.17500, 0.00000, 0.00000, -263.69946);
  666. CreateObject(987, -69.31281, 985.76971, 19.17500, 0.00000, 0.00000, -264.11948);
  667. CreateObject(987, -70.44214, 997.70374, 19.17500, 0.00000, 0.00000, -264.65948);
  668. CreateObject(987, -139.16997, 1242.61438, 18.78147, 0.00000, 0.00000, 13.02000);
  669. CreateObject(987, -150.63832, 1240.79529, 20.05954, 0.00000, 0.00000, 15.30000);
  670. CreateObject(987, -162.33025, 1238.97205, 20.58851, 0.00000, 0.00000, 10.98000);
  671. CreateObject(987, -174.02657, 1236.60229, 20.58851, 0.00000, 0.00000, 10.98000);
  672. CreateObject(987, -185.86171, 1234.52368, 20.58851, 0.00000, 0.00000, 10.80000);
  673. CreateObject(987, -197.72884, 1232.61719, 21.13993, 0.00000, 0.00000, 10.80000);
  674. CreateObject(987, -209.44702, 1230.82654, 21.13993, 0.00000, 0.00000, 10.80000);
  675. CreateObject(987, -225.73663, 949.43439, 14.97472, 0.00000, 0.00000, -359.57935);
  676. CreateObject(987, -237.42476, 949.31317, 14.97472, 0.00000, 0.00000, -359.33936);
  677. CreateObject(987, -225.73663, 949.43439, 14.97472, 0.00000, 0.00000, -359.57935);
  678. CreateObject(987, -248.93628, 948.99738, 14.97472, 0.00000, 0.00000, -359.33936);
  679. CreateObject(987, -261.05090, 949.04999, 14.97472, 0.00000, 0.00000, -359.33936);
  680. CreateObject(987, -270.94870, 955.62708, 14.97472, 0.00000, 0.00000, -393.53928);
  681. CreateObject(987, -277.45786, 965.66895, 15.02149, 0.00000, 0.00000, -416.99924);
  682. CreateObject(987, -283.89142, 975.67450, 16.08430, 0.00000, 0.00000, -417.59921);
  683. CreateObject(987, -283.90628, 975.68793, 16.08430, 0.00000, 0.00000, -417.59921);
  684. CreateObject(987, -282.09573, 987.30792, 16.87479, 0.00000, 0.00000, -458.81918);
  685. AddStaticVehicleEx(470, -177.2223, 1225.4535, 18.7215, -83.5800, -1, -1, 100);
  686. AddStaticVehicleEx(470, -177.0979, 1219.7916, 18.7215, -90.0600, -1, -1, 100);
  687. AddStaticVehicleEx(470, -176.7035, 1214.2660, 18.7215, -90.0600, -1, -1, 100);
  688. AddStaticVehicleEx(432, -172.0444, 1230.7631, 19.4986, 186.9600, -1, -1, 100);
  689. AddStaticVehicleEx(432, -164.6237, 1231.6057, 19.4986, 186.9600, -1, -1, 100);
  690. AddStaticVehicleEx(432, -157.9165, 1231.5063, 19.4986, 183.6600, -1, -1, 100);
  691. AddStaticVehicleEx(520, -160.9937, 1216.0015, 19.1342, 86.1000, -1, -1, 100);
  692. AddStaticVehicleEx(409, -143.4496, 1220.7692, 19.0790, 89.1000, -1, -1, 100);
  693. AddStaticVehicleEx(409, -151.8961, 1220.5483, 19.0790, 89.1000, -1, -1, 100);
  694. AddStaticVehicleEx(409, -143.4496, 1220.7692, 19.0790, 89.1000, -1, -1, 100);
  695. AddStaticVehicleEx(409, -134.5577, 1220.6621, 19.0790, 89.1000, -1, -1, 100);
  696. AddStaticVehicleEx(468, -86.4779, 1223.5990, 18.9488, 176.6400, -1, -1, 100);
  697. AddStaticVehicleEx(468, -89.2250, 1223.0953, 18.9488, 176.6400, -1, -1, 100);
  698. AddStaticVehicleEx(468, -91.9852, 1222.8391, 18.9488, 177.4199, -1, -1, 100);
  699. AddStaticVehicleEx(470, -81.5119, 1221.0302, 18.7219, 183.6000, -1, -1, 100);
  700. AddStaticVehicleEx(470, -96.7781, 1221.1119, 18.7219, 181.6801, -1, -1, 100);
  701. AddStaticVehicleEx(470, -101.6816, 1221.5187, 18.7219, 182.4601, -1, -1, 100);
  702. AddStaticVehicleEx(432, -93.5244, 1213.1136, 18.9454, 89.1600, -1, -1, 100);
  703. AddStaticVehicleEx(432, -82.3491, 1213.7875, 18.9454, 89.1600, -1, -1, 100);
  704.  
  705. //Arabian base map
  706. CreateObject(3749, -836.55420, 1400.90662, 17.83293, 0.00000, 0.00000, 26.94000);
  707. CreateObject(3749, -871.20465, 1636.43860, 31.75134, 0.00000, 0.00000, 35.09998);
  708. AddStaticVehicleEx(470, -866.1010, 1566.4028, 23.6926, -87.9000, -1, -1, 100);
  709. AddStaticVehicleEx(470, -865.7885, 1560.4009, 23.6137, -85.7400, -1, -1, 100);
  710. AddStaticVehicleEx(470, -865.0686, 1553.9182, 22.8808, -85.7400, -1, -1, 100);
  711. AddStaticVehicleEx(470, -864.9500, 1547.6068, 22.8808, -86.2200, -1, -1, 100);
  712. AddStaticVehicleEx(432, -901.3102, 1565.1768, 24.8193, -94.8600, -1, -1, 100);
  713. AddStaticVehicleEx(432, -901.9582, 1555.8534, 24.8193, -93.4800, -1, -1, 100);
  714. AddStaticVehicleEx(432, -902.8900, 1546.1063, 24.8193, -93.4800, -1, -1, 100);
  715. AddStaticVehicleEx(432, -884.4021, 1545.7349, 24.8193, -267.7199, -1, -1, 100);
  716. AddStaticVehicleEx(432, -903.7601, 1535.1169, 24.8193, -88.2000, -1, -1, 100);
  717. AddStaticVehicleEx(432, -883.8492, 1559.8892, 24.8193, 84.5400, -1, -1, 100);
  718. AddStaticVehicleEx(432, -884.1718, 1534.5992, 24.8193, -268.4399, -1, -1, 100);
  719. AddStaticVehicleEx(520, -767.2641, 1641.1862, 26.6384, -178.3799, -1, -1, 100);
  720. AddStaticVehicleEx(520, -754.2633, 1641.4189, 26.6384, -179.0399, -1, -1, 100);
  721. AddStaticVehicleEx(520, -739.4522, 1641.1566, 26.6384, -179.0399, -1, -1, 100);
  722. AddStaticVehicleEx(520, -728.6932, 1626.3475, 26.6384, -270.9599, -1, -1, 100);
  723. AddStaticVehicleEx(520, -740.5227, 1624.6666, 26.6384, -365.8199, -1, -1, 100);
  724. AddStaticVehicleEx(520, -767.7458, 1625.0869, 26.6384, -365.8199, -1, -1, 100);
  725. AddStaticVehicleEx(520, -754.8463, 1625.1527, 26.6384, -365.8199, -1, -1, 100);
  726. AddStaticVehicleEx(425, -770.5936, 1544.8518, 26.0931, -92.4600, -1, -1, 100);
  727. AddStaticVehicleEx(425, -770.7733, 1563.3237, 26.0931, -92.4600, -1, -1, 100);
  728. AddStaticVehicleEx(425, -886.2338, 1511.8156, 24.8945, 91.0800, -1, -1, 100);
  729. AddStaticVehicleEx(425, -884.9835, 1524.7090, 24.8945, 90.9600, -1, -1, 100);
  730. AddStaticVehicleEx(425, -725.2501, 1432.7139, 17.8603, 180.7800, -1, -1, 100);
  731. AddStaticVehicleEx(425, -705.0256, 1434.3954, 17.8603, 180.7800, -1, -1, 100);
  732. AddStaticVehicleEx(447, -846.6392, 1627.7286, 27.0044, 189.0600, -1, -1, 100);
  733. AddStaticVehicleEx(447, -834.3934, 1628.2385, 27.0044, 189.0600, -1, -1, 100);
  734. AddStaticVehicleEx(447, -846.6392, 1627.7286, 27.0044, 189.0600, -1, -1, 100);
  735. AddStaticVehicleEx(447, -842.3307, 1608.9359, 27.0044, 6.1200, -1, -1, 100);
  736. AddStaticVehicleEx(447, -875.8062, 1596.3785, 27.0044, 217.4400, -1, -1, 100);
  737. AddStaticVehicleEx(447, -883.5294, 1589.0081, 27.0044, 219.6000, -1, -1, 100);
  738.  
  739. //France
  740. CreateObject(3749, -305.61792, 1735.12122, 47.27053, 0.00000, 0.00000, -90.95998);
  741. CreateObject(987, -303.45724, 1725.60425, 41.90008, 0.00000, 0.00000, 1.26000);
  742. CreateObject(987, -298.17899, 1725.76733, 41.90008, 0.00000, 0.00000, 1.26000);
  743. CreateObject(987, -286.40198, 1726.07471, 41.90008, 0.00000, 0.00000, 89.28002);
  744. CreateObject(987, -286.23697, 1737.97461, 41.90008, 0.00000, 0.00000, 89.28002);
  745. CreateObject(987, -286.08658, 1749.85010, 41.90008, 0.00000, 0.00000, 89.28002);
  746. CreateObject(987, -285.85040, 1761.78406, 41.90008, 0.00000, 0.00000, 89.28002);
  747. CreateObject(987, -285.53677, 1771.39783, 41.90008, 0.00000, 0.00000, 89.28002);
  748. CreateObject(987, -285.11142, 1782.78137, 41.90008, 0.00000, 0.00000, 89.28002);
  749. CreateObject(987, -283.13315, 1806.24133, 41.90008, 0.00000, 0.00000, 185.22008);
  750. CreateObject(987, -295.34772, 1805.37622, 41.90008, 0.00000, 0.00000, 185.22008);
  751. CreateObject(987, -307.17896, 1804.48706, 41.90008, 0.00000, 0.00000, 185.22008);
  752. CreateObject(987, -311.67792, 1803.97302, 41.90008, 0.00000, 0.00000, 185.22008);
  753. CreateObject(987, -316.65463, 1741.02747, 41.90008, 0.00000, 0.00000, 5.40000);
  754. CreateObject(987, -322.80215, 1740.01501, 41.90008, 0.00000, 0.00000, 0.48000);
  755. CreateObject(987, -319.64066, 1725.55322, 41.90008, 0.00000, 0.00000, 1.26000);
  756. CreateObject(987, -323.04703, 1803.14417, 41.90008, 0.00000, 0.00000, 270.00000);
  757. CreateObject(987, -322.79263, 1791.19592, 41.90008, 0.00000, 0.00000, 269.94000);
  758. CreateObject(987, -323.04703, 1803.14417, 41.90008, 0.00000, 0.00000, 270.00000);
  759. CreateObject(987, -322.44623, 1777.85632, 41.90008, 0.00000, 0.00000, 267.42001);
  760. CreateObject(987, -322.80881, 1766.13281, 41.90008, 0.00000, 0.00000, 267.42001);
  761. CreateObject(987, -322.85519, 1752.79443, 41.90008, 0.00000, 0.00000, 270.18008);
  762. AddStaticVehicleEx(470, -301.0497, 1765.6842, 41.6776, -88.8000, -1, -1, 100);
  763. AddStaticVehicleEx(470, -301.1492, 1760.7786, 41.6776, -88.8000, -1, -1, 100);
  764. AddStaticVehicleEx(470, -300.7372, 1772.3994, 41.6776, -88.8000, -1, -1, 100);
  765. AddStaticVehicleEx(470, -301.3529, 1755.8203, 41.6776, -88.8600, -1, -1, 100);
  766. AddStaticVehicleEx(470, -301.3462, 1751.2676, 41.6776, -89.2200, -1, -1, 100);
  767. AddStaticVehicleEx(470, -301.6354, 1746.2351, 41.6776, -90.2400, -1, -1, 100);
  768. AddStaticVehicleEx(432, -292.1319, 1747.5076, 41.6671, 90.3600, -1, -1, 100);
  769. AddStaticVehicleEx(432, -292.4870, 1740.0099, 41.6671, 90.6000, -1, -1, 100);
  770. AddStaticVehicleEx(432, -292.1713, 1732.8353, 41.6671, 91.3800, -1, -1, 100);
  771. AddStaticVehicleEx(432, -292.0789, 1758.6647, 41.6671, 91.9800, -1, -1, 100);
  772. AddStaticVehicleEx(432, -291.9771, 1773.5928, 41.6671, 91.6800, -1, -1, 100);
  773. AddStaticVehicleEx(447, -331.5078, 1797.7852, 42.3383, 88.6200, -1, -1, 100);
  774. AddStaticVehicleEx(447, -332.2625, 1788.1538, 42.3383, 88.6200, -1, -1, 100);
  775. AddStaticVehicleEx(447, -332.3699, 1778.6903, 42.3383, 88.6200, -1, -1, 100);
  776. AddStaticVehicleEx(447, -332.3199, 1769.9222, 42.3383, 88.6200, -1, -1, 100);
  777. AddStaticVehicleEx(447, -331.8070, 1760.7584, 42.3383, 88.6200, -1, -1, 100);
  778. AddStaticVehicleEx(425, -333.8557, 1747.5155, 41.7615, 93.9600, -1, -1, 100);
  779. AddStaticVehicleEx(425, -341.8522, 1815.2943, 41.3273, 1.8600, -1, -1, 100);
  780. AddStaticVehicleEx(425, -317.5461, 1815.6021, 41.3273, 2.1000, -1, -1, 100);
  781. AddStaticVehicleEx(425, -304.9908, 1816.2512, 41.3273, 8.6400, -1, -1, 100);
  782. AddStaticVehicleEx(520, -295.2406, 1786.2822, 42.4560, -177.5399, -1, -1, 100);
  783. AddStaticVehicleEx(520, -357.3405, 1827.1735, 41.8164, -88.3200, -1, -1, 100);
  784. AddStaticVehicleEx(520, -358.1364, 1839.7401, 41.8164, -88.4400, -1, -1, 100);
  785. AddStaticVehicleEx(520, -358.7628, 1852.8533, 41.8164, -88.4400, -1, -1, 100);
  786. AddStaticVehicleEx(520, -359.9613, 1867.4536, 41.8164, -88.5600, -1, -1, 100);
  787. AddStaticVehicleEx(520, -359.7305, 1882.4186, 41.8164, -88.7400, -1, -1, 100);
  788.  
  789. //Russian base
  790. CreateObject(3749, -1392.72791, 2601.50830, 60.11858, 0.00000, 0.00000, 65.64000);
  791. CreateObject(987, -1402.88037, 2582.85522, 56.25961, 0.00000, 0.00000, 60.12000);
  792. CreateObject(987, -1408.75098, 2572.43555, 56.32898, 0.00000, 0.00000, 60.24001);
  793. CreateObject(987, -1414.75366, 2562.06763, 56.32898, 0.00000, 0.00000, 60.24001);
  794. CreateObject(987, -1420.71521, 2551.65308, 57.72722, 0.00000, 0.00000, 60.24001);
  795. CreateObject(987, -1426.78674, 2541.23804, 57.88703, 0.00000, 0.00000, 60.24001);
  796. CreateObject(987, -1432.81384, 2530.86572, 57.88703, 0.00000, 0.00000, 60.24001);
  797. CreateObject(987, -1439.07495, 2520.58057, 57.88703, 0.00000, 0.00000, 58.68001);
  798. CreateObject(987, -1459.77942, 2502.69629, 57.88703, 0.00000, 0.00000, 44.69999);
  799. CreateObject(987, -1454.03735, 2508.46411, 57.88703, 0.00000, 0.00000, 44.69999);
  800. CreateObject(987, -1459.77942, 2502.69629, 57.88703, 0.00000, 0.00000, 44.69999);
  801. CreateObject(987, -1446.83118, 2515.41284, 57.88703, 0.00000, 0.00000, 18.59999);
  802. CreateObject(987, -1437.45813, 2517.70068, 57.88703, 0.00000, 0.00000, 78.11999);
  803. CreateObject(987, -1386.11963, 2609.18481, 56.25961, 0.00000, 0.00000, 60.12000);
  804. CreateObject(987, -1380.18689, 2619.49707, 56.25961, 0.00000, 0.00000, 60.12000);
  805. CreateObject(987, -1374.28857, 2630.02271, 56.25961, 0.00000, 0.00000, 60.12000);
  806. CreateObject(987, -1369.37756, 2639.35815, 56.25961, 0.00000, 0.00000, 60.12000);
  807. AddStaticVehicleEx(425, -1439.0225, 2585.9626, 54.8132, 0.0000, -1, -1, 100);
  808. AddStaticVehicleEx(425, -1454.3016, 2585.8706, 54.8132, 0.0000, -1, -1, 100);
  809. AddStaticVehicleEx(425, -1471.9714, 2585.7668, 54.8132, 0.0000, -1, -1, 100);
  810. AddStaticVehicleEx(425, -1398.8553, 2667.5769, 55.4117, -180.3602, -1, -1, 100);
  811. AddStaticVehicleEx(425, -1407.8765, 2667.2288, 55.4117, -180.3602, -1, -1, 100);
  812. AddStaticVehicleEx(520, -1400.5215, 2656.8662, 55.2811, 95.8800, -1, -1, 100);
  813. AddStaticVehicleEx(520, -1400.0792, 2643.9517, 55.2811, 93.5400, -1, -1, 100);
  814. AddStaticVehicleEx(520, -1400.5215, 2656.8662, 55.2811, 95.8800, -1, -1, 100);
  815. AddStaticVehicleEx(520, -1400.4880, 2631.0205, 55.2811, 89.6400, -1, -1, 100);
  816. AddStaticVehicleEx(447, -1531.3887, 2526.1084, 54.6972, 0.0000, -1, -1, 100);
  817. AddStaticVehicleEx(447, -1522.4425, 2525.4526, 54.6972, 0.0000, -1, -1, 100);
  818. AddStaticVehicleEx(447, -1507.6718, 2525.4753, 54.6972, 0.2400, -1, -1, 100);
  819. AddStaticVehicleEx(447, -1522.4425, 2525.4526, 54.6972, 0.0000, -1, -1, 100);
  820. AddStaticVehicleEx(447, -1497.3032, 2525.3008, 54.6972, 0.2400, -1, -1, 100);
  821. AddStaticVehicleEx(470, -1497.8912, 2534.7810, 54.6691, -181.8599, -1, -1, 100);
  822. AddStaticVehicleEx(470, -1503.0260, 2534.6125, 54.6691, -179.5798, -1, -1, 100);
  823. AddStaticVehicleEx(470, -1497.8912, 2534.7810, 54.6691, -181.8599, -1, -1, 100);
  824. AddStaticVehicleEx(470, -1497.8912, 2534.7810, 54.6691, -181.8599, -1, -1, 100);
  825. AddStaticVehicleEx(470, -1508.6508, 2534.7327, 54.6691, -177.3599, -1, -1, 100);
  826. AddStaticVehicleEx(470, -1497.8912, 2534.7810, 54.6691, -181.8599, -1, -1, 100);
  827. AddStaticVehicleEx(470, -1503.0260, 2534.6125, 54.6691, -179.5798, -1, -1, 100);
  828. AddStaticVehicleEx(470, -1524.0847, 2534.5464, 54.6691, -177.3599, -1, -1, 100);
  829. AddStaticVehicleEx(470, -1531.2177, 2534.1646, 54.6691, -177.3599, -1, -1, 100);
  830.  
  831. //England Base Map
  832. CreateObject(3749, 1019.05762, 2245.55737, 15.11892, 0.00000, 0.00000, 88.37999);
  833. CreateObject(987, 1017.74237, 2264.10059, 9.79931, 0.00000, 0.00000, -90.54000);
  834. CreateObject(987, 1017.88818, 2275.94458, 11.92845, 0.00000, 0.00000, -90.18000);
  835. CreateObject(987, 1017.78088, 2282.99829, 11.92845, 0.00000, 0.00000, -90.18000);
  836. CreateObject(987, 1029.65527, 2282.33765, 11.92845, 0.00000, 0.00000, -183.00003);
  837. CreateObject(987, 1017.41949, 2238.00439, 9.79931, 0.00000, 0.00000, -90.54000);
  838. CreateObject(987, 1017.82794, 2234.24756, 9.79931, 0.00000, 0.00000, -90.60000);
  839. CreateObject(987, 1017.73145, 2222.26904, 11.79923, 0.00000, 0.00000, -90.60000);
  840. CreateObject(987, 1017.72034, 2217.02954, 11.79923, 0.00000, 0.00000, -90.60000);
  841. CreateObject(987, 1017.63873, 2205.53369, 12.43037, 0.00000, 0.00000, -1.80000);
  842. CreateObject(987, 1029.47241, 2205.06104, 12.43037, 0.00000, 0.00000, -1.80000);
  843. CreateObject(987, 1041.32629, 2204.73438, 12.43037, 0.00000, 0.00000, -1.80000);
  844. CreateObject(987, 1053.67542, 2203.93506, 12.43037, 0.00000, 0.00000, -1.80000);
  845. CreateObject(987, 1064.10962, 2282.84229, 11.92845, 0.00000, 0.00000, -182.46004);
  846. CreateObject(987, 1076.12354, 2282.25073, 11.92845, 0.00000, 0.00000, -183.06001);
  847. CreateObject(987, 1087.93103, 2282.15674, 11.92845, 0.00000, 0.00000, -183.06001);
  848. CreateObject(987, 1099.36768, 2282.49048, 11.92845, 0.00000, 0.00000, -183.00002);
  849. CreateObject(3361, 1033.65540, 2217.40405, 11.46234, 0.00000, 0.00000, -94.07999);
  850. CreateObject(3399, 1034.40784, 2227.91528, 15.06545, 0.00000, 0.00000, 88.01999);
  851. CreateObject(7096, 1057.37451, 2216.62085, 15.32093, 0.00000, 0.00000, 87.41998);
  852. AddStaticVehicleEx(425, 1033.6493, 2281.2673, 17.2315, 90.3600, -1, -1, 100);
  853. AddStaticVehicleEx(425, 1033.2760, 2270.7446, 17.2315, 90.3600, -1, -1, 100);
  854. AddStaticVehicleEx(425, 1033.6493, 2281.2673, 17.2315, 90.3600, -1, -1, 100);
  855. AddStaticVehicleEx(425, 1032.9908, 2257.9897, 17.2315, 90.3600, -1, -1, 100);
  856. AddStaticVehicleEx(425, 1033.0974, 2242.4297, 17.2315, 90.3600, -1, -1, 100);
  857. AddStaticVehicleEx(520, 1072.1188, 2238.6936, 16.2157, -89.4600, -1, -1, 100);
  858. AddStaticVehicleEx(520, 1072.2135, 2224.9504, 16.2157, -90.4200, -1, -1, 100);
  859. AddStaticVehicleEx(520, 1072.2146, 2207.4058, 16.2157, -90.4200, -1, -1, 100);
  860. AddStaticVehicleEx(520, 1071.9622, 2191.0171, 16.2157, -90.4200, -1, -1, 100);
  861. AddStaticVehicleEx(520, 1073.0269, 2176.1465, 16.2157, -90.4200, -1, -1, 100);
  862. AddStaticVehicleEx(447, 1113.1332, 2229.0930, 16.6065, 0.0000, -1, -1, 100);
  863. AddStaticVehicleEx(447, 1106.3550, 2228.7693, 16.6065, 0.0000, -1, -1, 100);
  864. AddStaticVehicleEx(447, 1099.8589, 2228.4475, 16.6065, -0.2400, -1, -1, 100);
  865. AddStaticVehicleEx(447, 1093.2864, 2228.6208, 16.6065, -0.2400, -1, -1, 100);
  866. AddStaticVehicleEx(447, 1085.9850, 2228.4639, 16.6065, -0.2400, -1, -1, 100);
  867. AddStaticVehicleEx(447, 1086.1625, 2240.0208, 16.6065, -180.1800, -1, -1, 100);
  868. AddStaticVehicleEx(447, 1093.1327, 2239.4946, 16.6065, -180.6600, -1, -1, 100);
  869. AddStaticVehicleEx(447, 1100.4847, 2239.2612, 16.6065, -180.7800, -1, -1, 100);
  870. AddStaticVehicleEx(447, 1106.8336, 2238.9177, 16.6065, -180.7800, -1, -1, 100);
  871. AddStaticVehicleEx(447, 1113.7675, 2238.8816, 16.6065, -180.7800, -1, -1, 100);
  872.  
  873. //Deseart airport
  874. CreateObject(7522, -77.02363, 2503.21045, 20.21435, 0.00000, 0.00000, -92.16000);
  875. CreateObject(987, -81.61228, 2515.99146, 15.45128, 0.00000, 0.00000, 63.36000);
  876. CreateObject(987, -76.28439, 2526.17749, 15.30466, 0.00000, 0.00000, 0.72000);
  877. CreateObject(987, -64.24383, 2526.17432, 15.30466, 0.00000, 0.00000, 0.72000);
  878. CreateObject(987, -53.18455, 2526.34595, 15.30466, 0.00000, 0.00000, -0.42000);
  879. CreateObject(987, -41.18770, 2526.26782, 15.30466, 0.00000, 0.00000, -0.42000);
  880. CreateObject(987, -29.16976, 2526.13379, 15.30466, 0.00000, 0.00000, -0.42000);
  881. CreateObject(987, -17.04390, 2525.87646, 15.30466, 0.00000, 0.00000, -0.42000);
  882. CreateObject(987, -5.53711, 2525.46802, 15.30466, 0.00000, 0.00000, -0.42000);
  883. CreateObject(987, 6.57019, 2525.49707, 15.30466, 0.00000, 0.00000, -0.42000);
  884. CreateObject(987, -83.55446, 2480.51270, 15.45128, 0.00000, 0.00000, 90.42002);
  885. CreateObject(987, -79.39888, 2470.05713, 15.45128, 0.00000, 0.00000, 113.70001);
  886. CreateObject(987, -67.13740, 2468.56836, 15.45128, 0.00000, 0.00000, 176.33989);
  887. CreateObject(3749, -57.71837, 2470.21851, 20.94429, 0.00000, 0.00000, 0.00000);
  888. CreateObject(987, 18.57587, 2525.31494, 15.30466, 0.00000, 0.00000, -0.42000);
  889. CreateObject(987, 30.52816, 2525.18140, 15.30466, 0.00000, 0.00000, -0.42000);
  890. CreateObject(987, 42.46060, 2525.00977, 15.30466, 0.00000, 0.00000, -0.42000);
  891. CreateObject(987, 54.18666, 2524.78613, 15.30466, 0.00000, 0.00000, -0.42000);
  892. CreateObject(987, 66.11671, 2524.62134, 15.30466, 0.00000, 0.00000, -0.42000);
  893. CreateObject(987, 78.38766, 2524.29224, 15.30466, 0.00000, 0.00000, -0.42000);
  894. CreateObject(987, 90.35121, 2524.15039, 15.30466, 0.00000, 0.00000, -0.42000);
  895. CreateObject(987, 102.25309, 2524.08325, 15.30466, 0.00000, 0.00000, -0.42000);
  896. CreateObject(987, 114.15696, 2523.85400, 15.30466, 0.00000, 0.00000, -0.42000);
  897. CreateObject(987, 126.10706, 2523.72998, 15.30466, 0.00000, 0.00000, -0.42000);
  898. CreateObject(987, 138.14117, 2523.67188, 15.30466, 0.00000, 0.00000, -0.42000);
  899. CreateObject(987, 150.08383, 2523.55664, 15.30466, 0.00000, 0.00000, -1.44000);
  900. CreateObject(987, 138.14117, 2523.67188, 15.30466, 0.00000, 0.00000, -0.42000);
  901. CreateObject(987, 161.98799, 2523.20532, 15.30466, 0.00000, 0.00000, -1.44000);
  902. CreateObject(987, 173.93100, 2522.97998, 15.30466, 0.00000, 0.00000, -1.44000);
  903. CreateObject(987, 185.86798, 2522.63647, 15.30466, 0.00000, 0.00000, -1.44000);
  904. CreateObject(987, 197.76956, 2522.39282, 15.30466, 0.00000, 0.00000, -1.44000);
  905. CreateObject(987, 209.85361, 2522.13696, 15.30466, 0.00000, 0.00000, -1.44000);
  906. CreateObject(987, 221.83745, 2521.84131, 15.30466, 0.00000, 0.00000, -1.44000);
  907. CreateObject(987, 233.70015, 2521.44775, 15.30466, 0.00000, 0.00000, -1.44000);
  908. CreateObject(987, 245.18726, 2521.09668, 15.30466, 0.00000, 0.00000, 30.72000);
  909. CreateObject(987, 255.40521, 2527.25732, 15.30466, 0.00000, 0.00000, 30.72000);
  910. CreateObject(987, 265.13351, 2533.10327, 15.30466, 0.00000, 0.00000, 30.72000);
  911. CreateObject(987, 269.26178, 2535.83276, 15.30466, 0.00000, 0.00000, 30.72000);
  912. CreateObject(987, 430.65680, 2476.58008, 15.17346, 0.00000, 0.00000, 59.40002);
  913. CreateObject(987, 436.88461, 2486.73145, 15.17346, 0.00000, 0.00000, 88.20002);
  914. CreateObject(987, 437.43640, 2498.52783, 15.17346, 0.00000, 0.00000, 88.20002);
  915. CreateObject(987, 438.08621, 2510.47412, 15.17346, 0.00000, 0.00000, 88.20002);
  916. CreateObject(987, 438.39804, 2522.37231, 15.17346, 0.00000, 0.00000, 88.20002);
  917. CreateObject(987, 438.65189, 2529.70093, 15.17346, 0.00000, 0.00000, 88.20002);
  918. CreateObject(987, -38.16678, 2469.06372, 15.45128, 0.00000, 0.00000, 182.87988);
  919. CreateObject(987, -26.18095, 2469.42896, 15.45128, 0.00000, 0.00000, 182.33994);
  920. CreateObject(987, -14.31565, 2469.75317, 15.45128, 0.00000, 0.00000, 182.27994);
  921. CreateObject(3279, -78.02824, 2480.78955, 15.20464, 0.00000, 0.00000, 0.96000);
  922. CreateObject(3279, -72.69881, 2522.39575, 15.20464, 0.00000, 0.00000, -0.96000);
  923. CreateObject(987, -2.31376, 2470.28589, 15.45128, 0.00000, 0.00000, 182.27994);
  924. CreateObject(987, -14.31565, 2469.75317, 15.45128, 0.00000, 0.00000, 182.27994);
  925. CreateObject(987, 9.41093, 2470.78955, 15.45128, 0.00000, 0.00000, 182.27994);
  926. CreateObject(987, 21.20015, 2471.07593, 15.45128, 0.00000, 0.00000, 182.21994);
  927. CreateObject(3271, 212.97420, 2496.01440, 15.21123, 0.00000, 0.00000, 32.46000);
  928. CreateObject(987, 33.25218, 2471.18726, 15.45128, 0.00000, 0.00000, 182.21994);
  929. CreateObject(987, 45.28766, 2471.57495, 15.45128, 0.00000, 0.00000, 182.21994);
  930. CreateObject(987, 57.32222, 2471.67017, 15.45128, 0.00000, 0.00000, 180.83994);
  931. CreateObject(987, 69.18139, 2471.78296, 15.45128, 0.00000, 0.00000, 180.77994);
  932. CreateObject(987, 81.07103, 2471.87280, 15.45128, 0.00000, 0.00000, 180.77994);
  933. CreateObject(987, 92.92776, 2471.37280, 15.45128, 0.00000, 0.00000, 178.01991);
  934. CreateObject(987, 104.54541, 2470.79639, 15.45128, 0.00000, 0.00000, 178.01991);
  935. CreateObject(987, 92.92776, 2471.37280, 15.45128, 0.00000, 0.00000, 178.01991);
  936. CreateObject(987, 116.48630, 2470.21729, 15.45128, 0.00000, 0.00000, 178.01991);
  937. CreateObject(987, 128.34435, 2469.62646, 15.45128, 0.00000, 0.00000, 178.01991);
  938. CreateObject(987, 140.63631, 2468.88452, 15.45128, 0.00000, 0.00000, 177.83992);
  939. CreateObject(987, 152.62860, 2468.31641, 15.45128, 0.00000, 0.00000, 177.83992);
  940. CreateObject(987, 164.33408, 2467.92578, 15.45128, 0.00000, 0.00000, 178.67989);
  941. CreateObject(987, 188.19054, 2466.68066, 15.45128, 0.00000, 0.00000, 177.83992);
  942. CreateObject(987, 176.25905, 2467.14282, 15.45128, 0.00000, 0.00000, 177.83992);
  943. CreateObject(987, 200.11145, 2466.11768, 15.45128, 0.00000, 0.00000, 177.83992);
  944. CreateObject(987, 212.01454, 2465.42041, 15.45128, 0.00000, 0.00000, 177.83992);
  945. CreateObject(987, 223.82774, 2464.77246, 15.45128, 0.00000, 0.00000, 177.83992);
  946. CreateObject(987, 235.74767, 2464.28223, 15.45128, 0.00000, 0.00000, 177.83992);
  947. CreateObject(987, 247.64006, 2463.94165, 15.45128, 0.00000, 0.00000, 177.83992);
  948. CreateObject(987, 259.30951, 2463.40186, 15.45128, 0.00000, 0.00000, 177.65993);
  949. CreateObject(987, 247.64006, 2463.94165, 15.45128, 0.00000, 0.00000, 177.83992);
  950. CreateObject(987, 270.70709, 2462.80493, 15.45128, 0.00000, 0.00000, 177.65993);
  951. CreateObject(987, 282.64722, 2462.31982, 15.45128, 0.00000, 0.00000, 177.65993);
  952. CreateObject(987, 294.64224, 2461.77222, 15.45128, 0.00000, 0.00000, 176.69992);
  953. CreateObject(987, 282.64722, 2462.31982, 15.45128, 0.00000, 0.00000, 177.65993);
  954. CreateObject(987, 306.66553, 2460.81250, 15.45128, 0.00000, 0.00000, 174.95992);
  955. CreateObject(987, 318.28506, 2459.64282, 15.45128, 0.00000, 0.00000, 174.95992);
  956. CreateObject(987, 329.85809, 2458.59106, 15.45128, 0.00000, 0.00000, 174.95992);
  957. CreateObject(987, 341.22455, 2461.54443, 15.45128, 0.00000, 0.00000, 194.99989);
  958. CreateObject(987, 352.72406, 2464.59863, 15.45128, 0.00000, 0.00000, 194.99989);
  959. CreateObject(987, 364.11777, 2467.55518, 15.45128, 0.00000, 0.00000, 194.99989);
  960. CreateObject(987, 375.98145, 2467.60840, 15.45128, 0.00000, 0.00000, 180.83992);
  961. CreateObject(987, 378.05237, 2468.06982, 15.45128, 0.00000, 0.00000, 180.83992);
  962. CreateObject(987, 279.35236, 2542.25049, 15.30466, 0.00000, 0.00000, 91.74001);
  963. CreateObject(987, 279.08673, 2555.18994, 15.30466, 0.00000, 0.00000, 0.66002);
  964. CreateObject(987, 290.97556, 2555.30933, 15.30466, 0.00000, 0.00000, 0.66002);
  965. CreateObject(987, 302.94940, 2555.44409, 15.30466, 0.00000, 0.00000, 0.66002);
  966. CreateObject(987, 314.71194, 2555.66528, 15.30466, 0.00000, 0.00000, 0.66002);
  967. CreateObject(987, 326.81839, 2555.68091, 15.30466, 0.00000, 0.00000, 0.66002);
  968. CreateObject(987, 338.80505, 2555.80420, 15.30466, 0.00000, 0.00000, -36.47997);
  969. CreateObject(987, 348.43137, 2548.74146, 15.30466, 0.00000, 0.00000, -2.33997);
  970. CreateObject(987, 360.23035, 2548.31104, 15.30466, 0.00000, 0.00000, -2.33997);
  971. CreateObject(987, 372.08990, 2547.84106, 15.30466, 0.00000, 0.00000, -2.33997);
  972. CreateObject(987, 383.98648, 2547.39941, 15.30466, 0.00000, 0.00000, 1.14003);
  973. CreateObject(987, 395.73062, 2547.81152, 15.30466, 0.00000, 0.00000, 1.14003);
  974. CreateObject(987, 407.41473, 2548.11084, 15.30466, 0.00000, 0.00000, 1.14003);
  975. CreateObject(987, 418.70703, 2548.20581, 15.30466, 0.00000, 0.00000, 1.14003);
  976. CreateObject(3279, 429.13754, 2478.05591, 15.45394, 0.00000, 0.00000, 179.81999);
  977. CreateObject(3279, 433.29297, 2524.58203, 15.45394, 0.00000, 0.00000, 181.43994);
  978. CreateObject(3271, 175.99103, 2498.26880, 15.21123, 0.00000, 0.00000, 32.46000);
  979. CreateObject(3271, 121.63728, 2499.81787, 15.21123, 0.00000, 0.00000, 32.46000);
  980. CreateObject(3271, 61.52854, 2499.38062, 15.21123, 0.00000, 0.00000, 32.46000);
  981. AddStaticVehicleEx(432, 390.5353, 2540.7402, 15.5193, -179.4601, -1, -1, 100);
  982. AddStaticVehicleEx(432, 382.0621, 2540.1653, 15.5193, -179.4601, -1, -1, 100);
  983. AddStaticVehicleEx(432, 372.3778, 2540.8679, 15.5193, -179.4601, -1, -1, 100);
  984. AddStaticVehicleEx(432, 359.8657, 2541.2319, 15.5193, -179.4601, -1, -1, 100);
  985. AddStaticVehicleEx(432, 346.3810, 2541.7949, 15.5193, -179.4601, -1, -1, 100);
  986. AddStaticVehicleEx(520, 431.8019, 2516.3796, 15.9825, 89.0400, -1, -1, 100);
  987. AddStaticVehicleEx(520, 431.8245, 2503.5471, 15.9825, 89.0400, -1, -1, 100);
  988. AddStaticVehicleEx(520, 431.8019, 2516.3796, 15.9825, 89.0400, -1, -1, 100);
  989. AddStaticVehicleEx(520, 429.5520, 2488.1675, 15.9825, 89.0400, -1, -1, 100);
  990.  
  991. //Area 51
  992. CreateObject(3749, 134.64459, 1943.46252, 23.71305, 0.00000, 0.00000, 0.54000);
  993. CreateObject(987, 115.38663, 1943.32751, 17.68460, 0.00000, 0.00000, 0.00000);
  994. CreateObject(987, 103.56490, 1943.25464, 16.99473, 0.00000, 0.00000, 0.00000);
  995. CreateObject(987, 91.77116, 1943.13794, 16.86491, 0.00000, 0.00000, 0.00000);
  996. CreateObject(987, 91.74897, 1943.28613, 16.86490, 0.00000, 0.00000, -84.48001);
  997. CreateObject(3749, 94.04804, 1922.03113, 22.81273, 0.00000, 0.00000, 90.35999);
  998. CreateObject(987, 93.61119, 1912.74390, 16.86490, 0.00000, 0.00000, -87.54001);
  999. CreateObject(987, 94.14619, 1900.89075, 16.86490, 0.00000, 0.00000, -87.54001);
  1000. CreateObject(3279, 101.90481, 1935.73706, 16.82031, 356.85840, 0.00000, 3.14159);
  1001. CreateObject(987, 94.61668, 1888.94836, 16.86490, 0.00000, 0.00000, -87.54001);
  1002. CreateObject(987, 95.10049, 1877.04822, 16.86490, 0.00000, 0.00000, -87.54001);
  1003. CreateObject(16613, 177.17397, 1801.44409, 16.76349, 0.00000, 0.00000, -1.32000);
  1004. CreateObject(987, 95.61568, 1865.20398, 16.86490, 0.00000, 0.00000, -88.68000);
  1005. CreateObject(987, 95.91230, 1841.33862, 16.86490, 0.00000, 0.00000, -88.68000);
  1006. CreateObject(987, 95.68996, 1853.23914, 16.86490, 0.00000, 0.00000, -88.74000);
  1007. CreateObject(987, 96.14442, 1829.38953, 16.86490, 0.00000, 0.00000, -90.36000);
  1008. CreateObject(987, 96.17256, 1817.47424, 16.86490, 0.00000, 0.00000, -90.36000);
  1009. CreateObject(987, 96.22776, 1805.40051, 16.86490, 0.00000, 0.00000, -5.22000);
  1010. CreateObject(987, 108.15211, 1804.25781, 16.86490, 0.00000, 0.00000, -5.22000);
  1011. CreateObject(987, 120.08968, 1803.20544, 16.78179, 0.00000, 0.00000, -5.04000);
  1012. CreateObject(987, 131.95724, 1802.09460, 16.78179, 0.00000, 0.00000, -5.04000);
  1013. CreateObject(987, 143.45172, 1800.90271, 16.78179, 0.00000, 0.00000, -5.04000);
  1014. CreateObject(987, 155.91267, 1800.03455, 16.65415, 0.00000, 0.00000, -96.59998);
  1015. CreateObject(3279, 101.36158, 1841.82153, 16.82031, 356.85840, 0.00000, 3.14159);
  1016. CreateObject(987, 154.53156, 1788.06641, 16.65415, 0.00000, 0.00000, -8.93998);
  1017. CreateObject(987, 166.37758, 1786.24866, 16.65415, 0.00000, 0.00000, -4.85998);
  1018. CreateObject(987, 178.09619, 1785.14136, 16.65415, 0.00000, 0.00000, -3.11998);
  1019. CreateObject(987, 190.19475, 1784.30481, 16.65415, 0.00000, 0.00000, -3.11998);
  1020. CreateObject(987, 202.12602, 1783.85559, 16.65415, 0.00000, 0.00000, -3.11998);
  1021. CreateObject(987, 214.07578, 1783.10046, 16.65415, 0.00000, 0.00000, -4.01998);
  1022. CreateObject(987, 202.12602, 1783.85559, 16.65415, 0.00000, 0.00000, -3.11998);
  1023. CreateObject(987, 226.04839, 1782.40405, 16.65415, 0.00000, 0.00000, -4.01998);
  1024. CreateObject(987, 237.95015, 1781.55774, 16.65415, 0.00000, 0.00000, -4.01998);
  1025. CreateObject(987, 249.87926, 1780.74377, 16.65415, 0.00000, 0.00000, -4.01998);
  1026. CreateObject(987, 261.70963, 1779.82813, 16.65415, 0.00000, 0.00000, 14.22002);
  1027. CreateObject(987, 265.49850, 1780.88806, 16.65415, 0.00000, 0.00000, 14.22002);
  1028. CreateObject(3279, 204.73621, 1795.76733, 16.82031, 356.85840, 0.00000, -90.51839);
  1029. CreateObject(3279, 204.73621, 1795.76733, 16.82031, 356.85840, 0.00000, -90.51839);
  1030. CreateObject(987, 144.31285, 1943.17310, 17.68460, 0.00000, 0.00000, 2.88000);
  1031. CreateObject(987, 156.06320, 1943.52075, 17.68460, 0.00000, 0.00000, 2.88000);
  1032. CreateObject(987, 167.85464, 1944.19189, 17.68460, 0.00000, 0.00000, 2.88000);
  1033. CreateObject(987, 175.63814, 1944.45898, 17.68460, 0.00000, 0.00000, 2.88000);
  1034. CreateObject(4874, 364.57935, 1939.82080, 20.11721, 0.00000, 0.00000, -89.34000);
  1035. CreateObject(16613, 213.77007, 1968.41150, 16.76349, 0.00000, 0.00000, 87.48000);
  1036. CreateObject(3279, 199.05208, 1947.75537, 16.82031, 356.85840, 0.00000, 3.14159);
  1037. CreateObject(18850, 216.16438, 2035.46875, 7.56891, 0.00000, 0.00000, 0.06000);
  1038. AddStaticVehicleEx(425, 364.9821, 1967.6521, 19.5578, -90.0000, -1, -1, 100);
  1039. AddStaticVehicleEx(425, 365.2981, 1955.3971, 19.5578, -89.4600, -1, -1, 100);
  1040. AddStaticVehicleEx(425, 365.4166, 1940.6477, 19.5578, -89.5800, -1, -1, 100);
  1041. AddStaticVehicleEx(522, 342.7522, 1974.9063, 16.6040, -178.9200, -1, -1, 100);
  1042. AddStaticVehicleEx(522, 342.9956, 1968.8411, 16.6040, -178.0800, -1, -1, 100);
  1043. AddStaticVehicleEx(522, 343.1125, 1961.4371, 16.6040, -178.0800, -1, -1, 100);
  1044. AddStaticVehicleEx(522, 343.1277, 1948.8125, 16.6040, -178.0800, -1, -1, 100);
  1045. AddStaticVehicleEx(432, 372.8468, 1983.2113, 16.6232, 89.8200, -1, -1, 100);
  1046. AddStaticVehicleEx(432, 372.2526, 1990.8864, 16.6232, 90.5400, -1, -1, 100);
  1047. AddStaticVehicleEx(432, 371.9860, 1999.7622, 16.6232, 91.8600, -1, -1, 100);
  1048. AddStaticVehicleEx(432, 327.9134, 1910.7640, 16.6232, 89.8200, -1, -1, 100);
  1049. AddStaticVehicleEx(432, 326.9455, 1926.8353, 16.6232, 87.9000, -1, -1, 100);
  1050. AddStaticVehicleEx(432, 327.9134, 1910.7640, 16.6232, 89.8200, -1, -1, 100);
  1051. AddStaticVehicleEx(432, 326.2236, 1945.9863, 16.6232, 89.8800, -1, -1, 100);
  1052. AddStaticVehicleEx(432, 326.2566, 1957.9844, 16.6232, 89.8800, -1, -1, 100);
  1053. AddStaticVehicleEx(432, 326.3661, 1935.5570, 16.6232, 88.4400, -1, -1, 100);
  1054. AddStaticVehicleEx(432, 327.4585, 1919.3562, 16.6232, 86.4000, -1, -1, 100);
  1055. AddStaticVehicleEx(432, 326.0597, 1969.9502, 16.6232, 89.8800, -1, -1, 100);
  1056. AddStaticVehicleEx(432, 326.1955, 1983.9729, 16.6232, 90.9000, -1, -1, 100);
  1057. AddStaticVehicleEx(432, 326.2845, 2000.7266, 16.6232, 90.9000, -1, -1, 100);
  1058. AddStaticVehicleEx(470, 270.8507, 1946.0543, 16.6185, -81.3000, -1, -1, 100);
  1059. AddStaticVehicleEx(470, 271.1857, 1950.8225, 16.6185, -86.8800, -1, -1, 100);
  1060. AddStaticVehicleEx(470, 270.8507, 1946.0543, 16.6185, -81.3000, -1, -1, 100);
  1061. AddStaticVehicleEx(470, 270.2301, 1960.3854, 16.6185, -91.4400, -1, -1, 100);
  1062. AddStaticVehicleEx(470, 271.5193, 1955.4063, 16.6185, -90.4200, -1, -1, 100);
  1063. AddStaticVehicleEx(470, 270.2365, 1966.4979, 16.6185, -91.4400, -1, -1, 100);
  1064. AddStaticVehicleEx(433, 271.1440, 1977.1454, 17.1215, -85.0200, -1, -1, 100);
  1065. AddStaticVehicleEx(433, 271.3007, 1983.0316, 17.1215, -86.2800, -1, -1, 100);
  1066. AddStaticVehicleEx(433, 271.5128, 1989.5905, 17.1215, -88.3200, -1, -1, 100);
  1067. AddStaticVehicleEx(433, 270.6032, 1996.6368, 17.1215, -88.6800, -1, -1, 100);
  1068. AddStaticVehicleEx(433, 271.5128, 1989.5905, 17.1215, -88.3200, -1, -1, 100);
  1069. AddStaticVehicleEx(433, 269.8141, 2002.3076, 17.1215, -88.6800, -1, -1, 100);
  1070. AddStaticVehicleEx(520, 215.6789, 2027.7767, 20.2985, 92.5800, -1, -1, 100);
  1071. AddStaticVehicleEx(520, 216.0841, 2040.8262, 20.2985, 90.6000, -1, -1, 100);
  1072. AddStaticVehicleEx(470, 205.1373, 1986.3280, 16.5846, -5.1600, -1, -1, 100);
  1073. AddStaticVehicleEx(470, 217.4059, 1985.7128, 16.5846, 0.0000, -1, -1, 100);
  1074. AddStaticVehicleEx(470, 224.9828, 1984.9983, 16.5846, 1.9800, -1, -1, 100);
  1075. AddStaticVehicleEx(470, 232.6811, 1980.3334, 16.5846, -88.3200, -1, -1, 100);
  1076. AddStaticVehicleEx(470, 232.4796, 1974.0920, 16.5846, -88.3200, -1, -1, 100);
  1077. AddStaticVehicleEx(470, 232.4420, 1965.1564, 16.5846, -88.3200, -1, -1, 100);
  1078. AddStaticVehicleEx(432, 195.7665, 1993.6251, 16.6181, -91.0200, -1, -1, 100);
  1079. AddStaticVehicleEx(432, 195.4193, 2000.6658, 16.6181, -91.0200, -1, -1, 100);
  1080. AddStaticVehicleEx(432, 195.3702, 2009.0845, 16.6181, -91.8000, -1, -1, 100);
  1081. AddStaticVehicleEx(432, 195.2406, 2017.6387, 16.6181, -91.8000, -1, -1, 100);
  1082.  
  1083. ExistDuel = 0;
  1084.  
  1085. Brasiltext = TextDrawCreate(507.000000, 100.000000, "Time: Brasil");
  1086. TextDrawBackgroundColor(Brasiltext, 255);
  1087. TextDrawFont(Brasiltext, 1);
  1088. TextDrawLetterSize(Brasiltext, 0.500000, 1.000000);
  1089. TextDrawColor(Brasiltext, 0x88ff00FF);
  1090. TextDrawSetOutline(Brasiltext, 0);
  1091. TextDrawSetProportional(Brasiltext, 1);
  1092. TextDrawSetShadow(Brasiltext, 1);
  1093.  
  1094. USAtext = TextDrawCreate(511.000000, 100.000000, "Time: EUA");
  1095. TextDrawBackgroundColor(USAtext, 255);
  1096. TextDrawFont(USAtext, 1);
  1097. TextDrawLetterSize(USAtext, 0.500000, 1.000000);
  1098. TextDrawColor(USAtext, AZUL);
  1099. TextDrawSetOutline(USAtext, 0);
  1100. TextDrawSetProportional(USAtext, 1);
  1101. TextDrawSetShadow(USAtext, 1);
  1102.  
  1103. Arabtext = TextDrawCreate(503.000000, 100.000000, "Time: Arabia");
  1104. TextDrawBackgroundColor(Arabtext, 255);
  1105. TextDrawFont(Arabtext, 1);
  1106. TextDrawLetterSize(Arabtext, 0.500000, 1.000000);
  1107. TextDrawColor(Arabtext, AMARELO);
  1108. TextDrawSetOutline(Arabtext, 0);
  1109. TextDrawSetProportional(Arabtext, 1);
  1110. TextDrawSetShadow(Arabtext, 1);
  1111.  
  1112. Francetext = TextDrawCreate(503.000000, 100.000000, "Time: Franca");
  1113. TextDrawBackgroundColor(Francetext, 255);
  1114. TextDrawFont(Francetext, 1);
  1115. TextDrawLetterSize(Francetext, 0.500000, 1.000000);
  1116. TextDrawColor(Francetext, LARANJA);
  1117. TextDrawSetOutline(Francetext, 0);
  1118. TextDrawSetProportional(Francetext, 1);
  1119. TextDrawSetShadow(Francetext, 1);
  1120.  
  1121. Russiatext = TextDrawCreate(506.000000, 100.000000, "Time: Russia");
  1122. TextDrawBackgroundColor(Russiatext, 255);
  1123. TextDrawFont(Russiatext, 1);
  1124. TextDrawLetterSize(Russiatext, 0.500000, 1.000000);
  1125. TextDrawColor(Russiatext, COLOR_PURPLE);
  1126. TextDrawSetOutline(Russiatext, 0);
  1127. TextDrawSetProportional(Russiatext, 1);
  1128. TextDrawSetShadow(Russiatext, 1);
  1129.  
  1130. Englandtext = TextDrawCreate(487.000000, 100.000000, "Time: Inglaterra");
  1131. TextDrawBackgroundColor(Englandtext, 255);
  1132. TextDrawFont(Englandtext, 1);
  1133. TextDrawLetterSize(Englandtext, 0.500000, 1.000000);
  1134. TextDrawColor(Englandtext, -1);
  1135. TextDrawSetOutline(Englandtext, 0);
  1136. TextDrawSetProportional(Englandtext, 1);
  1137. TextDrawSetShadow(Englandtext, 1);
  1138.  
  1139.  
  1140.  
  1141. //Textdraw
  1142. /*Brasiltext = TextDrawCreate(20 ,330 , "Time: Brasil");
  1143. TextDrawFont(Brasiltext , 1);
  1144. TextDrawColor(Brasiltext , 0x88ff00FF);
  1145.  
  1146. USAtext = TextDrawCreate(20 ,330 , "Time: EUA");
  1147. TextDrawFont(USAtext , 3);
  1148. TextDrawColor(USAtext , AZUL);
  1149.  
  1150. Arabtext = TextDrawCreate(20 ,330 , "Time: Arabia");
  1151. TextDrawFont(Arabtext , 1);
  1152. TextDrawColor(Arabtext , AMARELO);
  1153.  
  1154. Francetext = TextDrawCreate(20 ,330 , "Time: France");
  1155. TextDrawFont(Francetext , 1);
  1156. TextDrawColor(Francetext , LARANJA);
  1157.  
  1158. Englandtext = TextDrawCreate(20 ,330 , "Time: Inglaterra");
  1159. TextDrawFont(Englandtext , 1);
  1160. TextDrawColor(Englandtext , BRANCO);
  1161.  
  1162. Russiatext = TextDrawCreate(20 ,330 , "Time: Russia");
  1163. TextDrawFont(Russiatext , 1);
  1164. TextDrawColor(Russiatext , COLOR_PURPLE);*/
  1165.  
  1166. //Zone
  1167. USAzone = GangZoneCreate(-168.1480,2588.8999,-400.7213,2759.2844);
  1168. Russiazone = GangZoneCreate(-1643.8575,2737.6323,-1363.2451,2546.4065);
  1169. Francezone = GangZoneCreate(-260.2296,1703.7390,-360.7617,1820.9886);
  1170. Brasilzone = GangZoneCreate(-331.1071,1239.9489,62.0659,1048.4388);
  1171. Englandzone = GangZoneCreate(1012.2824,2281.5361,1170.2402,2058.0911);
  1172. Arabzone = GangZoneCreate(-949.0573,1466.8405,-730.0573,1620.9178);
  1173. return 1;
  1174. }
  1175.  
  1176.  
  1177. public OnGameModeExit()
  1178. {
  1179. return 1;
  1180. }
  1181.  
  1182. forward RandomMSGs();
  1183. public RandomMSGs()
  1184. {
  1185. new string[100];
  1186. new random1 = random(sizeof(MSGs));
  1187.  
  1188. format(string, sizeof(string), "{35CA69}Tom:{FFFFFF} %s", MSGs[random1]);
  1189. SendClientMessageToAll(BRANCO,string);
  1190. }
  1191.  
  1192.  
  1193. forward OnPlayerEnterDynamicCP(playerid,checkpointid);
  1194. public OnPlayerEnterDynamicCP(playerid,checkpointid)
  1195. {
  1196. if(checkpointid == CP[OILFIELD])
  1197. {
  1198. ActiveOil(playerid);
  1199. }
  1200. if(checkpointid == CP[QUARRY])
  1201. {
  1202. ActiveQuarry(playerid);
  1203. }
  1204. if(checkpointid == CP[BIGEAR])
  1205. {
  1206. ActiveBigEar(playerid);
  1207. }
  1208. if(checkpointid == CP[UFO])
  1209. {
  1210. ActiveUfo(playerid);
  1211. }
  1212. if(checkpointid == CP[AREA51])
  1213. {
  1214. ActiveArea51(playerid);
  1215. }
  1216. if(checkpointid == CP[ABANDONED])
  1217. {
  1218. ActiveAbandoned(playerid);
  1219. }
  1220. if(checkpointid == CP[SNAKE])
  1221. {
  1222. ActiveSnake(playerid);
  1223. }
  1224. if(checkpointid == CP[BASIN])
  1225. {
  1226. ActiveBasin(playerid);
  1227. }
  1228. if(checkpointid == CP[BEACHSIDE])
  1229. {
  1230. ActiveBeach(playerid);
  1231. }
  1232. if(checkpointid == CP[RESTAURANT])
  1233. {
  1234. ActiveRestaurant(playerid);
  1235. }
  1236. if(checkpointid == CP[GAS])
  1237. {
  1238. ActiveGas(playerid);
  1239. }
  1240. if(checkpointid == CP[STADIUM])
  1241. {
  1242. ActiveStadium(playerid);
  1243. }
  1244. if(checkpointid == CP[BRIDGE])
  1245. {
  1246. ActiveBridge(playerid);
  1247. }
  1248. if(checkpointid == CP[MOTEL])
  1249. {
  1250. ActiveMotel(playerid);
  1251. }
  1252. if(checkpointid == CP[STATION])
  1253. {
  1254. ActiveStation(playerid);
  1255. }
  1256. if(checkpointid == CP[STUDIO])
  1257. {
  1258. ActiveStudio(playerid);
  1259. }
  1260. if(checkpointid == CP[PROJECT])
  1261. {
  1262. ActiveProject(playerid);
  1263. }
  1264. return 1;
  1265. }
  1266.  
  1267. forward OnPlayerLeaveDynamicCP(playerid,checkpointid);
  1268. public OnPlayerLeaveDynamicCP(playerid,checkpointid)
  1269. {
  1270. if(checkpointid == CP[OILFIELD]&&IsPlayerCapturing[playerid][OILFIELD] == 1&&Captured[playerid][OILFIELD] == 0)
  1271. {
  1272. LeavingOil(playerid);
  1273. }
  1274. if(checkpointid == CP[QUARRY]&&IsPlayerCapturing[playerid][QUARRY] == 1&&Captured[playerid][QUARRY] == 0)
  1275. {
  1276. LeavingQuarry(playerid);
  1277. }
  1278. if(checkpointid == CP[BIGEAR]&&IsPlayerCapturing[playerid][BIGEAR] == 1&&Captured[playerid][BIGEAR] == 0)
  1279. {
  1280. LeavingBigEar(playerid);
  1281. }
  1282. if(checkpointid == CP[UFO]&&IsPlayerCapturing[playerid][UFO] == 1&&Captured[playerid][UFO] == 0)
  1283. {
  1284. LeavingUfo(playerid);
  1285. }
  1286. if(checkpointid == CP[AREA51]&&IsPlayerCapturing[playerid][AREA51] == 1&&Captured[playerid][AREA51] == 0)
  1287. {
  1288. LeavingArea51(playerid);
  1289. }
  1290. if(checkpointid == CP[SNAKE]&&IsPlayerCapturing[playerid][SNAKE] == 1&&Captured[playerid][SNAKE] == 0)
  1291. {
  1292. LeavingSnake(playerid);
  1293. }
  1294. if(checkpointid == CP[BASIN]&&IsPlayerCapturing[playerid][BASIN] == 1&&Captured[playerid][BASIN] == 0)
  1295. {
  1296. LeavingBasin(playerid);
  1297. }
  1298. if(checkpointid == CP[BEACHSIDE]&&IsPlayerCapturing[playerid][BEACHSIDE] == 1&&Captured[playerid][BEACHSIDE] == 0)
  1299. {
  1300. LeavingBeach(playerid);
  1301. }
  1302. if(checkpointid == CP[RESTAURANT]&&IsPlayerCapturing[playerid][RESTAURANT] == 1&&Captured[playerid][RESTAURANT] == 0)
  1303. {
  1304. LeavingRestaurant(playerid);
  1305. }
  1306. if(checkpointid == CP[GAS]&&IsPlayerCapturing[playerid][GAS] == 1&&Captured[playerid][GAS] == 0)
  1307. {
  1308. LeavingGas(playerid);
  1309. }
  1310. if(checkpointid == CP[STADIUM]&&IsPlayerCapturing[playerid][STADIUM] == 1&&Captured[playerid][STADIUM] == 0)
  1311. {
  1312. LeavingStadium(playerid);
  1313. }
  1314. if(checkpointid == CP[BRIDGE]&&IsPlayerCapturing[playerid][BRIDGE] == 1&&Captured[playerid][BRIDGE] == 0)
  1315. {
  1316. LeavingBridge(playerid);
  1317. }
  1318. if(checkpointid == CP[MOTEL]&&IsPlayerCapturing[playerid][MOTEL] == 1&&Captured[playerid][MOTEL] == 0)
  1319. {
  1320. LeavingMotel(playerid);
  1321. }
  1322. if(checkpointid == CP[STATION]&&IsPlayerCapturing[playerid][STATION] == 1&&Captured[playerid][STATION] == 0)
  1323. {
  1324. LeavingStation(playerid);
  1325. }
  1326. if(checkpointid == CP[STUDIO]&&IsPlayerCapturing[playerid][STUDIO] == 1&&Captured[playerid][STUDIO] == 0)
  1327. {
  1328. LeavingStudio(playerid);
  1329. }
  1330. if(checkpointid == CP[ABANDONED]&&Captured[playerid][ABANDONED] == 0&&IsPlayerCapturing[playerid][ABANDONED] == 1)
  1331. {
  1332. LeavingAbandoned(playerid);
  1333. }
  1334. if(checkpointid == CP[PROJECT]&&IsPlayerCapturing[playerid][PROJECT] == 1&&Captured[playerid][PROJECT] == 0)
  1335. {
  1336. LeavingProject(playerid);
  1337. }
  1338. return 1;
  1339. }
  1340.  
  1341. public OnPlayerTakeDamage(playerid,issuerid,Float:amount,weaponid)
  1342. {
  1343. if(gPais[issuerid] == gPais[playerid]&&IsPlayerInDuel[playerid]==0&&IsPlayerInDuel[issuerid]==0)
  1344. {
  1345. new Float:health;
  1346. new Float:Armor;
  1347. GetPlayerHealth(playerid,health);
  1348. GetPlayerArmour(playerid,Armor);
  1349. SetPlayerHealth(playerid,health);
  1350. SetPlayerArmour(playerid,Armor);
  1351. GameTextForPlayer(issuerid,"~r~CUIDADO: Você está Atirando no seu Companheiro!",3000,6);
  1352. }
  1353. else if(gPais[issuerid]!=gPais[playerid])
  1354. {
  1355. PlayerPlaySound(issuerid,1057,0,0,0);
  1356. }
  1357. else if(AFK[playerid] == 1&&AFK[issuerid] == 1)
  1358. {
  1359. SpawnPlayer(issuerid);
  1360. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] você esta AFK !");
  1361. }
  1362. return 1;
  1363. }
  1364.  
  1365.  
  1366.  
  1367.  
  1368. // Capture zone stock!
  1369.  
  1370. //Oil Field!
  1371. stock ActiveOil(playerid)
  1372. {
  1373. if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[OILFIELD] == 0&&tCheck[OILFIELD]!=gPais[playerid])
  1374. {
  1375. GangZoneFlashForAll(Zone[OILFIELD],GetPlayerColor(playerid));
  1376. if(tCheck[OILFIELD] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  1377. if(UnderAttack[OILFIELD] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
  1378. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
  1379. SendClientMessage(playerid,ROSA,"Aguarde nesse ponto por 20 segundos para dominar !");
  1380. UnderAttack[OILFIELD] = 1;
  1381. Captured[playerid][OILFIELD] = 0;
  1382. IsPlayerCapturing[playerid][OILFIELD] = 1;
  1383. timer[playerid][OILFIELD] = SetTimerEx("OilCaptured",20000,false,"i",playerid);
  1384. if(tCheck[OILFIELD] == BRASIL)
  1385. {
  1386. SendClientMessage(playerid,-1,"Territorio Brasileiro");
  1387. foreach(new i:Player)
  1388. {
  1389. if(gPais[i] == BRASIL)
  1390. {
  1391. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Oil Field - está sob ataque!");
  1392. }
  1393. }
  1394. }
  1395. if(tCheck[OILFIELD] == FRANCE)
  1396. {
  1397. SendClientMessage(playerid,BRANCO,"Territorio Frances");
  1398. foreach(new i:Player)
  1399. {
  1400. if(gPais[i] == FRANCE)
  1401. {
  1402. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Oil Field - está sob ataque!");
  1403. }
  1404. }
  1405. }
  1406. if(tCheck[OILFIELD] == RUSSIA)
  1407. {
  1408. SendClientMessage(playerid,BRANCO,"Territorio Russo");
  1409. foreach(new i:Player)
  1410. {
  1411. if(gPais[i] == RUSSIA)
  1412. {
  1413. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Oil Field - está sob ataque!");
  1414. }
  1415. }
  1416. }
  1417. if(tCheck[OILFIELD] == USA)
  1418. {
  1419. SendClientMessage(playerid,BRANCO,"Territorio Americano");
  1420. foreach(new i:Player)
  1421. {
  1422. if(gPais[i] == USA)
  1423. {
  1424. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Oil Field - está sob ataque!");
  1425. }
  1426. }
  1427. }
  1428. if(tCheck[OILFIELD] == ENGLAND)
  1429. {
  1430. SendClientMessage(playerid,BRANCO,"Territorio Ingles");
  1431. foreach(new i:Player)
  1432. {
  1433. if(gPais[i] == ENGLAND)
  1434. {
  1435. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Oil Field - está sob ataque!");
  1436. }
  1437. }
  1438. }
  1439. if(tCheck[OILFIELD] == ARAB)
  1440. {
  1441. SendClientMessage(playerid,BRANCO,"Territorio Arabe");
  1442. foreach(new i:Player)
  1443. {
  1444. if(gPais[i] == ARAB)
  1445. {
  1446. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Oil Field - está sob ataque!");
  1447. }
  1448. }
  1449.  
  1450. }
  1451. if(tCheck[OILFIELD] == NONE)
  1452. {
  1453. SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém");
  1454. }
  1455. }
  1456. else if(tCheck[OILFIELD] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR] Este Territorio ja é controlado por seu Pais!");
  1457. return 1;
  1458. }
  1459.  
  1460. forward OilCaptured(playerid);
  1461. public OilCaptured(playerid)
  1462. {
  1463. UnderAttack[OILFIELD] = 0;
  1464. tCheck[OILFIELD] = gPais[playerid];
  1465. IsPlayerCapturing[playerid][OILFIELD] = 0;
  1466. Captured[playerid][OILFIELD] = 1;
  1467. GangZoneShowForAll(Zone[OILFIELD],GetPlayerColor(playerid));
  1468. new str[256],Name[MAX_PLAYER_NAME];
  1469. GetPlayerName(playerid,Name,sizeof(Name));
  1470. format(str,sizeof(str),"~g~%s[%d] dominou - Oil filed - para %s",Name,playerid,GetTeamName(playerid));
  1471. SendBoxMessage(str);
  1472. SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Oil Field - para seu Pais!");
  1473. GivePlayerMoney(playerid,5000);
  1474. SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
  1475. KillTimer(timer[playerid][OILFIELD]);
  1476. new INI:File = INI_Open(UserPath(playerid));
  1477. INI_SetTag(File,"Data");
  1478. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  1479. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  1480. INI_Close(File);
  1481. foreach(new i:Player)
  1482. {
  1483. if(gPais[i] == gPais[playerid]&&i!=playerid)
  1484. {
  1485. SendClientMessage(i,VERDE,"Seu País conquistou - Oil Field - Você ganhou +1 score e + R$ 1000!");
  1486. GivePlayerMoney(i,1000);
  1487. SetPlayerScore(i,GetPlayerScore(i)+1);
  1488. }
  1489. }
  1490. return 1;
  1491. }
  1492.  
  1493. stock LeavingOil(playerid)
  1494. {
  1495. UnderAttack[OILFIELD] = 0;
  1496. Captured[playerid][OILFIELD] = 0;
  1497. GangZoneStopFlashForAll(Zone[OILFIELD]);
  1498. KillTimer(timer[playerid][OILFIELD]);
  1499. SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
  1500. return 1;
  1501. }
  1502.  
  1503. //Hunter Quarry
  1504. stock ActiveQuarry(playerid)
  1505. {
  1506. if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[QUARRY] == 0&&tCheck[QUARRY]!=gPais[playerid])
  1507. {
  1508. if(tCheck[QUARRY] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  1509. if(UnderAttack[QUARRY] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
  1510. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
  1511. UnderAttack[QUARRY] = 1;
  1512. Captured[playerid][QUARRY] = 0;
  1513. IsPlayerCapturing[playerid][QUARRY] = 1;
  1514. GangZoneFlashForAll(Zone[QUARRY],GetPlayerColor(playerid));
  1515. SendClientMessage(playerid,BRANCO,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
  1516. timer[playerid][QUARRY] = SetTimerEx("QuarryCaptured",20000,false,"i",playerid);
  1517. if(tCheck[QUARRY] == BRASIL)
  1518. {
  1519. SendClientMessage(playerid,BRANCO,"Territorio Brasileiro");
  1520. foreach(new i:Player)
  1521. {
  1522. if(gPais[i] == BRASIL)
  1523. {
  1524. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Hunter Quarry - está sob ataque!");
  1525. }
  1526. }
  1527. }
  1528. if(tCheck[QUARRY] == USA)
  1529. {
  1530. SendClientMessage(playerid,BRANCO,"Territorio Americano");
  1531. foreach(new i:Player)
  1532. {
  1533. if(gPais[i] == USA)
  1534. {
  1535. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Hunter Quarry - está sob ataque!");
  1536. }
  1537. }
  1538. }
  1539. if(tCheck[QUARRY] == FRANCE)
  1540. {
  1541. SendClientMessage(playerid,-1,"Territorio Frances");
  1542. foreach(new i:Player)
  1543. {
  1544. if(gPais[i] == FRANCE)
  1545. {
  1546. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Hunter Quarry - está sob ataque!");
  1547. }
  1548. }
  1549. }
  1550. if(tCheck[QUARRY] == ARAB)
  1551. {
  1552. SendClientMessage(playerid,-1,"Territorio Arabe");
  1553. foreach(new i:Player)
  1554. {
  1555. if(gPais[i] == ARAB)
  1556. {
  1557. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Hunter Quarry - está sob ataque!");
  1558. }
  1559. }
  1560. }
  1561. if(tCheck[QUARRY] == ENGLAND)
  1562. {
  1563. SendClientMessage(playerid,-1,"Territorio Ingles");
  1564. foreach(new i:Player)
  1565. {
  1566. if(gPais[i] == ENGLAND)
  1567. {
  1568. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Hunter Quarry - está sob ataque!");
  1569. }
  1570. }
  1571. }
  1572. if(tCheck[QUARRY] == RUSSIA)
  1573. {
  1574. SendClientMessage(playerid,-1,"Territorio Russo");
  1575. foreach(new i:Player)
  1576. {
  1577. if(gPais[i] == RUSSIA)
  1578. {
  1579. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Hunter Quarry - está sob ataque!");
  1580. }
  1581. }
  1582. }
  1583. if(tCheck[BIGEAR] == NONE)
  1584. {
  1585. SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
  1586. }
  1587. }
  1588. return 1;
  1589. }
  1590.  
  1591. forward QuarryCaptured(playerid);
  1592. public QuarryCaptured(playerid)
  1593. {
  1594. UnderAttack[QUARRY] = 0;
  1595. Captured[playerid][QUARRY] = 1;
  1596. GangZoneStopFlashForAll(Zone[QUARRY]);
  1597. KillTimer(timer[playerid][QUARRY]);
  1598. GivePlayerMoney(playerid,5000);
  1599. tCheck[QUARRY] = gPais[playerid];
  1600. GangZoneShowForAll(Zone[QUARRY],GetPlayerColor(playerid));
  1601. new str[256],Name[MAX_PLAYER_NAME];
  1602. GetPlayerName(playerid,Name,sizeof(Name));
  1603. format(str,sizeof(str),"~g~%s[%d] dominou - Hunter Quarry - para %s",Name,playerid,GetTeamName(playerid));
  1604. SendBoxMessage(str);
  1605. SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
  1606. SendClientMessage(playerid,VERDE,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Hunter Quarry - para seu Pais!");
  1607. new INI:File = INI_Open(UserPath(playerid));
  1608. INI_SetTag(File,"Data");
  1609. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  1610. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  1611. INI_Close(File);
  1612. foreach(new i:Player)
  1613. {
  1614. if(gPais[i] == gPais[playerid]&&i!=playerid)
  1615. {
  1616. SetPlayerScore(i,GetPlayerScore(i)+1);
  1617. GivePlayerMoney(i,1000);
  1618. SendClientMessage(i,BRANCO,"Seu País conquistou - Hunter Quarry - Você ganhou +1 score e + R$ 1000!");
  1619. }
  1620. }
  1621. return 1;
  1622. }
  1623.  
  1624. stock LeavingQuarry(playerid)
  1625. {
  1626. UnderAttack[QUARRY] = 0;
  1627. Captured[playerid][QUARRY] = 0;
  1628. IsPlayerCapturing[playerid][QUARRY] = 0;
  1629. KillTimer(timer[playerid][QUARRY]);
  1630. GangZoneStopFlashForAll(Zone[QUARRY]);
  1631. SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
  1632. }
  1633.  
  1634. //Bigear
  1635.  
  1636. stock ActiveBigEar(playerid)
  1637. {
  1638. if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[BIGEAR] == 0&&tCheck[BIGEAR]!=gPais[playerid])
  1639. {
  1640. if(tCheck[BIGEAR] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  1641. if(UnderAttack[BIGEAR] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
  1642. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
  1643. UnderAttack[BIGEAR] = 1;
  1644. Captured[playerid][BIGEAR] = 0;
  1645. IsPlayerCapturing[playerid][BIGEAR] = 1;
  1646. GangZoneFlashForAll(Zone[BIGEAR],GetPlayerColor(playerid));
  1647. SendClientMessage(playerid,BRANCO,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
  1648. timer[playerid][BIGEAR] = SetTimerEx("BigEarCaptured",20000,false,"i",playerid);
  1649. if(tCheck[BIGEAR] == BRASIL)
  1650. {
  1651. SendClientMessage(playerid,-1,"Territorio Brasileiro");
  1652. foreach(new i:Player)
  1653. {
  1654. if(gPais[i] == BRASIL)
  1655. {
  1656. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA]- Big Ear - esta sob ataque!");
  1657. }
  1658. }
  1659. }
  1660. if(tCheck[BIGEAR] == USA)
  1661. {
  1662. SendClientMessage(playerid,-1,"Territorio Americano");
  1663. foreach(new i:Player)
  1664. {
  1665. if(gPais[i] == USA)
  1666. {
  1667. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA]- Big Ear - esta sob ataque!");
  1668. }
  1669. }
  1670. }
  1671. if(tCheck[BIGEAR] == ARAB)
  1672. {
  1673. SendClientMessage(playerid,-1,"Territorio Arabe");
  1674. foreach(new i:Player)
  1675. {
  1676. if(gPais[i] == ARAB)
  1677. {
  1678. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA]- Big Ear - esta sob ataque!!");
  1679. }
  1680. }
  1681. }
  1682. if(tCheck[BIGEAR] == FRANCE)
  1683. {
  1684. SendClientMessage(playerid,-1,"Territorio Frances");
  1685. foreach(new i:Player)
  1686. {
  1687. if(gPais[i] == FRANCE)
  1688. {
  1689. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA]- Big Ear - esta sob ataque!");
  1690. }
  1691. }
  1692. }
  1693. if(tCheck[BIGEAR] == ENGLAND)
  1694. {
  1695. SendClientMessage(playerid,-1,"Territorio Ingles");
  1696. foreach(new i:Player)
  1697. {
  1698. if(gPais[i] == ENGLAND)
  1699. {
  1700. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA]- Big Ear - esta sob ataque!");
  1701. }
  1702. }
  1703. }
  1704. if(tCheck[BIGEAR] == RUSSIA)
  1705. {
  1706. SendClientMessage(playerid,-1,"Territorio Russo");
  1707. foreach(new i:Player)
  1708. {
  1709. if(gPais[i] == RUSSIA)
  1710. {
  1711. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA]- Big Ear - esta sob ataque!");
  1712. }
  1713. }
  1714. }
  1715. if(tCheck[BIGEAR] == NONE)
  1716. {
  1717. SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
  1718. }
  1719. }
  1720. return 1;
  1721. }
  1722.  
  1723. forward BigEarCaptured(playerid);
  1724. public BigEarCaptured(playerid)
  1725. {
  1726. tCheck[BIGEAR] = gPais[playerid];
  1727. GangZoneShowForAll(Zone[BIGEAR],GetPlayerColor(playerid));
  1728. GangZoneStopFlashForAll(Zone[BIGEAR]);
  1729. UnderAttack[BIGEAR] = 0;
  1730. Captured[playerid][BIGEAR] = 1;
  1731. KillTimer(timer[playerid][BIGEAR]);
  1732. SendClientMessage(playerid,VERDE,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Big Ear - para seu Pais!");
  1733. GivePlayerMoney(playerid,5000);
  1734. SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
  1735. new str[256],Name[MAX_PLAYER_NAME];
  1736. GetPlayerName(playerid,Name,sizeof(Name));
  1737. format(str,sizeof(str),"~g~%s[%d] dominou - Big Ear - para %s",Name,playerid,GetTeamName(playerid));
  1738. SendBoxMessage(str);
  1739. new INI:File = INI_Open(UserPath(playerid));
  1740. INI_SetTag(File,"Data");
  1741. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  1742. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  1743. INI_Close(File);
  1744. foreach(new i:Player)
  1745. {
  1746. if(gPais[i] == gPais[playerid]&&i!=playerid)
  1747. {
  1748. GivePlayerMoney(i,1000);
  1749. SetPlayerScore(i,GetPlayerScore(i)+1);
  1750. SendClientMessage(i,VERDE,"Seu País conquistou - Big Ear - Você ganhou +1 score e + R$ 1000!");
  1751. }
  1752. }
  1753. return 1;
  1754. }
  1755.  
  1756. stock LeavingBigEar(playerid)
  1757. {
  1758. UnderAttack[BIGEAR] = 0;
  1759. IsPlayerCapturing[playerid][BIGEAR] = 0;
  1760. Captured[playerid][BIGEAR] = 0;
  1761. GangZoneStopFlashForAll(Zone[BIGEAR]);
  1762. KillTimer(timer[playerid][BIGEAR]);
  1763. SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
  1764. return 1;
  1765. }
  1766.  
  1767. //UFO Zone!
  1768. stock ActiveUfo(playerid)
  1769. {
  1770. if(!IsPlayerInAnyVehicle(playerid)&&tCheck[UFO]!=gPais[playerid]&&UnderAttack[UFO] == 0)
  1771. {
  1772. if(tCheck[UFO] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  1773. if(UnderAttack[UFO] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
  1774. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
  1775. UnderAttack[UFO] = 1;
  1776. IsPlayerCapturing[playerid][UFO] = 1;
  1777. Captured[playerid][UFO] = 0;
  1778. GangZoneFlashForAll(Zone[UFO],GetPlayerColor(playerid));
  1779. timer[playerid][UFO] = SetTimerEx("UfoCaptured",20000,false,"i",playerid);
  1780. SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
  1781. if(tCheck[UFO] == BRASIL)
  1782. {
  1783. SendClientMessage(playerid,-1,"Territorio Brasileiro");
  1784. foreach(new i:Player)
  1785. {
  1786. if(gPais[i] == BRASIL)
  1787. {
  1788. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Ufo - está sob ataque!");
  1789. }
  1790. }
  1791. }
  1792. if(tCheck[UFO] == USA)
  1793. {
  1794. SendClientMessage(playerid,-1,"Territorio Americano");
  1795. foreach(new i:Player)
  1796. {
  1797. if(gPais[i] == USA)
  1798. {
  1799. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Ufo - está sob ataque!");
  1800. }
  1801. }
  1802. }
  1803. if(tCheck[UFO] == RUSSIA)
  1804. {
  1805. SendClientMessage(playerid,-1,"Territorio Russo");
  1806. foreach(new i:Player)
  1807. {
  1808. if(gPais[i] == RUSSIA)
  1809. {
  1810. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Ufo - está sob ataque!");
  1811. }
  1812. }
  1813. }
  1814. if(tCheck[UFO] == ENGLAND)
  1815. {
  1816. SendClientMessage(playerid,-1,"Territorio Ingles");
  1817. foreach(new i:Player)
  1818. {
  1819. if(gPais[i] == ENGLAND)
  1820. {
  1821. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Ufo - está sob ataque!");
  1822. }
  1823. }
  1824. }
  1825. if(tCheck[UFO] == FRANCE)
  1826. {
  1827. SendClientMessage(playerid,-1,"Territorio Frances");
  1828. foreach(new i:Player)
  1829. {
  1830. if(gPais[i] == FRANCE)
  1831. {
  1832. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Ufo - está sob ataque!");
  1833. }
  1834. }
  1835. }
  1836. if(tCheck[UFO] == ARAB)
  1837. {
  1838. SendClientMessage(playerid,-1,"Territorio Arabe");
  1839. foreach(new i:Player)
  1840. {
  1841. if(gPais[i] == ARAB)
  1842. {
  1843. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Ufo - está sob ataque!");
  1844. }
  1845. }
  1846. }
  1847. if(tCheck[UFO] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
  1848. }
  1849. return 1;
  1850. }
  1851.  
  1852. forward UfoCaptured(playerid);
  1853. public UfoCaptured(playerid)
  1854. {
  1855. UnderAttack[UFO] = 0;
  1856. Captured[playerid][UFO] = 1;
  1857. tCheck[UFO] = gPais[playerid];
  1858. KillTimer(timer[playerid][UFO]);
  1859. GangZoneStopFlashForAll(Zone[UFO]);
  1860. GangZoneShowForAll(Zone[UFO],GetPlayerColor(playerid));
  1861. GivePlayerMoney(playerid,5000);
  1862. SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
  1863. SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Ufo - para seu Pais!");
  1864. new str[256],Name[MAX_PLAYER_NAME];
  1865. GetPlayerName(playerid,Name,sizeof(Name));
  1866. format(str,sizeof(str),"~g~%s[%d] dominou - Ufo - para %s",Name,playerid,GetTeamName(playerid));
  1867. SendBoxMessage(str);
  1868. new INI:File = INI_Open(UserPath(playerid));
  1869. INI_SetTag(File,"Data");
  1870. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  1871. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  1872. INI_Close(File);
  1873. foreach(new i:Player)
  1874. {
  1875. if(gPais[i] == gPais[playerid]&&i!=playerid)
  1876. {
  1877. GivePlayerMoney(i,1000);
  1878. SetPlayerScore(i,GetPlayerScore(i)+1);
  1879. SendClientMessage(i,VERDE,"Seu País conquistou - Ufo - Você ganhou +1 score e + R$ 1000!");
  1880. }
  1881. }
  1882. return 1;
  1883. }
  1884.  
  1885. stock LeavingUfo(playerid)
  1886. {
  1887. UnderAttack[UFO] = 0;
  1888. Captured[playerid][UFO] = 0;
  1889. IsPlayerCapturing[playerid][UFO] = 0;
  1890. GangZoneStopFlashForAll(Zone[UFO]);
  1891. KillTimer(timer[playerid][UFO]);
  1892. SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
  1893. return 1;
  1894. }
  1895.  
  1896. //Area51
  1897. stock ActiveArea51(playerid)
  1898. {
  1899. if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[AREA51] == 0&&tCheck[AREA51]!=gPais[playerid])
  1900. {
  1901. if(tCheck[AREA51] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  1902. if(UnderAttack[AREA51] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
  1903. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
  1904. UnderAttack[AREA51] = 1;
  1905. IsPlayerCapturing[playerid][AREA51] = 1;
  1906. Captured[playerid][AREA51] = 0;
  1907. GangZoneFlashForAll(Zone[AREA51],GetPlayerColor(playerid));
  1908. timer[playerid][AREA51] = SetTimerEx("Area51Captured",20000,false,"i",playerid);
  1909. SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
  1910. if(tCheck[AREA51] == BRASIL)
  1911. {
  1912. SendClientMessage(playerid,-1,"Territorio Brasileiro");
  1913. foreach(new i:Player)
  1914. {
  1915. if(gPais[i] == BRASIL)
  1916. {
  1917. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Area51 - está sob ataque!");
  1918. }
  1919. }
  1920. }
  1921. if(tCheck[AREA51] == RUSSIA)
  1922. {
  1923. SendClientMessage(playerid,-1,"Territorio Russo");
  1924. foreach(new i:Player)
  1925. {
  1926. if(gPais[i] == RUSSIA)
  1927. {
  1928. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Area51 - está sob ataque!");
  1929. }
  1930. }
  1931. }
  1932. if(tCheck[AREA51] == ENGLAND)
  1933. {
  1934. SendClientMessage(playerid,-1,"Territorio Ingles");
  1935. foreach(new i:Player)
  1936. {
  1937. if(gPais[i] == ENGLAND)
  1938. {
  1939. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Area51 - está sob ataque!");
  1940. }
  1941. }
  1942. }
  1943. if(tCheck[AREA51] == USA)
  1944. {
  1945. SendClientMessage(playerid,-1,"Territorio Americano");
  1946. foreach(new i:Player)
  1947. {
  1948. if(gPais[i] == USA)
  1949. {
  1950. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Area51 - está sob ataque!");
  1951. }
  1952. }
  1953. }
  1954. if(tCheck[AREA51] == FRANCE)
  1955. {
  1956. SendClientMessage(playerid,-1,"Territorio Frances");
  1957. foreach(new i:Player)
  1958. {
  1959. if(gPais[i] == FRANCE)
  1960. {
  1961. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Area51 - está sob ataque!");
  1962. }
  1963. }
  1964. }
  1965. if(tCheck[AREA51] == ARAB)
  1966. {
  1967. SendClientMessage(playerid,-1,"Territorio Arabe");
  1968. foreach(new i:Player)
  1969. {
  1970. if(gPais[i] == ARAB)
  1971. {
  1972. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Area51 - está sob ataque!");
  1973. }
  1974. }
  1975. }
  1976. if(tCheck[AREA51] == NONE)
  1977. {
  1978. SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
  1979. }
  1980. }
  1981. return 1;
  1982. }
  1983.  
  1984. forward Area51Captured(playerid);
  1985. public Area51Captured(playerid)
  1986. {
  1987. GangZoneStopFlashForAll(Zone[AREA51]);
  1988. GangZoneShowForAll(Zone[AREA51],GetPlayerColor(playerid));
  1989. KillTimer(timer[playerid][AREA51]);
  1990. UnderAttack[AREA51] = 0;
  1991. tCheck[AREA51] = gPais[playerid];
  1992. Captured[playerid][AREA51] = 1;
  1993. SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
  1994. SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Area 51 - para seu Pais!");
  1995. GivePlayerMoney(playerid,5000);
  1996. new str[256],Name[MAX_PLAYER_NAME];
  1997. GetPlayerName(playerid,Name,sizeof(Name));
  1998. format(str,sizeof(str),"~g~%s[%d] dominou - Area51 - para %s",Name,playerid,GetTeamName(playerid));
  1999. SendBoxMessage(str);
  2000. new INI:File = INI_Open(UserPath(playerid));
  2001. INI_SetTag(File,"Data");
  2002. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  2003. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  2004. INI_Close(File);
  2005. foreach(new i:Player)
  2006. {
  2007. if(gPais[i] == gPais[playerid]&&i!=playerid)
  2008. {
  2009. GivePlayerMoney(i,1000);
  2010. SetPlayerScore(i,GetPlayerScore(i)+1);
  2011. SendClientMessage(i,VERDE,"Seu País conquistou - Area 51 - Você ganhou +1 score e + R$ 1000!");
  2012. }
  2013. }
  2014. }
  2015.  
  2016. stock LeavingArea51(playerid)
  2017. {
  2018. UnderAttack[AREA51] = 0;
  2019. Captured[playerid][AREA51] = 0;
  2020. IsPlayerCapturing[playerid][AREA51] = 0;
  2021. GangZoneStopFlashForAll(Zone[AREA51]);
  2022. KillTimer(timer[playerid][AREA51]);
  2023. SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
  2024. return 1;
  2025. }
  2026.  
  2027. //Abandoned airstrip
  2028. stock ActiveAbandoned(playerid)
  2029. {
  2030. if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[ABANDONED] == 0&&tCheck[ABANDONED]!=gPais[playerid])
  2031. {
  2032. if(tCheck[ABANDONED] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  2033. if(UnderAttack[ABANDONED] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
  2034. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
  2035. UnderAttack[ABANDONED] = 1;
  2036. Captured[playerid][ABANDONED] = 0;
  2037. IsPlayerCapturing[playerid][ABANDONED] = 1;
  2038. GangZoneFlashForAll(Zone[ABANDONED],GetPlayerColor(playerid));
  2039. timer[playerid][ABANDONED] = SetTimerEx("AbandonedCaptured",20000,false,"i",playerid);
  2040. SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
  2041. if(tCheck[ABANDONED] == BRASIL)
  2042. {
  2043. SendClientMessage(playerid,-1,"Territorio Brasileiro");
  2044. foreach(new i:Player)
  2045. {
  2046. if(gPais[i] == BRASIL)
  2047. {
  2048. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Abandoned Airstrip - está sob ataque!");
  2049. }
  2050. }
  2051. }
  2052. if(tCheck[ABANDONED] == FRANCE)
  2053. {
  2054. SendClientMessage(playerid,-1,"Territorio Frances");
  2055. foreach(new i:Player)
  2056. {
  2057. if(gPais[i] == FRANCE)
  2058. {
  2059. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Abandoned Airstrip - está sob ataque!");
  2060. }
  2061. }
  2062. }
  2063. if(tCheck[ABANDONED] == RUSSIA)
  2064. {
  2065. SendClientMessage(playerid,-1,"Territorio Russo");
  2066. foreach(new i:Player)
  2067. {
  2068. if(gPais[i] == RUSSIA)
  2069. {
  2070. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Abandoned Airstrip - está sob ataque!");
  2071. }
  2072. }
  2073. }
  2074. if(tCheck[ABANDONED] == ARAB)
  2075. {
  2076. SendClientMessage(playerid,-1,"Territorio Arabe");
  2077. foreach(new i:Player)
  2078. {
  2079. if(gPais[i] == ARAB)
  2080. {
  2081. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Abandoned Airstrip - está sob ataque!");
  2082. }
  2083. }
  2084. }
  2085. if(tCheck[ABANDONED] == ENGLAND)
  2086. {
  2087. SendClientMessage(playerid,-1,"Territorio Ingles");
  2088. foreach(new i:Player)
  2089. {
  2090. if(gPais[i] == ENGLAND)
  2091. {
  2092. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Abandoned Airstrip - está sob ataque!");
  2093. }
  2094. }
  2095. }
  2096. if(tCheck[ABANDONED] == USA)
  2097. {
  2098. SendClientMessage(playerid,-1,"Territorio Americano");
  2099. foreach(new i:Player)
  2100. {
  2101. if(gPais[i] == USA)
  2102. {
  2103. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Abandoned Airstrip - está sob ataque!");
  2104. }
  2105. }
  2106. }
  2107. if(tCheck[ABANDONED] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
  2108. }
  2109. return 1;
  2110. }
  2111.  
  2112. forward AbandonedCaptured(playerid);
  2113. public AbandonedCaptured(playerid)
  2114. {
  2115. UnderAttack[ABANDONED] = 0;
  2116. Captured[playerid][ABANDONED] = 1;
  2117. KillTimer(timer[playerid][ABANDONED]);
  2118. tCheck[ABANDONED] = gPais[playerid];
  2119. GangZoneStopFlashForAll(Zone[ABANDONED]);
  2120. GangZoneShowForAll(Zone[ABANDONED],GetPlayerColor(playerid));
  2121. SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
  2122. SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Abandoned Airstrip - para seu Pais!");
  2123. GivePlayerMoney(playerid,5000);
  2124. new str[256],Name[MAX_PLAYER_NAME];
  2125. GetPlayerName(playerid,Name,sizeof(Name));
  2126. format(str,sizeof(str),"~g~%s[%d] dominou - Abandoned Airsrtip - para %s",Name,playerid,GetTeamName(playerid));
  2127. SendBoxMessage(str);
  2128. new INI:File = INI_Open(UserPath(playerid));
  2129. INI_SetTag(File,"Data");
  2130. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  2131. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  2132. INI_Close(File);
  2133. foreach(new i:Player)
  2134. {
  2135. if(gPais[i] == gPais[playerid]&&i!=playerid)
  2136. {
  2137. SendClientMessage(i,VERDE,"Seu País conquistou - Abandoned Airstrip - Você ganhou +1 score e + R$ 1000!");
  2138. GivePlayerMoney(i,1000);
  2139. SetPlayerScore(i,GetPlayerScore(i)+1);
  2140. }
  2141. }
  2142. return 1;
  2143. }
  2144.  
  2145. stock LeavingAbandoned(playerid)
  2146. {
  2147. UnderAttack[ABANDONED] = 0;
  2148. Captured[playerid][ABANDONED] = 0;
  2149. IsPlayerCapturing[playerid][ABANDONED] = 0;
  2150. GangZoneStopFlashForAll(Zone[ABANDONED]);
  2151. KillTimer(timer[playerid][ABANDONED]);
  2152. SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
  2153. return 1;
  2154. }
  2155.  
  2156. //Snake Farm
  2157. stock ActiveSnake(playerid)
  2158. {
  2159. if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[SNAKE] == 0&&tCheck[SNAKE]!=gPais[playerid])
  2160. {
  2161. if(tCheck[SNAKE] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  2162. if(UnderAttack[SNAKE] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
  2163. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
  2164. UnderAttack[SNAKE] = 1;
  2165. Captured[playerid][SNAKE] = 0;
  2166. IsPlayerCapturing[playerid][SNAKE] = 1;
  2167. GangZoneFlashForAll(Zone[SNAKE],GetPlayerColor(playerid));
  2168. timer[playerid][SNAKE] = SetTimerEx("SnakeCaptured",20000,false,"i",playerid);
  2169. SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
  2170. if(tCheck[SNAKE] == BRASIL)
  2171. {
  2172. SendClientMessage(playerid,-1,"Territorio Brasileiro");
  2173. foreach(new i:Player)
  2174. {
  2175. if(gPais[i] == BRASIL)
  2176. {
  2177. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Snake farm - está sob ataque!");
  2178. }
  2179. }
  2180. }
  2181. if(tCheck[SNAKE] == USA)
  2182. {
  2183. SendClientMessage(playerid,-1,"Territorio Americano");
  2184. foreach(new i:Player)
  2185. {
  2186. if(gPais[i] == USA)
  2187. {
  2188. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Snake farm - está sob ataque!");
  2189. }
  2190. }
  2191. }
  2192. if(tCheck[SNAKE] == ARAB)
  2193. {
  2194. SendClientMessage(playerid,-1,"Territorio Arabe");
  2195. foreach(new i:Player)
  2196. {
  2197. if(gPais[i] == ARAB)
  2198. {
  2199. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Snake farm - está sob ataque!");
  2200. }
  2201. }
  2202. }
  2203. if(tCheck[SNAKE] == FRANCE)
  2204. {
  2205. SendClientMessage(playerid,-1,"Territorio Frances");
  2206. foreach(new i:Player)
  2207. {
  2208. if(gPais[i] == FRANCE)
  2209. {
  2210. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Snake farm - está sob ataque!");
  2211. }
  2212. }
  2213. }
  2214. if(tCheck[SNAKE] == RUSSIA)
  2215. {
  2216. SendClientMessage(playerid,-1,"Territorio Russo");
  2217. foreach(new i:Player)
  2218. {
  2219. if(gPais[i] == RUSSIA)
  2220. {
  2221. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Snake farm - está sob ataque!");
  2222. }
  2223. }
  2224. }
  2225. if(tCheck[SNAKE] == ENGLAND)
  2226. {
  2227. SendClientMessage(playerid,-1,"Territorio Ingles");
  2228. foreach(new i:Player)
  2229. {
  2230. if(gPais[i] == ENGLAND)
  2231. {
  2232. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Snake farm - está sob ataque!");
  2233. }
  2234. }
  2235. }
  2236. if(tCheck[SNAKE] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
  2237. }
  2238. return 1;
  2239. }
  2240.  
  2241. forward SnakeCaptured(playerid);
  2242. public SnakeCaptured(playerid)
  2243. {
  2244. tCheck[SNAKE] = gPais[playerid];
  2245. KillTimer(timer[playerid][SNAKE]);
  2246. GangZoneStopFlashForAll(Zone[SNAKE]);
  2247. GangZoneShowForAll(Zone[SNAKE],GetPlayerColor(playerid));
  2248. UnderAttack[SNAKE] = 0;
  2249. Captured[playerid][SNAKE] = 1;
  2250. SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Snack Farm - para seu Pais!");
  2251. new str[256],Name[MAX_PLAYER_NAME];
  2252. GetPlayerName(playerid,Name,sizeof(Name));
  2253. format(str,sizeof(str),"~g~%s[%d] dominou - Snack Farm - para %s",Name,playerid,GetTeamName(playerid));
  2254. SendBoxMessage(str);
  2255. new INI:File = INI_Open(UserPath(playerid));
  2256. INI_SetTag(File,"Data");
  2257. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  2258. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  2259. INI_Close(File);
  2260. SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
  2261. GivePlayerMoney(playerid,5000);
  2262. foreach(new i:Player)
  2263. {
  2264. if(gPais[i] == gPais[playerid] && i!=playerid)
  2265. {
  2266. GivePlayerMoney(i,1000);
  2267. SetPlayerScore(i,GetPlayerScore(i)+1);
  2268. SendClientMessage(i,VERDE,"Seu País conquistou - Snack Farm - Você ganhou +1 score e + R$ 1000!");
  2269. }
  2270. }
  2271. }
  2272.  
  2273. stock LeavingSnake(playerid)
  2274. {
  2275. UnderAttack[SNAKE] = 0;
  2276. Captured[playerid][SNAKE] = 1;
  2277. IsPlayerCapturing[playerid][SNAKE] = 0;
  2278. KillTimer(timer[playerid][SNAKE]);
  2279. GangZoneStopFlashForAll(Zone[SNAKE]);
  2280. SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
  2281. return 1;
  2282. }
  2283.  
  2284. //Basin
  2285. stock ActiveBasin(playerid)
  2286. {
  2287. if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[BASIN] == 0&&tCheck[BASIN]!=gPais[playerid])
  2288. {
  2289. if(tCheck[BASIN] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  2290. if(UnderAttack[BASIN] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
  2291. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
  2292. UnderAttack[BASIN] = 1;
  2293. Captured[playerid][BASIN] = 0;
  2294. IsPlayerCapturing[playerid][BASIN] = 1;
  2295. GangZoneFlashForAll(Zone[BASIN],GetPlayerColor(playerid));
  2296. timer[playerid][BASIN] = SetTimerEx("BasinCaptured",20000,false,"i",playerid);
  2297. SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
  2298. if(tCheck[BASIN] == BRASIL)
  2299. {
  2300. SendClientMessage(playerid,-1,"Territorio Brasileiro");
  2301. foreach(new i:Player)
  2302. {
  2303. if(gPais[i] == BRASIL)
  2304. {
  2305. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Basin - está sob ataque!");
  2306. }
  2307. }
  2308. }
  2309. if(tCheck[BASIN] == FRANCE)
  2310. {
  2311. SendClientMessage(playerid,-1,"Territorio Frances");
  2312. foreach(new i:Player)
  2313. {
  2314. if(gPais[i] == FRANCE)
  2315. {
  2316. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Basin - está sob ataque!");
  2317. }
  2318. }
  2319. }
  2320. if(tCheck[BASIN] == USA)
  2321. {
  2322. SendClientMessage(playerid,-1,"Territorio Americano");
  2323. foreach(new i:Player)
  2324. {
  2325. if(gPais[i] == USA)
  2326. {
  2327. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Basin - está sob ataque!");
  2328. }
  2329. }
  2330. }
  2331. if(tCheck[BASIN] == ARAB)
  2332. {
  2333. SendClientMessage(playerid,-1,"Territorio Arabe");
  2334. foreach(new i:Player)
  2335. {
  2336. if(gPais[i] == ARAB)
  2337. {
  2338. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Basin - está sob ataque!");
  2339. }
  2340. }
  2341. }
  2342. if(tCheck[BASIN] == RUSSIA)
  2343. {
  2344. SendClientMessage(playerid,-1,"Territorio Russo");
  2345. foreach(new i:Player)
  2346. {
  2347. if(gPais[i] == RUSSIA)
  2348. {
  2349. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Basin - está sob ataque!");
  2350. }
  2351. }
  2352. }
  2353. if(tCheck[BASIN] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
  2354. }
  2355. return 1;
  2356. }
  2357.  
  2358. forward BasinCaptured(playerid);
  2359. public BasinCaptured(playerid)
  2360. {
  2361. UnderAttack[BASIN] = 0;
  2362. Captured[playerid][BASIN] = 1;
  2363. KillTimer(timer[playerid][BASIN]);
  2364. GangZoneStopFlashForAll(Zone[BASIN]);
  2365. tCheck[BASIN] = gPais[playerid];
  2366. GangZoneShowForAll(Zone[BASIN],GetPlayerColor(playerid));
  2367. new str[256],Name[MAX_PLAYER_NAME];
  2368. GetPlayerName(playerid,Name,sizeof(Name));
  2369. format(str,sizeof(str),"~g~%s[%d] dominou - Basin - para %s",Name,playerid,GetTeamName(playerid));
  2370. SendBoxMessage(str);
  2371. SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Basin - para seu Pais!");
  2372. GivePlayerMoney(playerid,5000);
  2373. SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
  2374. new INI:File = INI_Open(UserPath(playerid));
  2375. INI_SetTag(File,"Data");
  2376. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  2377. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  2378. INI_Close(File);
  2379. foreach(new i:Player)
  2380. {
  2381. if(gPais[i] == gPais[playerid]&&i!=playerid)
  2382. {
  2383. GivePlayerMoney(i,1000);
  2384. SetPlayerScore(i,GetPlayerScore(i)+1);
  2385. SendClientMessage(i,VERDE,"Seu País conquistou - Basin - Você ganhou +1 score e + R$ 1000!");
  2386. }
  2387. }
  2388. return 1;
  2389. }
  2390.  
  2391. stock LeavingBasin(playerid)
  2392. {
  2393. UnderAttack[BASIN] = 0;
  2394. Captured[playerid][BASIN] = 0;
  2395. IsPlayerCapturing[playerid][BASIN] = 0;
  2396. KillTimer(timer[playerid][BASIN]);
  2397. GangZoneStopFlashForAll(Zone[BASIN]);
  2398. SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
  2399. return 1;
  2400. }
  2401.  
  2402. //Beach side
  2403. stock ActiveBeach(playerid)
  2404. {
  2405. if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[BEACHSIDE] == 0&&tCheck[BEACHSIDE]!=gPais[playerid])
  2406. {
  2407. if(tCheck[BEACHSIDE] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  2408. if(UnderAttack[BEACHSIDE] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
  2409. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
  2410. UnderAttack[BEACHSIDE] = 1;
  2411. Captured[playerid][BEACHSIDE] = 0;
  2412. IsPlayerCapturing[playerid][BEACHSIDE] = 1;
  2413. GangZoneFlashForAll(Zone[BEACHSIDE],GetPlayerColor(playerid));
  2414. timer[playerid][BEACHSIDE] = SetTimerEx("BeachCaptured",20000,false,"i",playerid);
  2415. SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
  2416. if(tCheck[BEACHSIDE] == BRASIL)
  2417. {
  2418. SendClientMessage(playerid,-1,"Territorio Brasileiro");
  2419. foreach(new i:Player)
  2420. {
  2421. if(gPais[i] == BRASIL)
  2422. {
  2423. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Beach side - está sob ataque!");
  2424. }
  2425. }
  2426. }
  2427. if(tCheck[BEACHSIDE] == USA)
  2428. {
  2429. SendClientMessage(playerid,-1,"Territorio Americano");
  2430. foreach(new i:Player)
  2431. {
  2432. if(gPais[i] == USA)
  2433. {
  2434. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Beach side - está sob ataque!");
  2435. }
  2436. }
  2437. }
  2438. if(tCheck[BEACHSIDE] == RUSSIA)
  2439. {
  2440. SendClientMessage(playerid,-1,"Territorio Russo");
  2441. foreach(new i:Player)
  2442. {
  2443. if(gPais[i] == RUSSIA)
  2444. {
  2445. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Beach side - está sob ataque!");
  2446. }
  2447. }
  2448. }
  2449. if(tCheck[BEACHSIDE] == ENGLAND)
  2450. {
  2451. SendClientMessage(playerid,-1,"Territorio Ingles");
  2452. foreach(new i:Player)
  2453. {
  2454. if(gPais[i] == ENGLAND)
  2455. {
  2456. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Beach side - está sob ataque!");
  2457. }
  2458. }
  2459. }
  2460. if(tCheck[BEACHSIDE] == FRANCE)
  2461. {
  2462. SendClientMessage(playerid,-1,"Territorio Frances");
  2463. foreach(new i:Player)
  2464. {
  2465. if(gPais[i] == FRANCE)
  2466. {
  2467. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Beach side - está sob ataque!");
  2468. }
  2469. }
  2470. }
  2471. if(tCheck[BEACHSIDE] == ARAB)
  2472. {
  2473. SendClientMessage(playerid,-1,"Territorio Arabe");
  2474. foreach(new i:Player)
  2475. {
  2476. if(gPais[i] == ARAB)
  2477. {
  2478. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Beach side - está sob ataque!");
  2479. }
  2480. }
  2481. }
  2482. if(tCheck[BEACHSIDE] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
  2483. }
  2484. return 1;
  2485. }
  2486.  
  2487. forward BeachCaptured(playerid);
  2488. public BeachCaptured(playerid)
  2489. {
  2490. UnderAttack[BEACHSIDE] = 0;
  2491. Captured[playerid][BEACHSIDE] = 1;
  2492. KillTimer(timer[playerid][BEACHSIDE]);
  2493. GangZoneStopFlashForAll(Zone[BEACHSIDE]);
  2494. GangZoneShowForAll(Zone[BEACHSIDE],GetPlayerColor(playerid));
  2495. tCheck[BEACHSIDE] = gPais[playerid];
  2496. GivePlayerMoney(playerid,5000);
  2497. SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
  2498. SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Beach Side - para seu Pais!");
  2499. new str[256],Name[MAX_PLAYER_NAME];
  2500. GetPlayerName(playerid,Name,sizeof(Name));
  2501. format(str,sizeof(str),"~g~%s[%d] dominou - Beach Side - para %s",Name,playerid,GetTeamName(playerid));
  2502. SendBoxMessage(str);
  2503. new INI:File = INI_Open(UserPath(playerid));
  2504. INI_SetTag(File,"Data");
  2505. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  2506. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  2507. INI_Close(File);
  2508. foreach(new i:Player)
  2509. {
  2510. if(gPais[i] == gPais[playerid]&&i!=playerid)
  2511. {
  2512. GivePlayerMoney(i,1000);
  2513. SetPlayerScore(i,GetPlayerScore(i)+1);
  2514. SendClientMessage(i,VERDE,"Seu País conquistou - Beach Side - Você ganhou +1 score e + R$ 1000!");
  2515. }
  2516. }
  2517. return 1;
  2518. }
  2519.  
  2520. stock LeavingBeach(playerid)
  2521. {
  2522. UnderAttack[BEACHSIDE] = 0;
  2523. Captured[playerid][BEACHSIDE] = 0;
  2524. IsPlayerCapturing[playerid][BEACHSIDE] = 0;
  2525. KillTimer(timer[playerid][BEACHSIDE]);
  2526. GangZoneStopFlashForAll(Zone[BEACHSIDE]);
  2527. SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
  2528. return 1;
  2529. }
  2530.  
  2531. //Army restaurant
  2532. stock ActiveRestaurant(playerid)
  2533. {
  2534. if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[RESTAURANT] == 0&&tCheck[RESTAURANT]!=gPais[playerid])
  2535. {
  2536. if(tCheck[RESTAURANT] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  2537. if(UnderAttack[RESTAURANT] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
  2538. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
  2539. UnderAttack[RESTAURANT] = 1;
  2540. Captured[playerid][RESTAURANT] = 0;
  2541. IsPlayerCapturing[playerid][RESTAURANT] = 1;
  2542. GangZoneFlashForAll(Zone[RESTAURANT],GetPlayerColor(playerid));
  2543. timer[playerid][RESTAURANT] = SetTimerEx("RestaurantCaptured",20000,false,"i",playerid);
  2544. SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
  2545. if(tCheck[RESTAURANT] == BRASIL)
  2546. {
  2547. SendClientMessage(playerid,-1,"Territorio Brasileiro");
  2548. foreach(new i:Player)
  2549. {
  2550. if(gPais[i] == BRASIL)
  2551. {
  2552. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Army restaurant - está sob ataque!");
  2553. }
  2554. }
  2555. }
  2556. if(tCheck[RESTAURANT] == RUSSIA)
  2557. {
  2558. SendClientMessage(playerid,-1,"Territorio Russo");
  2559. foreach(new i:Player)
  2560. {
  2561. if(gPais[i] == RUSSIA)
  2562. {
  2563. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Army restaurant - está sob ataque!");
  2564. }
  2565. }
  2566. }
  2567. if(tCheck[RESTAURANT] == USA)
  2568. {
  2569. SendClientMessage(playerid,-1,"Territorio Americano");
  2570. foreach(new i:Player)
  2571. {
  2572. if(gPais[i] == USA)
  2573. {
  2574. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Army restaurant - está sob ataque!");
  2575. }
  2576. }
  2577. }
  2578. if(tCheck[RESTAURANT] == ENGLAND)
  2579. {
  2580. SendClientMessage(playerid,-1,"Territorio Ingles");
  2581. foreach(new i:Player)
  2582. {
  2583. if(gPais[i] == ENGLAND)
  2584. {
  2585. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Army restaurant - está sob ataque!");
  2586. }
  2587. }
  2588. }
  2589. if(tCheck[RESTAURANT] == ARAB)
  2590. {
  2591. SendClientMessage(playerid,-1,"Territorio Arabe");
  2592. foreach(new i:Player)
  2593. {
  2594. if(gPais[i] == ARAB)
  2595. {
  2596. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Army restaurant - está sob ataque!");
  2597. }
  2598. }
  2599. }
  2600. if(tCheck[RESTAURANT] == FRANCE)
  2601. {
  2602. SendClientMessage(playerid,-1,"Territorio Frances");
  2603. foreach(new i:Player)
  2604. {
  2605. if(gPais[i] == FRANCE)
  2606. {
  2607. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Army restaurant - está sob ataque!");
  2608. }
  2609. }
  2610. }
  2611. if(tCheck[RESTAURANT] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
  2612. }
  2613. return 1;
  2614. }
  2615.  
  2616. forward RestaurantCaptured(playerid);
  2617. public RestaurantCaptured(playerid)
  2618. {
  2619. UnderAttack[RESTAURANT] = 0;
  2620. Captured[playerid][RESTAURANT] = 1;
  2621. tCheck[RESTAURANT] = gPais[playerid];
  2622. KillTimer(timer[playerid][RESTAURANT]);
  2623. GangZoneStopFlashForAll(Zone[RESTAURANT]);
  2624. GangZoneShowForAll(Zone[RESTAURANT],GetPlayerColor(playerid));
  2625. GivePlayerMoney(playerid,5000);
  2626. SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
  2627. SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Army Restaurant - para seu Pais!");
  2628. new str[256],Name[MAX_PLAYER_NAME];
  2629. GetPlayerName(playerid,Name,sizeof(Name));
  2630. format(str,sizeof(str),"~g~%s[%d] dominou - Army Restaurant - para %s",Name,playerid,GetTeamName(playerid));
  2631. SendBoxMessage(str);
  2632. new INI:File = INI_Open(UserPath(playerid));
  2633. INI_SetTag(File,"Data");
  2634. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  2635. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  2636. INI_Close(File);
  2637. foreach(new i:Player)
  2638. {
  2639. if(gPais[i] == gPais[playerid]&&i!=playerid)
  2640. {
  2641. SendClientMessage(i,VERDE,"Seu País conquistou - Army Restaurant - Você ganhou +1 score e + R$ 1000!");
  2642. GivePlayerMoney(i,1000);
  2643. SetPlayerScore(i,GetPlayerScore(i)+1);
  2644. }
  2645. }
  2646. return 1;
  2647. }
  2648.  
  2649. stock LeavingRestaurant(playerid)
  2650. {
  2651. UnderAttack[RESTAURANT] = 0;
  2652. Captured[playerid][RESTAURANT] = 0;
  2653. IsPlayerCapturing[playerid][RESTAURANT] = 0;
  2654. KillTimer(timer[playerid][RESTAURANT]);
  2655. GangZoneStopFlashForAll(Zone[RESTAURANT]);
  2656. SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
  2657. return 1;
  2658. }
  2659.  
  2660. //Gas STATION
  2661. stock ActiveGas(playerid)
  2662. {
  2663. if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[GAS] == 0&&tCheck[GAS]!=gPais[playerid])
  2664. {
  2665. if(tCheck[GAS] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  2666. if(UnderAttack[GAS] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
  2667. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
  2668. UnderAttack[GAS] = 1;
  2669. IsPlayerCapturing[playerid][GAS] = 1;
  2670. Captured[playerid][GAS] = 0;
  2671. GangZoneFlashForAll(Zone[GAS],GetPlayerColor(playerid));
  2672. timer[playerid][GAS] = SetTimerEx("GasCaptured",20000,false,"i",playerid);
  2673. SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
  2674. if(tCheck[GAS] == BRASIL)
  2675. {
  2676. SendClientMessage(playerid,-1,"Territorio Brasileiro");
  2677. foreach(new i:Player)
  2678. {
  2679. if(gPais[i] == BRASIL)
  2680. {
  2681. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Gas station - está sob ataque!");
  2682. }
  2683. }
  2684. }
  2685. if(tCheck[GAS] == USA)
  2686. {
  2687. SendClientMessage(playerid,-1,"Territorio Americano");
  2688. foreach(new i:Player)
  2689. {
  2690. if(gPais[i] == USA)
  2691. {
  2692. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Gas station - está sob ataque!");
  2693. }
  2694. }
  2695. }
  2696. if(tCheck[GAS] == RUSSIA)
  2697. {
  2698. SendClientMessage(playerid,-1,"Territorio Russo");
  2699. foreach(new i:Player)
  2700. {
  2701. if(gPais[i] == RUSSIA)
  2702. {
  2703. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Gas station - está sob ataque!");
  2704. }
  2705. }
  2706. }
  2707. if(tCheck[GAS] == ARAB)
  2708. {
  2709. SendClientMessage(playerid,-1,"Territorio Arabe");
  2710. foreach(new i:Player)
  2711. {
  2712. if(gPais[i] == ARAB)
  2713. {
  2714. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Gas station - está sob ataque!");
  2715. }
  2716. }
  2717. }
  2718. if(tCheck[GAS] == FRANCE)
  2719. {
  2720. SendClientMessage(playerid,-1,"Territorio Frances");
  2721. foreach(new i:Player)
  2722. {
  2723. if(gPais[i] == FRANCE)
  2724. {
  2725. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Gas station - está sob ataque!");
  2726. }
  2727. }
  2728. }
  2729. if(tCheck[GAS] == ENGLAND)
  2730. {
  2731. SendClientMessage(playerid,-1,"Territorio Ingles");
  2732. foreach(new i:Player)
  2733. {
  2734. if(gPais[i] == ENGLAND)
  2735. {
  2736. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Gas station - está sob ataque!");
  2737. }
  2738. }
  2739. }
  2740. if(tCheck[GAS] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
  2741. }
  2742. return 1;
  2743. }
  2744.  
  2745. forward GasCaptured(playerid);
  2746. public GasCaptured(playerid)
  2747. {
  2748. UnderAttack[GAS] = 0;
  2749. Captured[playerid][GAS] = 1;
  2750. IsPlayerCapturing[playerid][GAS] = 0;
  2751. GangZoneStopFlashForAll(Zone[GAS]);
  2752. GangZoneShowForAll(Zone[GAS],GetPlayerColor(playerid));
  2753. tCheck[GAS] = gPais[playerid];
  2754. KillTimer(timer[playerid][GAS]);
  2755. GivePlayerMoney(playerid,5000);
  2756. SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
  2757. SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Gas Station - para seu Pais!");
  2758. new str[256],Name[MAX_PLAYER_NAME];
  2759. GetPlayerName(playerid,Name,sizeof(Name));
  2760. format(str,sizeof(str),"~g~%s[%d] dominou - Gas Station - para %s",Name,playerid,GetTeamName(playerid));
  2761. SendBoxMessage(str);
  2762. new INI:File = INI_Open(UserPath(playerid));
  2763. INI_SetTag(File,"Data");
  2764. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  2765. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  2766. INI_Close(File);
  2767. foreach(new i:Player)
  2768. {
  2769. if(gPais[i] == gPais[playerid]&&i!=playerid)
  2770. {
  2771. GivePlayerMoney(i,1000);
  2772. SetPlayerScore(i,GetPlayerScore(i)+1);
  2773. SendClientMessage(i,-1,"Seu País conquistou - Gas Station - Você ganhou +1 score e + R$ 1000!");
  2774. }
  2775. }
  2776. return 1;
  2777. }
  2778.  
  2779. stock LeavingGas(playerid)
  2780. {
  2781. UnderAttack[GAS] = 0;
  2782. Captured[playerid][GAS] = 0;
  2783. IsPlayerCapturing[playerid][GAS] = 0;
  2784. KillTimer(timer[playerid][GAS]);
  2785. GangZoneStopFlashForAll(Zone[GAS]);
  2786. SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
  2787. return 1;
  2788. }
  2789.  
  2790. //Race Stadium
  2791. stock ActiveStadium(playerid)
  2792. {
  2793. if(!IsPlayerInAnyVehicle(playerid) && UnderAttack[STADIUM] == 0 && tCheck[STADIUM]!=gPais[playerid])
  2794. {
  2795. if(tCheck[STADIUM] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  2796. if(UnderAttack[STADIUM] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
  2797. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
  2798. UnderAttack[STADIUM] = 1;
  2799. IsPlayerCapturing[playerid][STADIUM] = 1;
  2800. Captured[playerid][STADIUM] = 0;
  2801. timer[playerid][STADIUM] = SetTimerEx("StadiumCaptured",20000,false,"i",playerid);
  2802. GangZoneFlashForAll(Zone[STADIUM],GetPlayerColor(playerid));
  2803. SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
  2804. if(tCheck[STADIUM] == BRASIL)
  2805. {
  2806. SendClientMessage(playerid,-1,"Territorio Brasileiro");
  2807. foreach(new i:Player)
  2808. {
  2809. if(gPais[i] == BRASIL)
  2810. {
  2811. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Stadium - está sob ataque!");
  2812. }
  2813. }
  2814. }
  2815. if(tCheck[STADIUM] == USA)
  2816. {
  2817. SendClientMessage(playerid,-1,"Territorio Americano");
  2818. foreach(new i:Player)
  2819. {
  2820. if(gPais[i] == USA)
  2821. {
  2822. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Stadium - está sob ataque!");
  2823. }
  2824. }
  2825. }
  2826. if(tCheck[STADIUM] == RUSSIA)
  2827. {
  2828. SendClientMessage(playerid,-1,"Territorio Russo");
  2829. foreach(new i:Player)
  2830. {
  2831. if(gPais[i] == RUSSIA)
  2832. {
  2833. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Stadium - está sob ataque!");
  2834. }
  2835. }
  2836. }
  2837. if(tCheck[STADIUM] == ARAB)
  2838. {
  2839. SendClientMessage(playerid,-1,"Territorio Arabe");
  2840. foreach(new i:Player)
  2841. {
  2842. if(gPais[i] == ARAB)
  2843. {
  2844. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Stadium - está sob ataque!");
  2845. }
  2846. }
  2847. }
  2848. if(tCheck[STADIUM] == FRANCE)
  2849. {
  2850. SendClientMessage(playerid,-1,"Territorio Frances");
  2851. foreach(new i:Player)
  2852. {
  2853. if(gPais[i] == FRANCE)
  2854. {
  2855. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Stadium - está sob ataque!");
  2856. }
  2857. }
  2858. }
  2859. if(tCheck[STADIUM] == ENGLAND)
  2860. {
  2861. SendClientMessage(playerid,-1,"Territorio Ingles");
  2862. foreach(new i:Player)
  2863. {
  2864. if(gPais[i] == ENGLAND)
  2865. {
  2866. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Stadium - está sob ataque!");
  2867. }
  2868. }
  2869. }
  2870. if(tCheck[STADIUM] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
  2871. }
  2872. return 1;
  2873. }
  2874.  
  2875. forward StadiumCaptured(playerid);
  2876. public StadiumCaptured(playerid)
  2877. {
  2878. UnderAttack[STADIUM] = 0;
  2879. Captured[playerid][STADIUM] = 1;
  2880. tCheck[STADIUM] = gPais[playerid];
  2881. GangZoneStopFlashForAll(Zone[STADIUM]);
  2882. GangZoneShowForAll(Zone[STADIUM],GetPlayerColor(playerid));
  2883. KillTimer(timer[playerid][STADIUM]);
  2884. GivePlayerMoney(playerid,5000);
  2885. SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
  2886. SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Race Stadium - para seu Pais!");
  2887. new str[256],Name[MAX_PLAYER_NAME];
  2888. GetPlayerName(playerid,Name,sizeof(Name));
  2889. format(str,sizeof(str),"~g~%s[%d] dominou - Race Stadium - para %s",Name,playerid,GetTeamName(playerid));
  2890. SendBoxMessage(str);
  2891. new INI:File = INI_Open(UserPath(playerid));
  2892. INI_SetTag(File,"Data");
  2893. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  2894. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  2895. INI_Close(File);
  2896. foreach(new i:Player)
  2897. {
  2898. if(gPais[i] == gPais[playerid]&&i!=playerid)
  2899. {
  2900. SendClientMessage(i,VERDE,"Seu País conquistou - Race Stadium - Você ganhou +1 score e + R$ 1000!");
  2901. GivePlayerMoney(i,1000);
  2902. SetPlayerScore(i,GetPlayerScore(i)+1);
  2903. }
  2904. }
  2905. return 1;
  2906. }
  2907.  
  2908. stock LeavingStadium(playerid)
  2909. {
  2910. UnderAttack[STADIUM] = 0;
  2911. Captured[playerid][STADIUM] = 0;
  2912. IsPlayerCapturing[playerid][STADIUM] = 0;
  2913. KillTimer(timer[playerid][STADIUM]);
  2914. GangZoneStopFlashForAll(Zone[STADIUM]);
  2915. SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
  2916. }
  2917.  
  2918. //Golden Gate Bridge
  2919. stock ActiveBridge(playerid)
  2920. {
  2921. if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[BRIDGE]==0&&tCheck[BRIDGE]!=gPais[playerid])
  2922. {
  2923. if(tCheck[BRIDGE] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  2924. if(UnderAttack[BRIDGE] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
  2925. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
  2926. UnderAttack[BRIDGE] = 1;
  2927. Captured[playerid][BRIDGE] = 0;
  2928. IsPlayerCapturing[playerid][BRIDGE] = 1;
  2929. GangZoneFlashForAll(Zone[BRIDGE],GetPlayerColor(playerid));
  2930. timer[playerid][BRIDGE] = SetTimerEx("BridgeCaptured",25000,false,"i",playerid);
  2931. SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 25 segundos para dominar! ||");
  2932. if(tCheck[BRIDGE] == BRASIL)
  2933. {
  2934. SendClientMessage(playerid,-1,"Territorio Brasileiro");
  2935. foreach(new i:Player)
  2936. {
  2937. if(gPais[i] == BRASIL)
  2938. {
  2939. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Golden Gate Bridge - está sob ataque!");
  2940. }
  2941. }
  2942. }
  2943. if(tCheck[BRIDGE] == USA)
  2944. {
  2945. SendClientMessage(playerid,-1,"Territorio Americano");
  2946. foreach(new i:Player)
  2947. {
  2948. if(gPais[i] == USA)
  2949. {
  2950. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Golden Gate Bridge - está sob ataque!");
  2951. }
  2952. }
  2953. }
  2954. if(tCheck[BRIDGE] == ARAB)
  2955. {
  2956. SendClientMessage(playerid,-1,"Territorio Arabe");
  2957. foreach(new i:Player)
  2958. {
  2959. if(gPais[i] == ARAB)
  2960. {
  2961. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Golden Gate Bridge - está sob ataque!");
  2962. }
  2963. }
  2964. }
  2965. if(tCheck[BRIDGE] == RUSSIA)
  2966. {
  2967. SendClientMessage(playerid,-1,"Territorio Russo");
  2968. foreach(new i:Player)
  2969. {
  2970. if(gPais[i] == RUSSIA)
  2971. {
  2972. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Golden Gate Bridge - está sob ataque!");
  2973. }
  2974. }
  2975. }
  2976. if(tCheck[BRIDGE] == FRANCE)
  2977. {
  2978. SendClientMessage(playerid,-1,"Territorio Frances");
  2979. foreach(new i:Player)
  2980. {
  2981. if(gPais[i] == FRANCE)
  2982. {
  2983. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Golden Gate Bridge - está sob ataque!");
  2984. }
  2985. }
  2986. }
  2987. if(tCheck[BRIDGE] == ENGLAND)
  2988. {
  2989. SendClientMessage(playerid,-1,"Territorio Ingles");
  2990. foreach(new i:Player)
  2991. {
  2992. if(gPais[i] == ENGLAND)
  2993. {
  2994. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Golden Gate Bridge - está sob ataque!");
  2995. }
  2996. }
  2997. }
  2998. if(tCheck[BRIDGE] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
  2999. }
  3000. return 1;
  3001. }
  3002.  
  3003. forward BridgeCaptured(playerid);
  3004. public BridgeCaptured(playerid)
  3005. {
  3006. UnderAttack[BRIDGE] = 0;
  3007. Captured[playerid][BRIDGE] = 1;
  3008. GangZoneStopFlashForAll(Zone[BRIDGE]);
  3009. GangZoneShowForAll(Zone[BRIDGE],GetPlayerColor(playerid));
  3010. KillTimer(timer[playerid][BRIDGE]);
  3011. tCheck[BRIDGE] = gPais[playerid];
  3012. GivePlayerMoney(playerid,8000);
  3013. SetPlayerScore(playerid,GetPlayerScore(playerid)+8);
  3014. SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 8000 e +8 score por dominar - Golden Gate Bridge - para seu Pais!");
  3015. new INI:File = INI_Open(UserPath(playerid));
  3016. INI_SetTag(File,"Data");
  3017. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  3018. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  3019. INI_Close(File);
  3020. new str[256],Name[MAX_PLAYER_NAME];
  3021. GetPlayerName(playerid,Name,sizeof(Name));
  3022. format(str,sizeof(str),"~g~%s[%d] dominou - Golden Gate Bridge - para %s",Name,playerid,GetTeamName(playerid));
  3023. SendBoxMessage(str);
  3024. foreach(new i:Player)
  3025. {
  3026. if(gPais[i] == gPais[playerid]&&i!=playerid)
  3027. {
  3028. GivePlayerMoney(i,2000);
  3029. SetPlayerScore(i,GetPlayerScore(i)+2);
  3030. SendClientMessage(i,VERDE,"Seu País conquistou - Golden Gate Bridge - Você ganhou +2 score e + R$ 2000!");
  3031. }
  3032. }
  3033. return 1;
  3034. }
  3035.  
  3036. stock LeavingBridge(playerid)
  3037. {
  3038. UnderAttack[BRIDGE] = 0;
  3039. Captured[playerid][BRIDGE] = 0;
  3040. IsPlayerCapturing[playerid][BRIDGE] = 0;
  3041. KillTimer(timer[playerid][BRIDGE]);
  3042. GangZoneStopFlashForAll(Zone[BRIDGE]);
  3043. SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
  3044. return 1;
  3045. }
  3046.  
  3047. //MOTEL
  3048. stock ActiveMotel(playerid)
  3049. {
  3050. if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[MOTEL]==0&&tCheck[MOTEL]!=gPais[playerid])
  3051. {
  3052. if(tCheck[MOTEL] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  3053. if(UnderAttack[MOTEL] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
  3054. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
  3055. UnderAttack[MOTEL] = 1;
  3056. Captured[playerid][MOTEL] = 0;
  3057. IsPlayerCapturing[playerid][MOTEL] = 1;
  3058. GangZoneFlashForAll(Zone[MOTEL],GetPlayerColor(playerid));
  3059. timer[playerid][MOTEL] = SetTimerEx("MotelCaptured",20000,false,"i",playerid);
  3060. SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
  3061. if(tCheck[MOTEL] == BRASIL)
  3062. {
  3063. SendClientMessage(playerid,-1,"Territorio Brasileiro");
  3064. foreach(new i:Player)
  3065. {
  3066. if(gPais[i] == BRASIL)
  3067. {
  3068. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Motel - está sob ataque!");
  3069. }
  3070. }
  3071. }
  3072. if(tCheck[MOTEL] == USA)
  3073. {
  3074. SendClientMessage(playerid,-1,"Territorio Americano");
  3075. foreach(new i:Player)
  3076. {
  3077. if(gPais[i] == USA)
  3078. {
  3079. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Motel - está sob ataque!");
  3080. }
  3081. }
  3082. }
  3083. if(tCheck[MOTEL] == ARAB)
  3084. {
  3085. SendClientMessage(playerid,-1,"Territorio Arabe");
  3086. foreach(new i:Player)
  3087. {
  3088. if(gPais[i] == ARAB)
  3089. {
  3090. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Motel - está sob ataque!");
  3091. }
  3092. }
  3093. }
  3094. if(tCheck[MOTEL] == RUSSIA)
  3095. {
  3096. SendClientMessage(playerid,-1,"Territorio Russo");
  3097. foreach(new i:Player)
  3098. {
  3099. if(gPais[i] == RUSSIA)
  3100. {
  3101. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Motel - está sob ataque!");
  3102. }
  3103. }
  3104. }
  3105. if(tCheck[MOTEL] == FRANCE)
  3106. {
  3107. SendClientMessage(playerid,-1,"Territorio Frances");
  3108. foreach(new i:Player)
  3109. {
  3110. if(gPais[i] == FRANCE)
  3111. {
  3112. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Motel - está sob ataque!");
  3113. }
  3114. }
  3115. }
  3116. if(tCheck[MOTEL] == ENGLAND)
  3117. {
  3118. SendClientMessage(playerid,-1,"Territorio Ingles");
  3119. foreach(new i:Player)
  3120. {
  3121. if(gPais[i] == ENGLAND)
  3122. {
  3123. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Motel - está sob ataque!");
  3124. }
  3125. }
  3126. }
  3127. if(tCheck[MOTEL] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
  3128. }
  3129. return 1;
  3130. }
  3131.  
  3132. forward MotelCaptured(playerid);
  3133. public MotelCaptured(playerid)
  3134. {
  3135. UnderAttack[MOTEL] = 0;
  3136. Captured[playerid][MOTEL] = 1;
  3137. GangZoneStopFlashForAll(Zone[MOTEL]);
  3138. GangZoneShowForAll(Zone[MOTEL],GetPlayerColor(playerid));
  3139. KillTimer(timer[playerid][MOTEL]);
  3140. tCheck[MOTEL] = gPais[playerid];
  3141. GivePlayerMoney(playerid,5000);
  3142. SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
  3143. SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Motel - para seu Pais!");
  3144. new INI:File = INI_Open(UserPath(playerid));
  3145. INI_SetTag(File,"Data");
  3146. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  3147. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  3148. INI_Close(File);
  3149. new str[256],Name[MAX_PLAYER_NAME];
  3150. GetPlayerName(playerid,Name,sizeof(Name));
  3151. format(str,sizeof(str),"~g~%s[%d] dominou - Motel - para %s",Name,playerid,GetTeamName(playerid));
  3152. SendBoxMessage(str);
  3153. foreach(new i:Player)
  3154. {
  3155. if(gPais[i] == gPais[playerid]&&i!=playerid)
  3156. {
  3157. GivePlayerMoney(i,1000);
  3158. SetPlayerScore(i,GetPlayerScore(i)+1);
  3159. SendClientMessage(i,VERDE,"Seu País conquistou - Motel - Você ganhou +1 score e + R$ 1000!");
  3160. }
  3161. }
  3162. return 1;
  3163. }
  3164.  
  3165. stock LeavingMotel(playerid)
  3166. {
  3167. UnderAttack[MOTEL] = 0;
  3168. Captured[playerid][MOTEL] = 0;
  3169. IsPlayerCapturing[playerid][MOTEL] = 0;
  3170. KillTimer(timer[playerid][MOTEL]);
  3171. GangZoneStopFlashForAll(Zone[MOTEL]);
  3172. SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
  3173. return 1;
  3174. }
  3175.  
  3176. //San fierro cranberry station
  3177. stock ActiveStation(playerid)
  3178. {
  3179. if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[STATION] == 0&&tCheck[STATION]!=gPais[playerid])
  3180. {
  3181. GangZoneFlashForAll(Zone[STATION],GetPlayerColor(playerid));
  3182. if(tCheck[STATION] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  3183. if(UnderAttack[STATION] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
  3184. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
  3185. SendClientMessage(playerid,ROSA,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
  3186. UnderAttack[STATION] = 1;
  3187. Captured[playerid][STATION] = 0;
  3188. IsPlayerCapturing[playerid][STATION] = 1;
  3189. timer[playerid][OILFIELD] = SetTimerEx("StationCaptured",20000,false,"i",playerid);
  3190. if(tCheck[STATION] == BRASIL)
  3191. {
  3192. SendClientMessage(playerid,-1,"Territorio Brasileiro");
  3193. foreach(new i:Player)
  3194. {
  3195. if(gPais[i] == BRASIL)
  3196. {
  3197. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Station - está sob ataque!");
  3198. }
  3199. }
  3200. }
  3201. if(tCheck[OILFIELD] == FRANCE)
  3202. {
  3203. SendClientMessage(playerid,BRANCO,"Territorio Frances");
  3204. foreach(new i:Player)
  3205. {
  3206. if(gPais[i] == FRANCE)
  3207. {
  3208. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Station - está sob ataque!");
  3209. }
  3210. }
  3211. }
  3212. if(tCheck[OILFIELD] == RUSSIA)
  3213. {
  3214. SendClientMessage(playerid,BRANCO,"Territorio Russo");
  3215. foreach(new i:Player)
  3216. {
  3217. if(gPais[i] == RUSSIA)
  3218. {
  3219. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Station - está sob ataque!");
  3220. }
  3221. }
  3222. }
  3223. if(tCheck[OILFIELD] == USA)
  3224. {
  3225. SendClientMessage(playerid,BRANCO,"Territorio Americano");
  3226. foreach(new i:Player)
  3227. {
  3228. if(gPais[i] == USA)
  3229. {
  3230. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Station - está sob ataque!");
  3231. }
  3232. }
  3233. }
  3234. if(tCheck[OILFIELD] == ENGLAND)
  3235. {
  3236. SendClientMessage(playerid,BRANCO,"Territorio Ingles");
  3237. foreach(new i:Player)
  3238. {
  3239. if(gPais[i] == ENGLAND)
  3240. {
  3241. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Station - está sob ataque!");
  3242. }
  3243. }
  3244. }
  3245. if(tCheck[OILFIELD] == ARAB)
  3246. {
  3247. SendClientMessage(playerid,BRANCO,"Territorio Arabe");
  3248. foreach(new i:Player)
  3249. {
  3250. if(gPais[i] == ARAB)
  3251. {
  3252. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Station - está sob ataque!");
  3253. }
  3254. }
  3255. }
  3256. if(tCheck[OILFIELD] == NONE)
  3257. {
  3258. SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
  3259. }
  3260. }
  3261. else if(tCheck[STATION] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  3262. return 1;
  3263. }
  3264.  
  3265. forward StationCaptured(playerid);
  3266. public StationCaptured(playerid)
  3267. {
  3268. UnderAttack[STATION] = 0;
  3269. Captured[playerid][STATION] = 1;
  3270. GangZoneStopFlashForAll(Zone[STATION]);
  3271. GangZoneShowForAll(Zone[STATION],GetPlayerColor(playerid));
  3272. KillTimer(timer[playerid][STATION]);
  3273. tCheck[STATION] = gPais[playerid];
  3274. GivePlayerMoney(playerid,5000);
  3275. SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
  3276. SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Station - para seu Pais!");
  3277. new INI:File = INI_Open(UserPath(playerid));
  3278. INI_SetTag(File,"Data");
  3279. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  3280. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  3281. INI_Close(File);
  3282. new str[256],Name[MAX_PLAYER_NAME];
  3283. GetPlayerName(playerid,Name,sizeof(Name));
  3284. format(str,sizeof(str),"~g~%s[%d] dominou - Station - para %s",Name,playerid,GetTeamName(playerid));
  3285. SendBoxMessage(str);
  3286. foreach(new i:Player)
  3287. {
  3288. if(gPais[i] == gPais[playerid]&&i!=playerid)
  3289. {
  3290. GivePlayerMoney(i,1000);
  3291. SetPlayerScore(i,GetPlayerScore(i)+1);
  3292. SendClientMessage(i,VERDE,"Seu País conquistou - Station - Você ganhou +1 score e + R$ 1000!");
  3293. }
  3294. }
  3295. return 1;
  3296. }
  3297.  
  3298. stock LeavingStation(playerid)
  3299. {
  3300. UnderAttack[STATION] = 0;
  3301. Captured[playerid][STATION] = 0;
  3302. IsPlayerCapturing[playerid][STATION] = 0;
  3303. KillTimer(timer[playerid][STATION]);
  3304. GangZoneStopFlashForAll(Zone[STATION]);
  3305. SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
  3306. return 1;
  3307. }
  3308.  
  3309. //Music studio in San fierro
  3310. stock ActiveStudio(playerid)
  3311. {
  3312. if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[STUDIO]==0&&tCheck[STUDIO]!=gPais[playerid])
  3313. {
  3314. if(tCheck[STUDIO] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  3315. if(UnderAttack[STUDIO] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
  3316. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
  3317. UnderAttack[STUDIO] = 1;
  3318. Captured[playerid][STUDIO] = 0;
  3319. IsPlayerCapturing[playerid][STUDIO] = 1;
  3320. GangZoneFlashForAll(Zone[STUDIO],GetPlayerColor(playerid));
  3321. timer[playerid][STUDIO] = SetTimerEx("StudioCaptured",20000,false,"i",playerid);
  3322. SendClientMessage(playerid,-1,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
  3323. if(tCheck[STUDIO] == BRASIL)
  3324. {
  3325. SendClientMessage(playerid,-1,"Territorio Brasileiro");
  3326. foreach(new i:Player)
  3327. {
  3328. if(gPais[i] == BRASIL)
  3329. {
  3330. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Studio music - está sob ataque!");
  3331. }
  3332. }
  3333. }
  3334. if(tCheck[STUDIO] == USA)
  3335. {
  3336. SendClientMessage(playerid,-1,"Territorio Americano");
  3337. foreach(new i:Player)
  3338. {
  3339. if(gPais[i] == USA)
  3340. {
  3341. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Studio music - está sob ataque!");
  3342. }
  3343. }
  3344. }
  3345. if(tCheck[STUDIO] == ARAB)
  3346. {
  3347. SendClientMessage(playerid,-1,"Territorio Arabe");
  3348. foreach(new i:Player)
  3349. {
  3350. if(gPais[i] == ARAB)
  3351. {
  3352. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Studio music - está sob ataque!");
  3353. }
  3354. }
  3355. }
  3356. if(tCheck[STUDIO] == RUSSIA)
  3357. {
  3358. SendClientMessage(playerid,-1,"Territorio Russo");
  3359. foreach(new i:Player)
  3360. {
  3361. if(gPais[i] == RUSSIA)
  3362. {
  3363. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Studio music - está sob ataque!");
  3364. }
  3365. }
  3366. }
  3367. if(tCheck[STUDIO] == FRANCE)
  3368. {
  3369. SendClientMessage(playerid,-1,"Territorio Frances");
  3370. foreach(new i:Player)
  3371. {
  3372. if(gPais[i] == FRANCE)
  3373. {
  3374. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Studio music - está sob ataque!");
  3375. }
  3376. }
  3377. }
  3378. if(tCheck[STUDIO] == ENGLAND)
  3379. {
  3380. SendClientMessage(playerid,-1,"Territorio Ingles");
  3381. foreach(new i:Player)
  3382. {
  3383. if(gPais[i] == ENGLAND)
  3384. {
  3385. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Studio music - está sob ataque!");
  3386. }
  3387. }
  3388. }
  3389. if(tCheck[STUDIO] == NONE)SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
  3390. }
  3391. return 1;
  3392. }
  3393.  
  3394. forward StudioCaptured(playerid);
  3395. public StudioCaptured(playerid)
  3396. {
  3397. UnderAttack[STUDIO] = 0;
  3398. Captured[playerid][STUDIO] = 1;
  3399. GangZoneStopFlashForAll(Zone[STUDIO]);
  3400. GangZoneShowForAll(Zone[STUDIO],GetPlayerColor(playerid));
  3401. KillTimer(timer[playerid][STUDIO]);
  3402. tCheck[STUDIO] = gPais[playerid];
  3403. GivePlayerMoney(playerid,5000);
  3404. SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
  3405. SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Studio Music - para seu Pais!");
  3406. new INI:File = INI_Open(UserPath(playerid));
  3407. INI_SetTag(File,"Data");
  3408. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  3409. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  3410. INI_Close(File);
  3411. new str[256],Name[MAX_PLAYER_NAME];
  3412. GetPlayerName(playerid,Name,sizeof(Name));
  3413. format(str,sizeof(str),"~g~%s[%d] dominou - Studio Music - para %s",Name,playerid,GetTeamName(playerid));
  3414. SendBoxMessage(str);
  3415. foreach(new i:Player)
  3416. {
  3417. if(gPais[i] == gPais[playerid]&&i!=playerid)
  3418. {
  3419. GivePlayerMoney(i,1000);
  3420. SetPlayerScore(i,GetPlayerScore(i)+1);
  3421. SendClientMessage(i,VERDE,"Seu País conquistou - Studio Music - Você ganhou +1 score e + R$ 1000!");
  3422. }
  3423. }
  3424. return 1;
  3425. }
  3426.  
  3427. stock LeavingStudio(playerid)
  3428. {
  3429. UnderAttack[STUDIO] = 0;
  3430. Captured[playerid][STUDIO] = 0;
  3431. IsPlayerCapturing[playerid][STUDIO] = 0;
  3432. KillTimer(timer[playerid][STUDIO]);
  3433. GangZoneStopFlashForAll(Zone[STUDIO]);
  3434. SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
  3435. return 1;
  3436. }
  3437.  
  3438. //Construction project near doherty san fierro
  3439. stock ActiveProject(playerid)
  3440. {
  3441. if(!IsPlayerInAnyVehicle(playerid)&&UnderAttack[PROJECT] == 0&&tCheck[PROJECT]!=gPais[playerid])
  3442. {
  3443. GangZoneFlashForAll(Zone[PROJECT],GetPlayerColor(playerid));
  3444. if(tCheck[PROJECT] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  3445. if(UnderAttack[PROJECT] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja está sendo tomado!");
  3446. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode dominar o territorio de dentro do veículo!");
  3447. SendClientMessage(playerid,ROSA,"|| Aguarde nesse ponto por 20 segundos para dominar! ||");
  3448. UnderAttack[PROJECT] = 1;
  3449. Captured[playerid][PROJECT] = 0;
  3450. IsPlayerCapturing[playerid][PROJECT] = 1;
  3451. timer[playerid][OILFIELD] = SetTimerEx("ProjectCaptured",20000,false,"i",playerid);
  3452. if(tCheck[PROJECT] == BRASIL)
  3453. {
  3454. SendClientMessage(playerid,-1,"Territorio Brasileiro");
  3455. foreach(new i:Player)
  3456. {
  3457. if(gPais[i] == BRASIL)
  3458. {
  3459. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Construction project - esta sob ataque!");
  3460. }
  3461. }
  3462. }
  3463. if(tCheck[PROJECT] == FRANCE)
  3464. {
  3465. SendClientMessage(playerid,BRANCO,"Territorio Frances");
  3466. foreach(new i:Player)
  3467. {
  3468. if(gPais[i] == FRANCE)
  3469. {
  3470. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Construction project - esta sob ataque!");
  3471. }
  3472. }
  3473. }
  3474. if(tCheck[PROJECT] == RUSSIA)
  3475. {
  3476. SendClientMessage(playerid,BRANCO,"Territorio Russo");
  3477. foreach(new i:Player)
  3478. {
  3479. if(gPais[i] == RUSSIA)
  3480. {
  3481. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Construction project - esta sob ataque!");
  3482. }
  3483. }
  3484. }
  3485. if(tCheck[PROJECT] == USA)
  3486. {
  3487. SendClientMessage(playerid,BRANCO,"Territorio Americano");
  3488. foreach(new i:Player)
  3489. {
  3490. if(gPais[i] == USA)
  3491. {
  3492. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Construction project - esta sob ataque!");
  3493. }
  3494. }
  3495. }
  3496. if(tCheck[PROJECT] == ENGLAND)
  3497. {
  3498. SendClientMessage(playerid,BRANCO,"Territorio Ingles");
  3499. foreach(new i:Player)
  3500. {
  3501. if(gPais[i] == ENGLAND)
  3502. {
  3503. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Construction project - esta sob ataque!");
  3504. }
  3505. }
  3506. }
  3507. if(tCheck[PROJECT] == ARAB)
  3508. {
  3509. SendClientMessage(playerid,BRANCO,"Territorio Arabe");
  3510. foreach(new i:Player)
  3511. {
  3512. if(gPais[i] == ARAB)
  3513. {
  3514. SendClientMessage(i,COLOR_BRIGHTRED,"[ALERTA] - Construction project - esta sob ataque!");
  3515. }
  3516. }
  3517.  
  3518. }
  3519. if(tCheck[PROJECT] == NONE)
  3520. {
  3521. SendClientMessage(playerid,-1,"Este Territorio ainda não é controlado por ninguém!");
  3522. }
  3523. }
  3524. else if(tCheck[OILFIELD] == gPais[playerid])return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este Territorio ja é controlado por seu Pais!");
  3525. return 1;
  3526. }
  3527.  
  3528. forward ProjectCaptured(playerid);
  3529. public ProjectCaptured(playerid)
  3530. {
  3531. UnderAttack[PROJECT] = 0;
  3532. Captured[playerid][PROJECT] = 1;
  3533. GangZoneStopFlashForAll(Zone[PROJECT]);
  3534. GangZoneShowForAll(Zone[PROJECT],GetPlayerColor(playerid));
  3535. KillTimer(timer[playerid][PROJECT]);
  3536. tCheck[PROJECT] = gPais[playerid];
  3537. GivePlayerMoney(playerid,5000);
  3538. SetPlayerScore(playerid,GetPlayerScore(playerid)+5);
  3539. SendClientMessage(playerid,LARANJA,"[Parabéns] Você ganhou R$ 5000 e +5 score por dominar - Constrution Preject - para seu Pais!");
  3540. new INI:File = INI_Open(UserPath(playerid));
  3541. INI_SetTag(File,"Data");
  3542. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  3543. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  3544. INI_Close(File);
  3545. new str[256],Name[MAX_PLAYER_NAME];
  3546. GetPlayerName(playerid,Name,sizeof(Name));
  3547. format(str,sizeof(str),"~g~%s[%d] dominou - Constrution Project - para %s",Name,playerid,GetTeamName(playerid));
  3548. SendBoxMessage(str);
  3549. foreach(new i:Player)
  3550. {
  3551. if(gPais[i] == gPais[playerid]&&i!=playerid)
  3552. {
  3553. GivePlayerMoney(i,1000);
  3554. SetPlayerScore(i,GetPlayerScore(i)+1);
  3555. SendClientMessage(i,VERDE,"Seu País conquistou - Constrution Project - Você ganhou +1 score e + R$ 1000!");
  3556. }
  3557. }
  3558. return 1;
  3559. }
  3560.  
  3561. stock LeavingProject(playerid)
  3562. {
  3563. UnderAttack[PROJECT] = 0;
  3564. Captured[playerid][PROJECT] = 0;
  3565. IsPlayerCapturing[playerid][PROJECT] = 0;
  3566. KillTimer(timer[playerid][PROJECT]);
  3567. GangZoneStopFlashForAll(Zone[PROJECT]);
  3568. SendClientMessage(playerid,COLOR_BRIGHTRED,"Você não conseguiu dominar o territorio!");
  3569. return 1;
  3570. }
  3571.  
  3572.  
  3573. public OnPlayerRequestClass(playerid, classid)
  3574. {
  3575. TextDrawHideForPlayer(playerid,Brasiltext);
  3576. TextDrawHideForPlayer(playerid,USAtext);
  3577. TextDrawHideForPlayer(playerid,Russiatext);
  3578. TextDrawHideForPlayer(playerid,Arabtext);
  3579. TextDrawHideForPlayer(playerid,Francetext);
  3580. TextDrawHideForPlayer(playerid,Englandtext);
  3581. SetPlayerPos(playerid, 222.1597,1822.5927,6.4141);
  3582. SetPlayerCameraPos(playerid, 227.2269,1826.0406,7.4141);
  3583. SetPlayerCameraLookAt(playerid, 222.1597,1822.5927,6.4141);
  3584. SetPlayerFacingAngle(playerid,268.8934);
  3585. if(classid == 0)
  3586. {
  3587. gPais[playerid] = BRASIL;
  3588. TextDrawHideForPlayer(playerid,USAteam);
  3589. TextDrawHideForPlayer(playerid,Russiateam);
  3590. TextDrawHideForPlayer(playerid,Franceteam);
  3591. TextDrawHideForPlayer(playerid,Englandteam);
  3592. TextDrawHideForPlayer(playerid,Arabteam);
  3593. TextDrawShowForPlayer(playerid,Brasilteam);
  3594. }
  3595. if(classid == 1)
  3596. {
  3597. gPais[playerid] = FRANCE;
  3598. TextDrawHideForPlayer(playerid,USAteam);
  3599. TextDrawHideForPlayer(playerid,Russiateam);
  3600. TextDrawHideForPlayer(playerid,Englandteam);
  3601. TextDrawHideForPlayer(playerid,Arabteam);
  3602. TextDrawHideForPlayer(playerid,Brasilteam);
  3603. TextDrawShowForPlayer(playerid,Franceteam);
  3604. }
  3605. if(classid == 2)
  3606. {
  3607. gPais[playerid] = ARAB;
  3608. TextDrawHideForPlayer(playerid,USAteam);
  3609. TextDrawHideForPlayer(playerid,Russiateam);
  3610. TextDrawHideForPlayer(playerid,Englandteam);
  3611. TextDrawHideForPlayer(playerid,Franceteam);
  3612. TextDrawHideForPlayer(playerid,Brasilteam);
  3613. TextDrawShowForPlayer(playerid,Arabteam);
  3614. }
  3615. if(classid == 3)
  3616. {
  3617. gPais[playerid] = USA;
  3618. TextDrawHideForPlayer(playerid,Arabteam);
  3619. TextDrawHideForPlayer(playerid,Russiateam);
  3620. TextDrawHideForPlayer(playerid,Englandteam);
  3621. TextDrawHideForPlayer(playerid,Franceteam);
  3622. TextDrawHideForPlayer(playerid,Brasilteam);
  3623. TextDrawShowForPlayer(playerid,USAteam);
  3624. }
  3625. if(classid == 4)
  3626. {
  3627. gPais[playerid] = RUSSIA;
  3628. TextDrawHideForPlayer(playerid,Arabteam);
  3629. TextDrawHideForPlayer(playerid,USAteam);
  3630. TextDrawHideForPlayer(playerid,Englandteam);
  3631. TextDrawHideForPlayer(playerid,Arabteam);
  3632. TextDrawHideForPlayer(playerid,Brasilteam);
  3633. TextDrawShowForPlayer(playerid,Russiateam);
  3634. }
  3635. if(classid == 5)
  3636. {
  3637. gPais[playerid] = ENGLAND;
  3638. TextDrawHideForPlayer(playerid,Arabteam);
  3639. TextDrawHideForPlayer(playerid,Russiateam);
  3640. TextDrawHideForPlayer(playerid,USAteam);
  3641. TextDrawHideForPlayer(playerid,Arabteam);
  3642. TextDrawHideForPlayer(playerid,Brasilteam);
  3643. TextDrawShowForPlayer(playerid,Englandteam);
  3644. }
  3645. return 1;
  3646. }
  3647.  
  3648. public OnPlayerConnect(playerid)
  3649. {
  3650. AExplode[playerid] = 0;
  3651. KillStreak[playerid] = 0;
  3652. UsedBomb[playerid] = 0;
  3653. BombPlant[playerid] = 0;
  3654. Duty[playerid] = 0;
  3655. HealedTeam[playerid] = 0;
  3656. ArmoredTeam[playerid] = 0;
  3657. Spectating[playerid] = 0;
  3658. LoadBox(playerid);
  3659. ShowPlayerBox(playerid);
  3660. TextDrawShowForPlayer(playerid,web);
  3661. TextDrawShowForPlayer(playerid,server);
  3662. new str[128],Name[MAX_PLAYER_NAME];
  3663. GetPlayerName(playerid,Name,sizeof(Name));
  3664. format(str,sizeof(str),"~g~%s[%d] ~r~Entrou no Servidor ||%s",Name,playerid,GetLevelName(playerid));
  3665. SendBoxMessage(str);
  3666. SetPlayerCameraPos(playerid,110.9027,1813.5228,33.8984);
  3667. SetPlayerCameraLookAt(playerid,-283.7302,1503.8756,154.8811);
  3668. //USA Base
  3669. RemoveBuildingForPlayer(playerid, 3300, -166.1328, 2731.0859, 63.0703, 0.25);
  3670. RemoveBuildingForPlayer(playerid, 3298, -165.3906, 2708.1016, 62.2266, 0.25);
  3671. RemoveBuildingForPlayer(playerid, 3297, -147.7891, 2684.8125, 63.2188, 0.25);
  3672. RemoveBuildingForPlayer(playerid, 16765, -227.4531, 2716.3516, 62.1719, 0.25);
  3673. RemoveBuildingForPlayer(playerid, 669, -156.0234, 2675.2031, 61.8438, 0.25);
  3674. RemoveBuildingForPlayer(playerid, 672, -240.8359, 2737.1484, 62.4844, 0.25);
  3675. RemoveBuildingForPlayer(playerid, 16011, -227.4531, 2716.3516, 62.1719, 0.25);
  3676. RemoveBuildingForPlayer(playerid, 3241, -165.3906, 2708.1016, 62.2266, 0.25);
  3677. RemoveBuildingForPlayer(playerid, 669, -155.0938, 2711.2344, 61.8438, 0.25);
  3678. RemoveBuildingForPlayer(playerid, 3285, -166.1328, 2731.0859, 63.0703, 0.25);
  3679. RemoveBuildingForPlayer(playerid, 3242, -147.7891, 2684.8125, 63.2188, 0.25);
  3680. //England Base
  3681. RemoveBuildingForPlayer(playerid, 3458, 1101.4297, 2231.5000, 17.2344, 0.25);
  3682. RemoveBuildingForPlayer(playerid, 3458, 1101.4375, 2236.6250, 17.2344, 0.25);
  3683. RemoveBuildingForPlayer(playerid, 3458, 1101.4297, 2253.9141, 17.2344, 0.25);
  3684. RemoveBuildingForPlayer(playerid, 3458, 1101.4375, 2259.0391, 17.2344, 0.25);
  3685. RemoveBuildingForPlayer(playerid, 3458, 1101.4297, 2209.0859, 17.2344, 0.25);
  3686. RemoveBuildingForPlayer(playerid, 3458, 1101.4375, 2214.2109, 17.2344, 0.25);
  3687. RemoveBuildingForPlayer(playerid, 16094, 191.1406, 1870.0391, 21.4766, 0.25);
  3688. if(fexist(UserPath(playerid)))
  3689. {
  3690. INI_ParseFile(UserPath(playerid),"LoadUser_%s", .bExtra = true, .extra = playerid);
  3691. ShowPlayerDialog(playerid,LOGIN,DIALOG_STYLE_INPUT,"Login","Digite Sua Senha abaixo Para Logar","Login","Sair");
  3692. }
  3693. else
  3694. {
  3695. ShowPlayerDialog(playerid,RESGISTRO,DIALOG_STYLE_INPUT,"Registro","Coloque sua senha abaixo para se registrar!","Registrar","Sair");
  3696. }
  3697. Logged[playerid] = 0;
  3698.  
  3699. SendClientMessage(playerid,CINZA,"======================= {F81414}[w.w]{AFAFAF} =======================");
  3700. SendClientMessage(playerid,0xFFFFFFFF," {AFAFAF}========= {FFFFFF}Bem vindos ao {F81414}[TDM] World Wars v1.0{AFAFAF} =========");
  3701. SendClientMessage(playerid,0xFFFFFFFF," {AFAFAF}=== {FFFFFF}Para Saber os comandos do Servidor digite: {F81414}/comandos {AFAFAF}===");
  3702. SendClientMessage(playerid,0xFFFFFFFF," {AFAFAF}== {FFFFFF}Por favor leia as Regras em: {F81414}/regras{FFFFFF} Objetivos: {F81414}/Objetivos {AFAFAF}==");
  3703. SendClientMessage(playerid,0xFFFFFFFF," {AFAFAF}========= {FFFFFF}Criador {F81414}/Creditos {FFFFFF} Tenha um Bom Jogo ! {AFAFAF}=========");
  3704. SendClientMessage(playerid,CINZA,"======================= {F81414}[w.w]{AFAFAF} =======================");
  3705.  
  3706. //SendClientMessage(playerid,LARANJA,">> Bem vindo ao [TDM] World War v1.0");
  3707. //SendClientMessage(playerid,LARANJA,">> Por favor, leia as regras do servidor usando /regras || para ver os objetivos use /objetivo!");
  3708. //Oil Field!
  3709. SetPlayerMapIcon(playerid,0,221.2384,1420.9762,10.5859,19,2,MAPICON_GLOBAL);
  3710. if(tCheck[OILFIELD] == NONE)GangZoneShowForAll(Zone[OILFIELD],COLOR_NONE_CAPTURE);
  3711. if(tCheck[OILFIELD] == BRASIL)GangZoneShowForAll(Zone[OILFIELD],VERDE);
  3712. if(tCheck[OILFIELD] == USA)GangZoneShowForAll(Zone[OILFIELD],AZUL);
  3713. if(tCheck[OILFIELD] == FRANCE)GangZoneShowForAll(Zone[OILFIELD],LARANJA);
  3714. if(tCheck[OILFIELD] == ARAB)GangZoneShowForAll(Zone[OILFIELD],AMARELO);
  3715. if(tCheck[OILFIELD] == ENGLAND)GangZoneShowForAll(Zone[OILFIELD],BRANCO);
  3716. //Hunter Quarry!
  3717. SetPlayerMapIcon(playerid,1,621.7979,890.8572,-41.1028,19,2,MAPICON_GLOBAL);
  3718. if(tCheck[QUARRY] == NONE)GangZoneShowForAll(Zone[QUARRY],COLOR_NONE_CAPTURE);
  3719. if(tCheck[QUARRY] == BRASIL)GangZoneShowForAll(Zone[QUARRY],VERDE);
  3720. if(tCheck[QUARRY] == USA)GangZoneShowForAll(Zone[QUARRY],AZUL);
  3721. if(tCheck[QUARRY] == FRANCE)GangZoneShowForAll(Zone[QUARRY],LARANJA);
  3722. if(tCheck[QUARRY] == ARAB)GangZoneShowForAll(Zone[QUARRY],AMARELO);
  3723. if(tCheck[QUARRY] == ENGLAND)GangZoneShowForAll(Zone[QUARRY],BRANCO);
  3724. //Big ear
  3725. SetPlayerMapIcon(playerid,2,-350.0614,1583.5765,76.4040,19,2,MAPICON_GLOBAL);
  3726. if(tCheck[BIGEAR] == NONE)GangZoneShowForAll(Zone[BIGEAR],COLOR_NONE_CAPTURE);
  3727. if(tCheck[BIGEAR] == BRASIL)GangZoneShowForAll(Zone[BIGEAR],VERDE);
  3728. if(tCheck[BIGEAR] == USA)GangZoneShowForAll(Zone[BIGEAR],AZUL);
  3729. if(tCheck[BIGEAR] == FRANCE)GangZoneShowForAll(Zone[BIGEAR],LARANJA);
  3730. if(tCheck[BIGEAR] == ENGLAND)GangZoneShowForAll(Zone[BIGEAR],BRANCO);
  3731. if(tCheck[BIGEAR] == RUSSIA)GangZoneShowForAll(Zone[BIGEAR],COLOR_PURPLE);
  3732. if(tCheck[BIGEAR] == ARAB)GangZoneShowForAll(Zone[BIGEAR],AMARELO);
  3733. //Ufo Zone
  3734. SetPlayerMapIcon(playerid,3,4.2395,1369.3943,9.1719,19,2,MAPICON_GLOBAL);
  3735. if(tCheck[UFO] == NONE)GangZoneShowForAll(Zone[UFO],COLOR_NONE_CAPTURE);
  3736. if(tCheck[UFO] == BRASIL)GangZoneShowForAll(Zone[UFO],VERDE);
  3737. if(tCheck[UFO] == USA)GangZoneShowForAll(Zone[UFO],AZUL);
  3738. if(tCheck[UFO] == FRANCE)GangZoneShowForAll(Zone[UFO],LARANJA);
  3739. if(tCheck[UFO] == ENGLAND)GangZoneShowForAll(Zone[UFO],BRANCO);
  3740. if(tCheck[UFO] == RUSSIA)GangZoneShowForAll(Zone[UFO],COLOR_PURPLE);
  3741. if(tCheck[UFO] == ARAB)GangZoneShowForAll(Zone[UFO],AMARELO);
  3742. //Area 51
  3743. SetPlayerMapIcon(playerid,4,239.5929,1822.8057,4.7109,19,2,MAPICON_GLOBAL);
  3744. if(tCheck[AREA51] == NONE)GangZoneShowForAll(Zone[AREA51],COLOR_NONE_CAPTURE);
  3745. if(tCheck[AREA51] == BRASIL)GangZoneShowForAll(Zone[AREA51],VERDE);
  3746. if(tCheck[AREA51] == USA)GangZoneShowForAll(Zone[AREA51],AZUL);
  3747. if(tCheck[AREA51] == FRANCE)GangZoneShowForAll(Zone[AREA51],LARANJA);
  3748. if(tCheck[AREA51] == ENGLAND)GangZoneShowForAll(Zone[AREA51],BRANCO);
  3749. if(tCheck[AREA51] == RUSSIA)GangZoneShowForAll(Zone[AREA51],COLOR_PURPLE);
  3750. if(tCheck[AREA51] == ARAB)GangZoneShowForAll(Zone[AREA51],AMARELO);
  3751. //Abandoned airstrip
  3752. SetPlayerMapIcon(playerid,5,403.5271,2448.4187,16.5000,19,2,MAPICON_GLOBAL);
  3753. if(tCheck[ABANDONED] == NONE)GangZoneShowForAll(Zone[ABANDONED],COLOR_NONE_CAPTURE);
  3754. if(tCheck[ABANDONED] == BRASIL)GangZoneShowForAll(Zone[ABANDONED],VERDE);
  3755. if(tCheck[ABANDONED] == USA)GangZoneShowForAll(Zone[ABANDONED],AZUL);
  3756. if(tCheck[ABANDONED] == FRANCE)GangZoneShowForAll(Zone[ABANDONED],LARANJA);
  3757. if(tCheck[ABANDONED] == ENGLAND)GangZoneShowForAll(Zone[ABANDONED],BRANCO);
  3758. if(tCheck[ABANDONED] == RUSSIA)GangZoneShowForAll(Zone[ABANDONED],COLOR_PURPLE);
  3759. if(tCheck[ABANDONED] == ARAB)GangZoneShowForAll(Zone[ABANDONED],AMARELO);
  3760. //Snake Farm
  3761. SetPlayerMapIcon(playerid,6,-36.2617,2350.2056,24.3026,19,2,MAPICON_GLOBAL);
  3762. if(tCheck[SNAKE] == NONE)GangZoneShowForAll(Zone[SNAKE],COLOR_NONE_CAPTURE);
  3763. if(tCheck[SNAKE] == BRASIL)GangZoneShowForAll(Zone[SNAKE],VERDE);
  3764. if(tCheck[SNAKE] == USA)GangZoneShowForAll(Zone[SNAKE],AZUL);
  3765. if(tCheck[SNAKE] == FRANCE)GangZoneShowForAll(Zone[SNAKE],LARANJA);
  3766. if(tCheck[SNAKE] == ENGLAND)GangZoneShowForAll(Zone[SNAKE],BRANCO);
  3767. if(tCheck[SNAKE] == RUSSIA)GangZoneShowForAll(Zone[SNAKE],COLOR_PURPLE);
  3768. if(tCheck[SNAKE] == ARAB)GangZoneShowForAll(Zone[SNAKE],AMARELO);
  3769. //Basin
  3770. SetPlayerMapIcon(playerid,7,-597.1797,1963.8027,7.0000,19,2,MAPICON_GLOBAL);
  3771. if(tCheck[BASIN] == NONE)GangZoneShowForAll(Zone[BASIN],COLOR_NONE_CAPTURE);
  3772. if(tCheck[BASIN] == BRASIL)GangZoneShowForAll(Zone[BASIN],VERDE);
  3773. if(tCheck[BASIN] == USA)GangZoneShowForAll(Zone[BASIN],AZUL);
  3774. if(tCheck[BASIN] == FRANCE)GangZoneShowForAll(Zone[BASIN],LARANJA);
  3775. if(tCheck[BASIN] == ENGLAND)GangZoneShowForAll(Zone[BASIN],BRANCO);
  3776. if(tCheck[BASIN] == RUSSIA)GangZoneShowForAll(Zone[BASIN],COLOR_PURPLE);
  3777. if(tCheck[BASIN] == ARAB)GangZoneShowForAll(Zone[BASIN],AMARELO);
  3778. //Beach side
  3779. SetPlayerMapIcon(playerid,8,-688.4477,936.8319,13.6328,19,2,MAPICON_GLOBAL);
  3780. if(tCheck[BEACHSIDE] == NONE)GangZoneShowForAll(Zone[BEACHSIDE],COLOR_NONE_CAPTURE);
  3781. if(tCheck[BEACHSIDE] == BRASIL)GangZoneShowForAll(Zone[BEACHSIDE],VERDE);
  3782. if(tCheck[BEACHSIDE] == USA)GangZoneShowForAll(Zone[BEACHSIDE],AZUL);
  3783. if(tCheck[BEACHSIDE] == FRANCE)GangZoneShowForAll(Zone[BEACHSIDE],LARANJA);
  3784. if(tCheck[BEACHSIDE] == ENGLAND)GangZoneShowForAll(Zone[BEACHSIDE],BRANCO);
  3785. if(tCheck[BEACHSIDE] == RUSSIA)GangZoneShowForAll(Zone[BEACHSIDE],COLOR_PURPLE);
  3786. if(tCheck[BEACHSIDE] == ARAB)GangZoneShowForAll(Zone[BEACHSIDE],AMARELO);
  3787. //Army restaurant
  3788. SetPlayerMapIcon(playerid,9,-551.0908,2594.7429,53.9348,19,2,MAPICON_GLOBAL);
  3789. if(tCheck[RESTAURANT] == NONE)GangZoneShowForAll(Zone[RESTAURANT],COLOR_NONE_CAPTURE);
  3790. if(tCheck[RESTAURANT] == BRASIL)GangZoneShowForAll(Zone[RESTAURANT],VERDE);
  3791. if(tCheck[RESTAURANT] == USA)GangZoneShowForAll(Zone[RESTAURANT],AZUL);
  3792. if(tCheck[RESTAURANT] == FRANCE)GangZoneShowForAll(Zone[RESTAURANT],LARANJA);
  3793. if(tCheck[RESTAURANT] == ENGLAND)GangZoneShowForAll(Zone[RESTAURANT],BRANCO);
  3794. if(tCheck[RESTAURANT] == RUSSIA)GangZoneShowForAll(Zone[RESTAURANT],COLOR_PURPLE);
  3795. if(tCheck[RESTAURANT] == ARAB)GangZoneShowForAll(Zone[RESTAURANT],AMARELO);
  3796. //Gas station
  3797. SetPlayerMapIcon(playerid,10,664.8769,1701.0980,7.1949,19,2,MAPICON_GLOBAL);
  3798. if(tCheck[GAS] == NONE)GangZoneShowForAll(Zone[GAS],COLOR_NONE_CAPTURE);
  3799. if(tCheck[GAS] == BRASIL)GangZoneShowForAll(Zone[GAS],VERDE);
  3800. if(tCheck[GAS] == USA)GangZoneShowForAll(Zone[GAS],AZUL);
  3801. if(tCheck[GAS] == FRANCE)GangZoneShowForAll(Zone[GAS],LARANJA);
  3802. if(tCheck[GAS] == ENGLAND)GangZoneShowForAll(Zone[GAS],BRANCO);
  3803. if(tCheck[GAS] == RUSSIA)GangZoneShowForAll(Zone[GAS],COLOR_PURPLE);
  3804. if(tCheck[GAS] == ARAB)GangZoneShowForAll(Zone[GAS],AMARELO);
  3805. //Stadium
  3806. SetPlayerMapIcon(playerid,11,1099.8395,1454.6685,12.5469,19,2,MAPICON_GLOBAL);
  3807. if(tCheck[STADIUM] == NONE)GangZoneShowForAll(Zone[STADIUM],COLOR_NONE_CAPTURE);
  3808. if(tCheck[STADIUM] == BRASIL)GangZoneShowForAll(Zone[STADIUM],VERDE);
  3809. if(tCheck[STADIUM] == USA)GangZoneShowForAll(Zone[STADIUM],AZUL);
  3810. if(tCheck[STADIUM] == FRANCE)GangZoneShowForAll(Zone[STADIUM],LARANJA);
  3811. if(tCheck[STADIUM] == ENGLAND)GangZoneShowForAll(Zone[STADIUM],BRANCO);
  3812. if(tCheck[STADIUM] == RUSSIA)GangZoneShowForAll(Zone[STADIUM],COLOR_PURPLE);
  3813. if(tCheck[STADIUM] == ARAB)GangZoneShowForAll(Zone[STADIUM],AMARELO);
  3814. //Golden Gate Bridge
  3815. SetPlayerMapIcon(playerid,12,-2657.0322,1935.6600,64.3639,19,2,MAPICON_GLOBAL);
  3816. if(tCheck[BRIDGE] == NONE)GangZoneShowForAll(Zone[BRIDGE],COLOR_NONE_CAPTURE);
  3817. if(tCheck[BRIDGE] == BRASIL)GangZoneShowForAll(Zone[BRIDGE],VERDE);
  3818. if(tCheck[BRIDGE] == USA)GangZoneShowForAll(Zone[BRIDGE],AZUL);
  3819. if(tCheck[BRIDGE] == FRANCE)GangZoneShowForAll(Zone[BRIDGE],LARANJA);
  3820. if(tCheck[BRIDGE] == ENGLAND)GangZoneShowForAll(Zone[BRIDGE],BRANCO);
  3821. if(tCheck[BRIDGE] == RUSSIA)GangZoneShowForAll(Zone[BRIDGE],COLOR_PURPLE);
  3822. if(tCheck[BRIDGE] == ARAB)GangZoneShowForAll(Zone[BRIDGE],AMARELO);
  3823. //Motel
  3824. SetPlayerMapIcon(playerid,13,-808.0388,2759.4426,46.0000,19,2,MAPICON_GLOBAL);
  3825. if(tCheck[MOTEL] == NONE)GangZoneShowForAll(Zone[MOTEL],COLOR_NONE_CAPTURE);
  3826. if(tCheck[MOTEL] == BRASIL)GangZoneShowForAll(Zone[MOTEL],VERDE);
  3827. if(tCheck[MOTEL] == USA)GangZoneShowForAll(Zone[MOTEL],AZUL);
  3828. if(tCheck[MOTEL] == FRANCE)GangZoneShowForAll(Zone[MOTEL],LARANJA);
  3829. if(tCheck[MOTEL] == ENGLAND)GangZoneShowForAll(Zone[MOTEL],BRANCO);
  3830. if(tCheck[MOTEL] == RUSSIA)GangZoneShowForAll(Zone[MOTEL],COLOR_PURPLE);
  3831. if(tCheck[MOTEL] == ARAB)GangZoneShowForAll(Zone[MOTEL],AMARELO);
  3832. //San fierro station
  3833. SetPlayerMapIcon(playerid,14,-1973.1788,117.6069,27.6875,19,2,MAPICON_GLOBAL);
  3834. if(tCheck[STATION] == NONE)GangZoneShowForAll(Zone[STATION],COLOR_NONE_CAPTURE);
  3835. if(tCheck[STATION] == BRASIL)GangZoneShowForAll(Zone[STATION],VERDE);
  3836. if(tCheck[STATION] == USA)GangZoneShowForAll(Zone[STATION],AZUL);
  3837. if(tCheck[STATION] == FRANCE)GangZoneShowForAll(Zone[STATION],LARANJA);
  3838. if(tCheck[STATION] == ENGLAND)GangZoneShowForAll(Zone[STATION],BRANCO);
  3839. if(tCheck[STATION] == RUSSIA)GangZoneShowForAll(Zone[STATION],COLOR_PURPLE);
  3840. if(tCheck[STATION] == ARAB)GangZoneShowForAll(Zone[STATION],AMARELO);
  3841. //San fierro studio
  3842. SetPlayerMapIcon(playerid,15,-2521.1257,-624.8945,132.7839,19,2,MAPICON_GLOBAL);
  3843. if(tCheck[STUDIO] == NONE)GangZoneShowForAll(Zone[STUDIO],COLOR_NONE_CAPTURE);
  3844. if(tCheck[STUDIO] == BRASIL)GangZoneShowForAll(Zone[STUDIO],VERDE);
  3845. if(tCheck[STUDIO] == USA)GangZoneShowForAll(Zone[STUDIO],AZUL);
  3846. if(tCheck[STUDIO] == FRANCE)GangZoneShowForAll(Zone[STUDIO],LARANJA);
  3847. if(tCheck[STUDIO] == ENGLAND)GangZoneShowForAll(Zone[STUDIO],BRANCO);
  3848. if(tCheck[STUDIO] == RUSSIA)GangZoneShowForAll(Zone[STUDIO],COLOR_PURPLE);
  3849. if(tCheck[STUDIO] == ARAB)GangZoneShowForAll(Zone[STUDIO],AMARELO);
  3850. //Construction project near doherty, san fierro
  3851. SetPlayerMapIcon(playerid,16,-2060.4949,308.2476,35.3623,19,2,MAPICON_GLOBAL);
  3852. if(tCheck[PROJECT] == NONE)GangZoneShowForAll(Zone[PROJECT],COLOR_NONE_CAPTURE);
  3853. if(tCheck[PROJECT] == BRASIL)GangZoneShowForAll(Zone[PROJECT],VERDE);
  3854. if(tCheck[PROJECT] == USA)GangZoneShowForAll(Zone[PROJECT],AZUL);
  3855. if(tCheck[PROJECT] == FRANCE)GangZoneShowForAll(Zone[PROJECT],LARANJA);
  3856. if(tCheck[PROJECT] == ENGLAND)GangZoneShowForAll(Zone[PROJECT],BRANCO);
  3857. if(tCheck[PROJECT] == RUSSIA)GangZoneShowForAll(Zone[PROJECT],COLOR_PURPLE);
  3858. if(tCheck[PROJECT] == ARAB)GangZoneShowForAll(Zone[PROJECT],AMARELO);
  3859. //Zone
  3860. GangZoneShowForAll(Brasilzone,VERDE);
  3861. GangZoneShowForAll(Russiazone,COLOR_PURPLE);
  3862. GangZoneShowForAll(USAzone,AZUL);
  3863. GangZoneShowForAll(Arabzone,AMARELO);
  3864. GangZoneShowForAll(Englandzone,BRANCO);
  3865. GangZoneShowForAll(Francezone,LARANJA);
  3866. return 1;
  3867. }
  3868.  
  3869. public OnPlayerDisconnect(playerid, reason)
  3870. {
  3871. new INI:File = INI_Open(UserPath(playerid));
  3872. INI_SetTag(File,"Data");
  3873. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  3874. INI_WriteInt(File,"Scores",GetPlayerScore(playerid));
  3875. INI_WriteInt(File,"Kill",PlayerInfo[playerid][pKill]);
  3876. INI_WriteInt(File,"Death",PlayerInfo[playerid][pDeath]);
  3877. INI_WriteInt(File,"Level",PlayerInfo[playerid][pAdmin]);
  3878. INI_WriteInt(File,"VIP",PlayerInfo[playerid][pVip]);
  3879. INI_Close(File);
  3880. new str[128],Name[MAX_PLAYER_NAME];
  3881. GetPlayerName(playerid,Name,sizeof(Name));
  3882. format(str,sizeof(str),"~g~%s[%d] ~r~Saiu do Servidor!",Name,playerid);
  3883. SendBoxMessage(str);
  3884. if(Captured[playerid][OILFIELD] == 0&&IsPlayerCapturing[playerid][OILFIELD] == 1)
  3885. {
  3886. LeavingOil(playerid);
  3887. }
  3888. if(Captured[playerid][QUARRY] == 0&&IsPlayerCapturing[playerid][QUARRY] == 1)
  3889. {
  3890. LeavingQuarry(playerid);
  3891. }
  3892. if(Captured[playerid][BIGEAR] == 0&&IsPlayerCapturing[playerid][BIGEAR] == 1)
  3893. {
  3894. LeavingBigEar(playerid);
  3895. }
  3896. if(Captured[playerid][UFO] == 0&&IsPlayerCapturing[playerid][UFO] == 1)
  3897. {
  3898. LeavingUfo(playerid);
  3899. }
  3900. if(Captured[playerid][AREA51] == 0&&IsPlayerCapturing[playerid][AREA51] == 1)
  3901. {
  3902. LeavingArea51(playerid);
  3903. }
  3904. if(Captured[playerid][ABANDONED] == 0&&IsPlayerCapturing[playerid][ABANDONED] == 1)
  3905. {
  3906. LeavingAbandoned(playerid);
  3907. }
  3908. if(Captured[playerid][SNAKE] == 0&&IsPlayerCapturing[playerid][SNAKE] == 1)
  3909. {
  3910. LeavingSnake(playerid);
  3911. }
  3912. if(Captured[playerid][BASIN] == 0&&IsPlayerCapturing[playerid][BASIN] == 1)
  3913. {
  3914. LeavingBasin(playerid);
  3915. }
  3916. if(Captured[playerid][BEACHSIDE] == 0&&IsPlayerCapturing[playerid][BEACHSIDE] == 1)
  3917. {
  3918. LeavingBeach(playerid);
  3919. }
  3920. if(Captured[playerid][RESTAURANT] == 0&&IsPlayerCapturing[playerid][RESTAURANT] == 1)
  3921. {
  3922. LeavingRestaurant(playerid);
  3923. }
  3924. if(Captured[playerid][GAS] == 0&&IsPlayerCapturing[playerid][GAS] == 1)
  3925. {
  3926. LeavingGas(playerid);
  3927. }
  3928. if(Captured[playerid][STADIUM] == 0&&IsPlayerCapturing[playerid][STADIUM] == 1)
  3929. {
  3930. LeavingStadium(playerid);
  3931. }
  3932. if(Captured[playerid][BRIDGE] == 0&&IsPlayerCapturing[playerid][BRIDGE] == 1)
  3933. {
  3934. LeavingBridge(playerid);
  3935. }
  3936. if(IsPlayerCapturing[playerid][MOTEL] == 1&&Captured[playerid][MOTEL] == 0)
  3937. {
  3938. LeavingMotel(playerid);
  3939. }
  3940. if(IsPlayerCapturing[playerid][STATION] == 1&&Captured[playerid][STATION] == 0)
  3941. {
  3942. LeavingStation(playerid);
  3943. }
  3944. if(IsPlayerCapturing[playerid][STUDIO] == 1&&Captured[playerid][STUDIO] == 0)
  3945. {
  3946. LeavingStudio(playerid);
  3947. }
  3948. if(IsPlayerCapturing[playerid][PROJECT] == 1&&Captured[playerid][PROJECT] == 0)
  3949. {
  3950. LeavingProject(playerid);
  3951. }
  3952. return 1;
  3953. }
  3954.  
  3955. public OnPlayerSpawn(playerid)
  3956. {
  3957. IsPlayerInDuel[playerid] = 0;
  3958. InDM[playerid] = 0;
  3959. AFK[playerid] = 0;
  3960. InHIC[playerid] = 0;
  3961. SpawnKill[playerid] = 1;
  3962. VShop[playerid] = 0;
  3963. HealedTeam[playerid] = 0;
  3964. SetPlayerHealth(playerid,99999999);
  3965. AntiSpawnKill[playerid] = SetTimerEx("AntiSpawnKilling",10000,false,"i",playerid);
  3966. SendClientMessage(playerid,VERDE,"[ANTI-SPAWN-KILL] Protegido por 10 segundos.");
  3967.  
  3968.  
  3969. if(gClasse[playerid] == SOLDADOASSAULT)
  3970. {
  3971. ResetPlayerWeapons(playerid);
  3972. GivePlayerWeapon(playerid,29,9999);
  3973. GivePlayerWeapon(playerid,31,9999);
  3974. GivePlayerWeapon(playerid,24,9999);
  3975. GivePlayerWeapon(playerid,33,9999);
  3976. GivePlayerWeapon(playerid,17,5);
  3977. gClasse[playerid] = SOLDADOASSAULT;
  3978. }
  3979.  
  3980. if(gClasse[playerid] == SOLDADOSNIPER)
  3981. {
  3982. ResetPlayerWeapons(playerid);
  3983. GivePlayerWeapon(playerid,24,9999);
  3984. GivePlayerWeapon(playerid,25,9999);
  3985. GivePlayerWeapon(playerid,34,9999);
  3986. GivePlayerWeapon(playerid,29,9999);
  3987. GivePlayerWeapon(playerid,17,5);
  3988. gClasse[playerid] = SOLDADOSNIPER;
  3989. }
  3990.  
  3991. if(gClasse[playerid] == MEDICO)
  3992. {
  3993. ResetPlayerWeapons(playerid);
  3994. GivePlayerWeapon(playerid,26,9999);
  3995. GivePlayerWeapon(playerid,17,5);
  3996. GivePlayerWeapon(playerid,24,9999);
  3997. GivePlayerWeapon(playerid,29,9999);
  3998. GivePlayerWeapon(playerid,25,9999);
  3999. gClasse[playerid] = MEDICO;
  4000. }
  4001.  
  4002. if(gClasse[playerid] == MECANICO)
  4003. {
  4004. SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe de - Soldado Mecanico Tanker -");
  4005. ResetPlayerWeapons(playerid);
  4006. GivePlayerWeapon(playerid,26,9999);
  4007. GivePlayerWeapon(playerid,24,9999);
  4008. GivePlayerWeapon(playerid,28,9999);
  4009. GivePlayerWeapon(playerid,30,9999);
  4010. GivePlayerWeapon(playerid,18,5);
  4011. gClasse[playerid] = MECANICO;
  4012. }
  4013.  
  4014. if(gClasse[playerid] == PILOTO)
  4015. {
  4016. SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe de - Piloto -");
  4017. ResetPlayerWeapons(playerid);
  4018. GivePlayerWeapon(playerid,16,5);
  4019. GivePlayerWeapon(playerid,27,9999);
  4020. GivePlayerWeapon(playerid,24,9999);
  4021. GivePlayerWeapon(playerid,30,9999);
  4022. GivePlayerWeapon(playerid,32,9999);
  4023. gClasse[playerid] = PILOTO;
  4024. }
  4025.  
  4026. if(gClasse[playerid] == BOMBARDEIRO)
  4027. {
  4028. ResetPlayerWeapons(playerid);
  4029. GivePlayerWeapon(playerid,24,9999);
  4030. GivePlayerWeapon(playerid,32,9999);
  4031. GivePlayerWeapon(playerid,33,9999);
  4032. GivePlayerWeapon(playerid,39,10);
  4033. GivePlayerWeapon(playerid,40,10);
  4034. GivePlayerWeapon(playerid,16,10);
  4035. gClasse[playerid] = BOMBARDEIRO;
  4036. }
  4037.  
  4038. if(gClasse[playerid] == CAPITAO)
  4039. {
  4040. SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe de - Capitão -");
  4041. ResetPlayerWeapons(playerid);
  4042. GivePlayerWeapon(playerid,26,99999);
  4043. GivePlayerWeapon(playerid,24,99999);
  4044. GivePlayerWeapon(playerid,31,99999);
  4045. GivePlayerWeapon(playerid,33,99999);
  4046. GivePlayerWeapon(playerid,35,2);
  4047. GivePlayerWeapon(playerid,16,10);
  4048. GivePlayerWeapon(playerid,17,10);
  4049. GivePlayerWeapon(playerid,18,10);
  4050. gClasse[playerid] = CAPITAO;
  4051. }
  4052.  
  4053. if(gClasse[playerid] == GENERAL)
  4054. {
  4055. SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe de - General -");
  4056. ResetPlayerWeapons(playerid);
  4057. GivePlayerWeapon(playerid,26,99999);
  4058. GivePlayerWeapon(playerid,24,99999);
  4059. GivePlayerWeapon(playerid,30,99999);
  4060. GivePlayerWeapon(playerid,33,99999);
  4061. GivePlayerWeapon(playerid,35,5);
  4062. GivePlayerWeapon(playerid,32,99999);
  4063. GivePlayerWeapon(playerid,16,10);
  4064. GivePlayerWeapon(playerid,17,10);
  4065. GivePlayerWeapon(playerid,18,10);
  4066. gClasse[playerid] = GENERAL;
  4067. }
  4068.  
  4069.  
  4070.  
  4071. if(GetPlayerScore(playerid)>=6000)
  4072. {
  4073. GivePlayerWeapon(playerid,35,10);
  4074. GivePlayerWeapon(playerid,16,10);
  4075. SendClientMessage(playerid,VERDE,"[PARABÉNS] Score 6000, ja é Rei dos Reis !");
  4076. }
  4077. new str[256];
  4078. format(str,sizeof(str),"Sua posição atual é %s. !",GetRankName(playerid));
  4079. SendClientMessage(playerid,LARANJA,str);
  4080.  
  4081.  
  4082. if(gPais[playerid] == BRASIL)
  4083. {
  4084. new Random = random(sizeof(BrasilSpawn));
  4085. SetPlayerColor(playerid,VERDE);
  4086. SetPlayerPos(playerid, BrasilSpawn[Random][0],BrasilSpawn[Random][1],BrasilSpawn[Random][2]);
  4087. }
  4088. if(gPais[playerid] == FRANCE)
  4089. {
  4090. new Random = random(sizeof(FranceSpawn));
  4091. SetPlayerColor(playerid,LARANJA);
  4092. SetPlayerPos(playerid, FranceSpawn[Random][0],FranceSpawn[Random][1],FranceSpawn[Random][2]);
  4093. }
  4094. if(gPais[playerid] == ARAB)
  4095. {
  4096. new Random = random(sizeof(ArabSpawn));
  4097. SetPlayerColor(playerid,AMARELO);
  4098. SetPlayerPos(playerid,ArabSpawn[Random][0],ArabSpawn[Random][1],ArabSpawn[Random][2]);
  4099. }
  4100. if(gPais[playerid] == USA)
  4101. {
  4102. new Random = random(sizeof(USASpawn));
  4103. SetPlayerColor(playerid,AZUL);
  4104. SetPlayerPos(playerid,USASpawn[Random][0],USASpawn[Random][1],USASpawn[Random][2]);
  4105. }
  4106. if(gPais[playerid] == ENGLAND)
  4107. {
  4108. new Random = random(sizeof(EnglandSpawn));
  4109. SetPlayerColor(playerid,BRANCO);
  4110. SetPlayerPos(playerid,EnglandSpawn[Random][0],EnglandSpawn[Random][1],EnglandSpawn[Random][2]);
  4111. }
  4112. if(gPais[playerid] == RUSSIA)
  4113. {
  4114. new Random = random(sizeof(RussiaSpawn));
  4115. SetPlayerColor(playerid,COLOR_PURPLE);
  4116. SetPlayerPos(playerid,RussiaSpawn[Random][0],RussiaSpawn[Random][1],RussiaSpawn[Random][2]);
  4117. }
  4118. if(Captured[playerid][OILFIELD] == 0&&IsPlayerCapturing[playerid][OILFIELD] == 1)
  4119. {
  4120. LeavingOil(playerid);
  4121. }
  4122. if(Captured[playerid][QUARRY] == 0&&IsPlayerCapturing[playerid][QUARRY] == 1)
  4123. {
  4124. LeavingQuarry(playerid);
  4125. }
  4126. if(Captured[playerid][BIGEAR] == 0&&IsPlayerCapturing[playerid][BIGEAR] == 1)
  4127. {
  4128. LeavingBigEar(playerid);
  4129. }
  4130. if(Captured[playerid][UFO] == 0&&IsPlayerCapturing[playerid][UFO] == 1)
  4131. {
  4132. LeavingUfo(playerid);
  4133. }
  4134. if(Captured[playerid][AREA51] == 0&&IsPlayerCapturing[playerid][AREA51] == 1)
  4135. {
  4136. LeavingArea51(playerid);
  4137. }
  4138. if(Captured[playerid][ABANDONED] == 0&&IsPlayerCapturing[playerid][ABANDONED] == 1)
  4139. {
  4140. LeavingAbandoned(playerid);
  4141. }
  4142. if(Captured[playerid][SNAKE] == 0&&IsPlayerCapturing[playerid][SNAKE] == 1)
  4143. {
  4144. LeavingSnake(playerid);
  4145. }
  4146. if(Captured[playerid][BASIN] == 0&&IsPlayerCapturing[playerid][BASIN] == 1)
  4147. {
  4148. LeavingBasin(playerid);
  4149. }
  4150. if(Captured[playerid][BEACHSIDE] == 0&&IsPlayerCapturing[playerid][BEACHSIDE] == 1)
  4151. {
  4152. LeavingBeach(playerid);
  4153. }
  4154. if(Captured[playerid][RESTAURANT] == 0&&IsPlayerCapturing[playerid][RESTAURANT] == 1)
  4155. {
  4156. LeavingRestaurant(playerid);
  4157. }
  4158. if(Captured[playerid][GAS] == 0&&IsPlayerCapturing[playerid][GAS] == 1)
  4159. {
  4160. LeavingGas(playerid);
  4161. }
  4162. if(Captured[playerid][STADIUM] == 0&&IsPlayerCapturing[playerid][STADIUM] == 1)
  4163. {
  4164. LeavingStadium(playerid);
  4165. }
  4166. if(Captured[playerid][BRIDGE] == 0&&IsPlayerCapturing[playerid][BRIDGE] == 1)
  4167. {
  4168. LeavingBridge(playerid);
  4169. }
  4170. if(IsPlayerCapturing[playerid][MOTEL] == 1&&Captured[playerid][MOTEL] == 0)
  4171. {
  4172. LeavingMotel(playerid);
  4173. }
  4174. if(IsPlayerCapturing[playerid][STATION] == 1&&Captured[playerid][STATION] == 0)
  4175. {
  4176. LeavingStation(playerid);
  4177. }
  4178. if(IsPlayerCapturing[playerid][STUDIO] == 1&&Captured[playerid][STUDIO] == 0)
  4179. {
  4180. LeavingStudio(playerid);
  4181. }
  4182. if(IsPlayerCapturing[playerid][PROJECT] == 1&&Captured[playerid][PROJECT] == 0)
  4183. {
  4184. LeavingProject(playerid);
  4185. }
  4186. return 1;
  4187. }
  4188.  
  4189. forward AntiSpawnKilling(playerid);
  4190. public AntiSpawnKilling(playerid)
  4191. {
  4192. SetPlayerHealth(playerid,100);
  4193. SetPlayerArmour(playerid,100);
  4194. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ANTI-SPAWN-KILL] Verificação Terminada! Prepare-se para a guerra!");
  4195. SpawnKill[playerid] = 0;
  4196. return 1;
  4197. }
  4198.  
  4199. public OnPlayerDeath(playerid, killerid, reason)
  4200. {
  4201. if(Captured[playerid][OILFIELD] == 0&&IsPlayerCapturing[playerid][OILFIELD] == 1)
  4202. {
  4203. LeavingOil(playerid);
  4204. }
  4205. if(Captured[playerid][QUARRY] == 0&&IsPlayerCapturing[playerid][QUARRY] == 1)
  4206. {
  4207. LeavingQuarry(playerid);
  4208. }
  4209. if(Captured[playerid][BIGEAR] == 0&&IsPlayerCapturing[playerid][BIGEAR] == 1)
  4210. {
  4211. LeavingBigEar(playerid);
  4212. }
  4213. if(Captured[playerid][UFO] == 0&&IsPlayerCapturing[playerid][UFO] == 1)
  4214. {
  4215. LeavingUfo(playerid);
  4216. }
  4217. if(Captured[playerid][AREA51] == 0&&IsPlayerCapturing[playerid][AREA51] == 1)
  4218. {
  4219. LeavingArea51(playerid);
  4220. }
  4221. if(Captured[playerid][ABANDONED] == 0&&IsPlayerCapturing[playerid][ABANDONED] == 1)
  4222. {
  4223. LeavingAbandoned(playerid);
  4224. }
  4225. if(Captured[playerid][SNAKE] == 0&&IsPlayerCapturing[playerid][SNAKE] == 1)
  4226. {
  4227. LeavingSnake(playerid);
  4228. }
  4229. if(Captured[playerid][BASIN] == 0&&IsPlayerCapturing[playerid][BASIN] == 1)
  4230. {
  4231. LeavingBasin(playerid);
  4232. }
  4233. if(Captured[playerid][BEACHSIDE] == 0&&IsPlayerCapturing[playerid][BEACHSIDE] == 1)
  4234. {
  4235. LeavingBeach(playerid);
  4236. }
  4237. if(Captured[playerid][RESTAURANT] == 0&&IsPlayerCapturing[playerid][RESTAURANT] == 1)
  4238. {
  4239. LeavingRestaurant(playerid);
  4240. }
  4241. if(Captured[playerid][GAS] == 0&&IsPlayerCapturing[playerid][GAS] == 1)
  4242. {
  4243. LeavingGas(playerid);
  4244. }
  4245. if(Captured[playerid][STADIUM] == 0&&IsPlayerCapturing[playerid][STADIUM] == 1)
  4246. {
  4247. LeavingStadium(playerid);
  4248. }
  4249. if(Captured[playerid][BRIDGE] == 0&&IsPlayerCapturing[playerid][BRIDGE] == 1)
  4250. {
  4251. LeavingBridge(playerid);
  4252. }
  4253. if(IsPlayerCapturing[playerid][MOTEL] == 1&&Captured[playerid][MOTEL] == 0)
  4254. {
  4255. LeavingMotel(playerid);
  4256. }
  4257. if(IsPlayerCapturing[playerid][STATION] == 1&&Captured[playerid][STATION] == 0)
  4258. {
  4259. LeavingStation(playerid);
  4260. }
  4261. if(IsPlayerCapturing[playerid][STUDIO] == 1&&Captured[playerid][STUDIO] == 0)
  4262. {
  4263. LeavingStudio(playerid);
  4264. }
  4265. if(IsPlayerCapturing[playerid][PROJECT] == 1&&Captured[playerid][PROJECT] == 0)
  4266. {
  4267. LeavingProject(playerid);
  4268. }
  4269. AExplode[playerid] = 0;
  4270. BombPlant[playerid] = 0;
  4271. UsedBomb[playerid] = 0;
  4272. HealedTeam[playerid] = 0;
  4273. ArmoredTeam[playerid] = 0;
  4274. SendDeathMessage(killerid,playerid,reason);
  4275. PlayerInfo[playerid][pDeath]++;
  4276. PlayerInfo[killerid][pKill]++;
  4277. KillStreak[killerid]++;
  4278. KillStreak[playerid] = 0;
  4279. GivePlayerMoney(killerid,2000);
  4280. SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
  4281. if(KillStreak[playerid]>10&&KillStreak[playerid]<30)
  4282. {
  4283. KillStreak[playerid] = 0;
  4284. new Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME];
  4285. GetPlayerName(playerid,Name,sizeof(Name));
  4286. GetPlayerName(killerid,Name2,sizeof(Name2));
  4287. //format(str,sizeof(str),"%s[%d] %s[%d]sprees!",Name2,killerid,Name,playerid);
  4288. //SendClientMessageToAll(LARANJA,str);
  4289. }
  4290. if(KillStreak[killerid] == 10)
  4291. {
  4292. new str[256],Name[MAX_PLAYER_NAME];
  4293. GetPlayerName(killerid,Name,sizeof(Name));
  4294. format(str,sizeof(str),"{35CA69}Tom:{FFFFFF} O %s[%d] começou a aquecer matou ~r~10 ~w~ '-'",Name,killerid);
  4295. SendBoxMessage(str);
  4296. GameTextForAll(str,3000,6);
  4297. GivePlayerMoney(killerid,3000);
  4298. SetPlayerScore(killerid,GetPlayerScore(killerid)+3);
  4299. SendClientMessage(killerid,VERDE,"[INFO] Você ganhou R$ 3000 e +3 scores por ja ter matado 10 !");
  4300. }
  4301. else if(KillStreak[killerid] == 20)
  4302. {
  4303. new str[256],Name[MAX_PLAYER_NAME];
  4304. GetPlayerName(killerid,Name,sizeof(Name));
  4305. format(str,sizeof(str),"{35CA69}Tom:{FFFFFF} O %s[%d] matou ~r~20 ~w~ ta aprendendo :)",Name,killerid);
  4306. SendBoxMessage(str);
  4307. GivePlayerMoney(killerid,5000);
  4308. SetPlayerScore(killerid,GetPlayerScore(killerid)+5);
  4309. SendClientMessage(killerid,VERDE,"[INFO] Você ganhou R$ 5000 e +5 scores por ja ter matado 20 !");
  4310. }
  4311. else if(KillStreak[killerid] == 30)
  4312. {
  4313. new str[256],Name[MAX_PLAYER_NAME];
  4314. GetPlayerName(killerid,Name,sizeof(Name));
  4315. format(str,sizeof(str),"{35CA69}Tom:{FFFFFF} %s[%d] ja matou ~r~30 ~w~ to ficando com medo dele D:",Name,killerid);
  4316. SendBoxMessage(str);
  4317. GivePlayerMoney(killerid,7000);
  4318. SetPlayerScore(killerid,GetPlayerScore(killerid)+7);
  4319. SendClientMessage(killerid,VERDE,"[INFO] Você ganhou R$ 7000 e +7 scores por ja ter matado 30 !");
  4320. }
  4321. else if(KillStreak[killerid] == 50)
  4322. {
  4323. new str[256],Name[MAX_PLAYER_NAME];
  4324. GetPlayerName(killerid,Name,sizeof(Name));
  4325. format(str,sizeof(str),"{35CA69}Tom:{FFFFFF} Gente o %s[%d] ja matou ~r~50 ~w~ ta fazendo chacina",Name,killerid);
  4326. SendBoxMessage(str);
  4327. GivePlayerMoney(killerid,10000);
  4328. SetPlayerScore(killerid,GetPlayerScore(killerid)+10);
  4329. SendClientMessage(killerid,VERDE,"[INFO] Você ganhou R$ 10000 e +10 scores por ja ter matado 50 !");
  4330. }
  4331. else if(KillStreak[killerid] == 70)
  4332. {
  4333. new str[256],Name[MAX_PLAYER_NAME];
  4334. GetPlayerName(killerid,Name,sizeof(Name));
  4335. format(str,sizeof(str),"{35CA69}Tom:{FFFFFF} O %s[%d] matou ~r~70 ~w~ Aprendeu comigo '-'",Name,killerid);
  4336. SendBoxMessage(str);
  4337. GivePlayerMoney(killerid,10000);
  4338. SetPlayerScore(killerid,GetPlayerScore(killerid)+10);
  4339. SendClientMessage(killerid,VERDE,"[INFO] Você ganhou R$ 10000 e +10 scores por ja ter matado 70 !");
  4340. }
  4341. else if(KillStreak[killerid] == 100)
  4342. {
  4343. new str[256],Name[MAX_PLAYER_NAME];
  4344. GetPlayerName(killerid,Name,sizeof(Name));
  4345. format(str,sizeof(str),"{35CA69}Tom:{FFFFFF} %s[%d] matou ~r~100 ~w~ Salve se quem puder!! :O ",Name,killerid);
  4346. SendBoxMessage(str);
  4347. GivePlayerMoney(killerid,10000);
  4348. SetPlayerScore(killerid,GetPlayerScore(killerid)+10);
  4349. SendClientMessage(killerid,VERDE,"[INFO] Você ganhou R$ 10000 e +10 scores por ja ter matado 70 !");
  4350. }
  4351. if(IsPlayerInDuel[playerid] == 1&&IsPlayerInDuel[killerid] == 1)
  4352. {
  4353. GameTextForPlayer(playerid,"~r~Derrotado",3000,6);
  4354. GameTextForPlayer(killerid,"~g~Vencedor",3000,6);
  4355. SpawnPlayer(killerid);
  4356. GivePlayerMoney(killerid,5000);
  4357. IsPlayerInDuel[killerid] = 0;
  4358. IsPlayerInDuel[playerid] = 0;
  4359. ExistDuel = 0;
  4360. new str[256],Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME];
  4361. GetPlayerName(playerid,Name,sizeof(Name));
  4362. GetPlayerName(killerid,Name2,sizeof(Name2));
  4363. format(str,sizeof(str),"%s[%d] ganhou o duelo contra %s[%d]",Name2,killerid,Name,playerid);
  4364. SendClientMessageToAll(LARANJA,str);
  4365. }
  4366. VShop[playerid] = 0;
  4367. return 1;
  4368. }
  4369.  
  4370.  
  4371. public OnVehicleSpawn(vehicleid)
  4372. {
  4373. return 1;
  4374. }
  4375.  
  4376. public OnVehicleDeath(vehicleid, killerid)
  4377. {
  4378. return 1;
  4379. }
  4380.  
  4381. public OnPlayerText(playerid, text[])
  4382. {
  4383. if(Muted[playerid] == 1)
  4384. {
  4385. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode falar se estiver calado !");
  4386. return 0;
  4387. }
  4388. if(Logged[playerid] == 0)
  4389. {
  4390. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode falar enquanto ainda não estiver registrado!");
  4391. return 0;
  4392. }
  4393.  
  4394. new str[256],Name[MAX_PLAYER_NAME];
  4395. GetPlayerName(playerid,Name,sizeof(Name));
  4396. format(str,sizeof(str),"%s[%d]: {FFFFFF}%s",Name,playerid,text[0]);
  4397. SendClientMessageToAll(GetPlayerColor(playerid),str);
  4398. return 0;
  4399. }
  4400.  
  4401.  
  4402. public OnPlayerCommandPerformed(playerid, cmdtext[], success)
  4403. {
  4404. if(!success)
  4405. return SendClientMessage(playerid, CINZA, "[ERRO] Comando Invalido");
  4406. return 1;
  4407. }
  4408.  
  4409. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  4410. {
  4411. /*new Float:p[3],model = GetVehicleModel(vehicleid);
  4412. if(model == 432&&PlayerInfo[playerid][pVip]>0)
  4413. {
  4414. GetPlayerPos(playerid,p[0],p[1],p[2]);
  4415. SetPlayerPos(playerid,p[0],p[1],p[2]);
  4416. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você precisa ser VIP ou Mecanico Tanker para ultilizar este veículo!");
  4417. }
  4418. if(model == 425 && gClasse[playerid] == PILOTO && gClasse[playerid] == CAPITAO && gClasse[playerid] == GENERAL && PlayerInfo[playerid][pVip]>0)
  4419. {
  4420. GetPlayerPos(playerid,p[0],p[1],p[2]);
  4421. SetPlayerPos(playerid,p[0],p[1],p[2]);
  4422. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você precisa ser VIP ou Piloto para ultilizar este veículo!");
  4423. }
  4424. if(model == 520 && gClasse[playerid] == PILOTO && gClasse[playerid] == CAPITAO && gClasse[playerid] == GENERAL && PlayerInfo[playerid][pVip]>0)
  4425. {
  4426. GetPlayerPos(playerid,p[0],p[1],p[2]);
  4427. SetPlayerPos(playerid,p[0],p[1],p[2]);
  4428. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você precisa ser VIP ou Piloto para ultilizar este veículo!");
  4429. }
  4430. if(model == 447 && gClasse[playerid] == PILOTO && gClasse[playerid] == CAPITAO && gClasse[playerid] == GENERAL && PlayerInfo[playerid][pVip]>0)
  4431. {
  4432. GetPlayerPos(playerid,p[0],p[1],p[2]);
  4433. SetPlayerPos(playerid,p[0],p[1],p[2]);
  4434. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você precisa ser VIP ou Piloto para ultilizar este veículo!");
  4435. }*/
  4436. return 1;
  4437. }
  4438.  
  4439. public OnPlayerExitVehicle(playerid, vehicleid)
  4440. {
  4441. return 1;
  4442. }
  4443.  
  4444. public OnPlayerStateChange(playerid, newstate, oldstate)
  4445. {
  4446. new aname[MAX_PLAYER_NAME];
  4447. new file[50];
  4448. GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
  4449. format(file, sizeof(file), CONTAS, aname);
  4450. new modelo = GetVehicleModel(GetPlayerVehicleID(playerid));
  4451. if(newstate == PLAYER_STATE_DRIVER)
  4452. {
  4453. if(modelo == 432)
  4454. {
  4455. if(gClasse[playerid] == MECANICO || gClasse[playerid] == CAPITAO || gClasse[playerid] == GENERAL || PlayerInfo[playerid][pVip]>0)
  4456. {
  4457. } else {
  4458. SendClientMessage(playerid, LARANJA,"*[ERRO] Você precisa ser VIP ou Mecanico Tanker para ultilizar este veículo!");
  4459. RemovePlayerFromVehicle(playerid);
  4460. TogglePlayerControllable(playerid, 1);
  4461. }
  4462. }
  4463.  
  4464. if(modelo == 425)
  4465. {
  4466. if(gClasse[playerid] == PILOTO || gClasse[playerid] == CAPITAO || gClasse[playerid] == GENERAL || PlayerInfo[playerid][pVip]>0)
  4467. {
  4468. } else {
  4469. SendClientMessage(playerid, LARANJA,"*[ERRO] Você precisa ser VIP ou Piloto para ultilizar este veículo!");
  4470. RemovePlayerFromVehicle(playerid);
  4471. TogglePlayerControllable(playerid, 1);
  4472. }
  4473. }
  4474.  
  4475. if(modelo == 520)
  4476. {
  4477. if(gClasse[playerid] == PILOTO || gClasse[playerid] == CAPITAO || gClasse[playerid] == GENERAL || PlayerInfo[playerid][pVip]>0)
  4478. {
  4479. } else {
  4480. SendClientMessage(playerid, LARANJA,"*[ERRO] Você precisa ser VIP ou Piloto para ultilizar este veículo!");
  4481. RemovePlayerFromVehicle(playerid);
  4482. TogglePlayerControllable(playerid, 1);
  4483. }
  4484. }
  4485.  
  4486. if(modelo == 447)
  4487. {
  4488. if(gClasse[playerid] == PILOTO || gClasse[playerid] == CAPITAO || gClasse[playerid] == GENERAL || PlayerInfo[playerid][pVip]>0)
  4489. {
  4490. } else {
  4491. SendClientMessage(playerid, LARANJA,"*[ERRO] Você precisa ser VIP ou Piloto para ultilizar este veículo!");
  4492. RemovePlayerFromVehicle(playerid);
  4493. TogglePlayerControllable(playerid, 1);
  4494. }
  4495. }
  4496. }
  4497. return 1;
  4498. }
  4499.  
  4500. public OnPlayerEnterCheckpoint(playerid)
  4501. {
  4502. return 1;
  4503. }
  4504.  
  4505. public OnPlayerLeaveCheckpoint(playerid)
  4506. {
  4507. return 1;
  4508. }
  4509.  
  4510. public OnPlayerEnterRaceCheckpoint(playerid)
  4511. {
  4512. return 1;
  4513. }
  4514.  
  4515. public OnPlayerLeaveRaceCheckpoint(playerid)
  4516. {
  4517. return 1;
  4518. }
  4519.  
  4520. public OnRconCommand(cmd[])
  4521. {
  4522. return 1;
  4523. }
  4524.  
  4525. public OnPlayerRequestSpawn(playerid)
  4526. {
  4527. if(Logged[playerid] == 0)
  4528. {
  4529. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você ainda não está logado!");
  4530. return 0;
  4531. }
  4532. if(gPais[playerid] == BRASIL)TextDrawShowForPlayer(playerid,Brasiltext);
  4533. if(gPais[playerid] == RUSSIA)TextDrawShowForPlayer(playerid,Russiatext);
  4534. if(gPais[playerid] == USA)TextDrawShowForPlayer(playerid,USAtext);
  4535. if(gPais[playerid] == ARAB)TextDrawShowForPlayer(playerid,Arabtext);
  4536. if(gPais[playerid] == FRANCE)TextDrawShowForPlayer(playerid,Francetext);
  4537. if(gPais[playerid] == ENGLAND)TextDrawShowForPlayer(playerid,Englandtext);
  4538. new str[256],Name[MAX_PLAYER_NAME];
  4539. GetPlayerName(playerid,Name,sizeof(Name));
  4540. format(str,sizeof(str),"~g~%s[%d] Se Juntou a ~r~%s",Name,playerid,GetTeamName(playerid));
  4541. SendBoxMessage(str);
  4542. 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","");
  4543. TextDrawHideForPlayer(playerid,USAteam);
  4544. TextDrawHideForPlayer(playerid,Russiateam);
  4545. TextDrawHideForPlayer(playerid,Franceteam);
  4546. TextDrawHideForPlayer(playerid,Englandteam);
  4547. TextDrawHideForPlayer(playerid,Arabteam);
  4548. TextDrawHideForPlayer(playerid,Brasilteam);
  4549. return 1;
  4550. }
  4551.  
  4552.  
  4553. public OnObjectMoved(objectid)
  4554. {
  4555. return 1;
  4556. }
  4557.  
  4558. public OnPlayerObjectMoved(playerid, objectid)
  4559. {
  4560. return 1;
  4561. }
  4562.  
  4563. public OnPlayerPickUpPickup(playerid, pickupid)
  4564. {
  4565. if(pickupid == BrasilBriefcase)
  4566. {
  4567. if(gPais[playerid]!=BRASIL)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar Kits de outro País!");
  4568. ShowPlayerDialog(playerid,BRIEFCASE,DIALOG_STYLE_LIST,"Kits","Vida - $5000\nColete - $5500\nMount Chiliad DM\nExtremo Deseart DM","Selecionar","Cancelar");
  4569. }
  4570. if(pickupid == RussianBriefcase)
  4571. {
  4572. if(gPais[playerid]!=RUSSIA)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar Kits de outro País!");
  4573. ShowPlayerDialog(playerid,BRIEFCASE,DIALOG_STYLE_LIST,"Kits","Vida - $5000\nColete - $5500\nMount Chiliad DM\nExtreme Deseart DM","Selecionar","Cancelar");
  4574. }
  4575. if(pickupid == FranceBriefcase)
  4576. {
  4577. if(gPais[playerid]!=FRANCE)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar Kits de outro País!");
  4578. ShowPlayerDialog(playerid,BRIEFCASE,DIALOG_STYLE_LIST,"Kits","Vida - $5000\nColete - $5500\nMount Chiliad DM\nExtreme Deseart DM","Selecionar","Cancelar");
  4579. }
  4580. if(pickupid == ArabBriefcase)
  4581. {
  4582. if(gPais[playerid]!=ARAB)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar Kits de outro País!");
  4583. ShowPlayerDialog(playerid,BRIEFCASE,DIALOG_STYLE_LIST,"Kits","Vida - $5000\nColete - $5500\nMount Chiliad DM\nExtreme Deseart DM","Selecionar","Cancelar");
  4584. }
  4585. if(pickupid == EnglandBriefcase)
  4586. {
  4587. if(gPais[playerid]!=ENGLAND)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar Kits de outro País!");
  4588. ShowPlayerDialog(playerid,BRIEFCASE,DIALOG_STYLE_LIST,"Kits","Vida - $5000\nColete - $5500\nMount Chiliad DM\nExtreme Deseart DM","Selecionar","Cancelar");
  4589. }
  4590. if(pickupid == USABriefcase)
  4591. {
  4592. if(gPais[playerid]!=USA)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar Kits de outro País!");
  4593. ShowPlayerDialog(playerid,BRIEFCASE,DIALOG_STYLE_LIST,"Kits","Vida - $5000\nColete - $5500\nMount Chiliad DM\nExtreme Deseart DM","Selecionar","Cancelar");
  4594. }
  4595. return 1;
  4596. }
  4597.  
  4598. public OnVehicleMod(playerid, vehicleid, componentid)
  4599. {
  4600. return 1;
  4601. }
  4602.  
  4603. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  4604. {
  4605. return 1;
  4606. }
  4607.  
  4608. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  4609. {
  4610. return 1;
  4611. }
  4612.  
  4613. public OnPlayerSelectedMenuRow(playerid, row)
  4614. {
  4615. return 1;
  4616. }
  4617.  
  4618. public OnPlayerExitedMenu(playerid)
  4619. {
  4620. return 1;
  4621. }
  4622.  
  4623. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  4624. {
  4625. return 1;
  4626. }
  4627.  
  4628. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  4629. {
  4630. return 1;
  4631. }
  4632.  
  4633. public OnRconLoginAttempt(ip[], password[], success)
  4634. {
  4635. return 1;
  4636. }
  4637.  
  4638. public OnPlayerUpdate(playerid)
  4639. {
  4640. return 1;
  4641. }
  4642.  
  4643. public OnPlayerStreamIn(playerid, forplayerid)
  4644. {
  4645. return 1;
  4646. }
  4647.  
  4648. public OnPlayerStreamOut(playerid, forplayerid)
  4649. {
  4650. return 1;
  4651. }
  4652.  
  4653. public OnVehicleStreamIn(vehicleid, forplayerid)
  4654. {
  4655. return 1;
  4656. }
  4657.  
  4658. public OnVehicleStreamOut(vehicleid, forplayerid)
  4659. {
  4660. return 1;
  4661. }
  4662.  
  4663. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  4664. {
  4665. if(dialogid == LOGIN)
  4666. {
  4667. if(response)
  4668. {
  4669. if(udb_hash(inputtext)==PlayerInfo[playerid][pPass])
  4670. {
  4671. INI_ParseFile(UserPath(playerid),"LoadUser_Data", .bExtra = true, .extra = playerid);
  4672. GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
  4673. SetPlayerScore(playerid,PlayerInfo[playerid][pScores]);
  4674. Logged[playerid] = 1;
  4675. SendClientMessage(playerid,ROSA,"[INFO] Logado com Sucesso!");
  4676. foreach(new i:Player)
  4677. {
  4678. if(IsPlayerAdmin(i)&&PlayerInfo[i][pAdmin]>0)
  4679. {
  4680. new str[256],Name[MAX_PLAYER_NAME];
  4681. GetPlayerName(playerid,Name,sizeof(Name));
  4682. format(str,sizeof(str),"%s[%d] Esta logado",Name,playerid);
  4683. SendClientMessage(i,AZUL,str);
  4684. }
  4685. }
  4686. }
  4687. else
  4688. {
  4689. ShowPlayerDialog(playerid,LOGIN,DIALOG_STYLE_INPUT,"Login","Coloque sua senha abaixo para logar","Login","Sair");
  4690. Logged[playerid] = 0;
  4691. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Senha Incorreta!");
  4692. }
  4693. }
  4694. if(!response)return Kick(playerid);
  4695. }
  4696. if(dialogid == RESGISTRO)
  4697. {
  4698. if(response)
  4699. {
  4700. if(!strlen(inputtext))return ShowPlayerDialog(playerid,RESGISTRO,DIALOG_STYLE_INPUT,"Registro","Coloque sua senha abaixo para se registrar!","Registrar","Sair");
  4701. new INI:File = INI_Open(UserPath(playerid));
  4702. INI_SetTag(File,"Data");
  4703. INI_WriteInt(File,"Cash",0);
  4704. INI_WriteInt(File,"Password",udb_hash(inputtext));
  4705. INI_WriteInt(File,"Kill",0);
  4706. INI_WriteInt(File,"Death",0);
  4707. Logged[playerid] = 1;
  4708. INI_WriteInt(File,"Scores",0);
  4709. INI_WriteInt(File,"Level",0);
  4710. INI_WriteInt(File,"VIP",0);
  4711. SavePlayerAdmin(playerid);
  4712. SavePlayerVip(playerid);
  4713. PlayerInfo[playerid][pAdmin] = 0;
  4714. PlayerInfo[playerid][pVip] = 0;
  4715. INI_Close(File);
  4716. }
  4717. }
  4718. if(dialogid == DCLASS)
  4719. {
  4720. if(response)
  4721. {
  4722.  
  4723. if(listitem == 0)
  4724. {
  4725. ResetPlayerWeapons(playerid);
  4726. gClasse[playerid] = SOLDADOASSAULT;
  4727. GivePlayerWeapon(playerid,29,9999);
  4728. GivePlayerWeapon(playerid,31,9999);
  4729. GivePlayerWeapon(playerid,24,9999);
  4730. GivePlayerWeapon(playerid,33,9999);
  4731. GivePlayerWeapon(playerid,17,5);
  4732. SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe - Soldado Assault -");
  4733. }
  4734.  
  4735.  
  4736. if(listitem == 1)
  4737. {
  4738. ResetPlayerWeapons(playerid);
  4739. gClasse[playerid] = SOLDADOSNIPER;
  4740. GivePlayerWeapon(playerid,24,9999);
  4741. GivePlayerWeapon(playerid,25,9999);
  4742. GivePlayerWeapon(playerid,34,9999);
  4743. GivePlayerWeapon(playerid,29,9999);
  4744. GivePlayerWeapon(playerid,17,5);
  4745. SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe - Soldado Sniper -");
  4746. }
  4747.  
  4748.  
  4749. if(listitem == 2)
  4750. {
  4751. if(GetPlayerScore(playerid)>=800)
  4752. {
  4753. ResetPlayerWeapons(playerid);
  4754. SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe - Soldado Médico -");
  4755. GivePlayerWeapon(playerid,26,9999);
  4756. GivePlayerWeapon(playerid,17,5);
  4757. GivePlayerWeapon(playerid,24,9999);
  4758. GivePlayerWeapon(playerid,29,9999);
  4759. GivePlayerWeapon(playerid,25,9999);
  4760. gClasse[playerid] = MEDICO;
  4761. }
  4762. else
  4763. {
  4764. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Essa classe requer 800 de scores!");
  4765. 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","");
  4766. return 0;
  4767. }
  4768. }
  4769.  
  4770.  
  4771. if(listitem == 3)
  4772. {
  4773. if(GetPlayerScore(playerid)>1200)
  4774. {
  4775. ResetPlayerWeapons(playerid);
  4776. SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe - Soldado Mecanico -");
  4777. GivePlayerWeapon(playerid,26,9999);
  4778. GivePlayerWeapon(playerid,24,9999);
  4779. GivePlayerWeapon(playerid,28,9999);
  4780. GivePlayerWeapon(playerid,30,9999);
  4781. GivePlayerWeapon(playerid,18,5);
  4782. gClasse[playerid] = MECANICO;
  4783. }
  4784. else
  4785. {
  4786. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] São necessários 1200 de Scores para esta classe!");
  4787. 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","");
  4788. }
  4789. }
  4790.  
  4791.  
  4792. if(listitem == 4)
  4793. {
  4794. if(GetPlayerScore(playerid)>1500)
  4795. {
  4796. ResetPlayerWeapons(playerid);
  4797. SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe - Piloto de Aviões -");
  4798. GivePlayerWeapon(playerid,16,5);
  4799. GivePlayerWeapon(playerid,27,9999);
  4800. GivePlayerWeapon(playerid,24,9999);
  4801. GivePlayerWeapon(playerid,30,9999);
  4802. GivePlayerWeapon(playerid,32,9999);
  4803. gClasse[playerid] = PILOTO;
  4804. }
  4805. else
  4806. {
  4807. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR] 1500 Scores necessários para esta classe!");
  4808. 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","");
  4809. }
  4810. }
  4811.  
  4812.  
  4813. if(listitem == 5)
  4814. {
  4815. if(GetPlayerScore(playerid)>=1800)
  4816. {
  4817. ResetPlayerWeapons(playerid);
  4818. SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe - Soldado Bombardeiro -");
  4819. GivePlayerWeapon(playerid,24,9999);
  4820. GivePlayerWeapon(playerid,32,9999);
  4821. GivePlayerWeapon(playerid,33,9999);
  4822. GivePlayerWeapon(playerid,39,10);
  4823. GivePlayerWeapon(playerid,40,10);
  4824. GivePlayerWeapon(playerid,16,10);
  4825. 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");
  4826. gClasse[playerid] = BOMBARDEIRO;
  4827. }
  4828. else
  4829. {
  4830. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Essa classe requer 1800 de scores!");
  4831. 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","");
  4832. return 0;
  4833. }
  4834. }
  4835.  
  4836.  
  4837. if(listitem == 6)
  4838. {
  4839. if(GetPlayerScore(playerid)>2000)
  4840. {
  4841. ResetPlayerWeapons(playerid);
  4842. SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe - Capitao -");
  4843. GivePlayerWeapon(playerid,26,99999);
  4844. GivePlayerWeapon(playerid,24,99999);
  4845. GivePlayerWeapon(playerid,31,99999);
  4846. GivePlayerWeapon(playerid,33,99999);
  4847. GivePlayerWeapon(playerid,35,2);
  4848. GivePlayerWeapon(playerid,16,10);
  4849. GivePlayerWeapon(playerid,17,10);
  4850. GivePlayerWeapon(playerid,18,10);
  4851. gClasse[playerid] = CAPITAO;
  4852. }
  4853. else
  4854. {
  4855. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] 2000 Scores necessários para esta classe!");
  4856. 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","");
  4857. }
  4858. }
  4859.  
  4860.  
  4861. if(listitem == 7)
  4862. {
  4863. if(GetPlayerScore(playerid)>2500)
  4864. {
  4865. ResetPlayerWeapons(playerid);
  4866. SendClientMessage(playerid,ROSA,"[INFO] Você selecionou classe - General -");
  4867. GivePlayerWeapon(playerid,26,99999);
  4868. GivePlayerWeapon(playerid,24,99999);
  4869. GivePlayerWeapon(playerid,30,99999);
  4870. GivePlayerWeapon(playerid,33,99999);
  4871. GivePlayerWeapon(playerid,35,5);
  4872. GivePlayerWeapon(playerid,32,99999);
  4873. GivePlayerWeapon(playerid,16,10);
  4874. GivePlayerWeapon(playerid,17,10);
  4875. GivePlayerWeapon(playerid,18,10);
  4876. gClasse[playerid] = GENERAL;
  4877. }
  4878. else
  4879. {
  4880. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] 2500 Scores necessários para esta classe!");
  4881. 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","");
  4882. return 0;
  4883. }
  4884. }
  4885.  
  4886. }
  4887. if(!response)
  4888. {
  4889. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você deve escolher sua classe!");
  4890. 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","");
  4891. return 0;
  4892. }
  4893. }
  4894. if(dialogid == VDIALOG)
  4895. {
  4896. if(response)
  4897. {
  4898. if(listitem == 0)
  4899. {
  4900. new Float:p[4];
  4901. GetPlayerPos(playerid,p[0],p[1],p[2]);
  4902. GetPlayerFacingAngle(playerid,p[3]);
  4903. CreateVehicle(520,p[0],p[1],p[2],p[3]+90,-1,-1,9998989899);
  4904. SendClientMessage(playerid,ROSA,"[INFO] Hydra Spawned");
  4905. }
  4906. if(listitem == 1)
  4907. {
  4908. new Float:p[4];
  4909. GetPlayerPos(playerid,p[0],p[1],p[2]);
  4910. GetPlayerFacingAngle(playerid,p[3]);
  4911. CreateVehicle(425,p[0],p[1],p[2],p[3]+90,-1,-1,988888998);
  4912. SendClientMessage(playerid,ROSA,"[INFO] Hunter spawned");
  4913. }
  4914. if(listitem == 2)
  4915. {
  4916. new Float:p[4];
  4917. GetPlayerPos(playerid,p[0],p[1],p[2]);
  4918. GetPlayerFacingAngle(playerid,p[3]);
  4919. CreateVehicle(432,p[0],p[1],p[2],p[3]+90,-1,-1,99999898);
  4920. SendClientMessage(playerid,ROSA,"[INFO] Rhino spawned");
  4921. }
  4922. }
  4923. }
  4924. if(dialogid == DIALOGDUEL)
  4925. {
  4926. if(response == 1)
  4927. {
  4928. if(listitem == 0)
  4929. {
  4930. foreach(new i:Player)
  4931. {
  4932. UsedWeaps[i] = COMBAT;
  4933. SendClientMessage(playerid,LARANJA,"[INFO] Combate Shotgun selecionada como arma do duelo!");
  4934. Configured[i] = 1;
  4935. GivePlayerWeapon(playerid,27,9989);
  4936. DuelMaker[playerid] = playerid;
  4937. }
  4938. }
  4939. if(listitem == 1)
  4940. {
  4941. foreach(new i:Player)
  4942. {
  4943. DuelMaker[playerid] = playerid;
  4944. UsedWeaps[i] = DEAGLE;
  4945. SendClientMessage(playerid,LARANJA,"[INFO] Deseart eagle selecionada como arma do duelo!");
  4946. Configured[i] = 1;
  4947. GivePlayerWeapon(playerid,24,9989);
  4948. }
  4949. }
  4950. if(listitem == 2)
  4951. {
  4952. foreach(new i:Player)
  4953. {
  4954. DuelMaker[playerid] = playerid;
  4955. UsedWeaps[i] = SHOTGUN;
  4956. SendClientMessage(playerid,LARANJA,"[INFO] Shotgun selecionada como arma do duelo!");
  4957. Configured[i] = 1;
  4958. GivePlayerWeapon(playerid,25,9989);
  4959. }
  4960. }
  4961. if(listitem == 3)
  4962. {
  4963. foreach(new i:Player)
  4964. {
  4965. DuelMaker[playerid] = playerid;
  4966. UsedWeaps[i] = M4;
  4967. SendClientMessage(playerid,LARANJA,"[INFO] M4 selecionada como arma do duelo!");
  4968. Configured[i] = 1;
  4969. GivePlayerWeapon(playerid,31,9989);
  4970. }
  4971. }
  4972. }
  4973. if(!response)
  4974. {
  4975. ShowPlayerDialog(playerid,DIALOGDUEL,DIALOG_STYLE_LIST,"Escolha a sua Arma","Combat Shotgun\nDeagle\nShotgun\nM4","Choose","");
  4976. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Por Favor Escolha a sua Arma!");
  4977. return 0;
  4978. }
  4979. }
  4980. if(dialogid == BRIEFCASE)
  4981. {
  4982. if(response)
  4983. {
  4984. if(listitem == 0)
  4985. {
  4986. SetPlayerHealth(playerid,100);
  4987. GivePlayerMoney(playerid,-5000);
  4988. }
  4989. if(listitem == 1)
  4990. {
  4991. SetPlayerArmour(playerid,100);
  4992. GivePlayerMoney(playerid,-5000);
  4993. }
  4994. if(listitem == 2)
  4995. {
  4996. InDM[playerid] = 1;
  4997. ResetPlayerWeapons(playerid);
  4998. GivePlayerWeapon(playerid,34,300);
  4999. GivePlayerWeapon(playerid,24,300);
  5000. SendClientMessage(playerid,VERDE,"[SERVER] Bem vindo ao Mount Chiliad DM");
  5001. SendClientMessage(playerid,VERDE,"[INFO] Use /kill para sair da DM Arena!");
  5002. new str[256],Name[MAX_PLAYER_NAME];
  5003. GetPlayerName(playerid,Name,sizeof(Name));
  5004. format(str,sizeof(str),"~g~%s[%d] ~r~Foi para Mount Chilliad DM!",Name,playerid);
  5005. SendBoxMessage(str);
  5006. SetPlayerPos(playerid,-2404.4795,-1623.3090,518.2908);
  5007. }
  5008. if(listitem == 3)
  5009. {
  5010. InHIC[playerid] = 1;
  5011. ResetPlayerWeapons(playerid);
  5012. GivePlayerWeapon(playerid,27,300);
  5013. GivePlayerWeapon(playerid,24,300);
  5014. SendClientMessage(playerid,VERDE,"[SERVER] Bem-vindo ao inferno em uma célula!");
  5015. SendClientMessage(playerid,VERDE,"[INFO] Use /kill para sair da DM Arena!");
  5016. new str[256],Name[MAX_PLAYER_NAME];
  5017. GetPlayerName(playerid,Name,sizeof(Name));
  5018. format(str,sizeof(str),"~g~%s[%d] ~r~foi para Inferno DM!",Name,playerid);
  5019. SendBoxMessage(str);
  5020. new Random = random(sizeof(HICSpawn));
  5021. SetPlayerPos(playerid,HICSpawn[Random][0],HICSpawn[Random][1],HICSpawn[Random][2]);
  5022. }
  5023. }
  5024. }
  5025. if(dialogid == VSHOP)
  5026. {
  5027. if(response)
  5028. {
  5029. if(listitem == 0)
  5030. {
  5031. if(GetPlayerMoney(playerid)<5000)
  5032. {
  5033. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não tem dinheiro suficiente!");
  5034. VShop[playerid] = 0;
  5035. }
  5036. else
  5037. {
  5038. SetPlayerHealth(playerid,100);
  5039. GivePlayerMoney(playerid,-5000);
  5040. SendClientMessage(playerid,COLOR_NONE_CAPTURE,"[INFO] Vida adquirida com sucesso!");
  5041. VShop[playerid] = 1;
  5042. }
  5043. }
  5044. }
  5045. if(listitem == 1)
  5046. {
  5047. if(GetPlayerMoney(playerid)<5500)
  5048. {
  5049. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não tem dinheiro suficiente!");
  5050. VShop[playerid] = 0;
  5051. }
  5052. else
  5053. {
  5054. SetPlayerArmour(playerid,100);
  5055. GivePlayerMoney(playerid,-5500);
  5056. SendClientMessage(playerid,COLOR_NONE_CAPTURE,"[INFO] Colete adquirido com sucesso!");
  5057. VShop[playerid] = 1;
  5058. }
  5059. }
  5060. if(listitem == 2)
  5061. {
  5062. if(GetPlayerMoney(playerid)<7000)
  5063. {
  5064. SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não tem dinheiro suficiente!");
  5065. VShop[playerid] = 0;
  5066. }
  5067. else
  5068. {
  5069. GivePlayerMoney(playerid,-7000);
  5070. SendClientMessage(playerid,COLOR_NONE_CAPTURE,"[INFO] RPG adquirido com sucesso!");
  5071. VShop[playerid] = 1;
  5072. GivePlayerWeapon(playerid,35,10);
  5073. }
  5074. }
  5075. if(!response)return 1;
  5076. }
  5077. return 1;
  5078. }
  5079.  
  5080.  
  5081.  
  5082. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  5083. {
  5084. return 1;
  5085. }
  5086.  
  5087. stock GetLevelName(playerid)
  5088. {
  5089. new str[64];
  5090. if(PlayerInfo[playerid][pAdmin] == 1)
  5091. {
  5092. str = ("Moderador");
  5093. }
  5094. if(PlayerInfo[playerid][pAdmin] == 2)
  5095. {
  5096. str = ("Admin");
  5097. }
  5098. if(PlayerInfo[playerid][pAdmin] == 3)
  5099. {
  5100. str = ("Admin");
  5101. }
  5102. if(PlayerInfo[playerid][pAdmin] == 4)
  5103. {
  5104. str = ("Admin");
  5105. }
  5106. if(PlayerInfo[playerid][pAdmin] == 5)
  5107. {
  5108. str = ("Admin");
  5109. }
  5110. if(PlayerInfo[playerid][pAdmin] >= 6)
  5111. {
  5112. str = ("Admin");
  5113. }
  5114. if(IsPlayerAdmin(playerid))
  5115. {
  5116. str = ("Admin");
  5117. }
  5118. return str;
  5119. }
  5120.  
  5121. stock SavePlayerAdmin(playerid)
  5122. {
  5123. new INI:File = INI_Open(UserPath(playerid));
  5124. INI_SetTag(File,"Data");
  5125. INI_WriteInt(File,"Level",PlayerInfo[playerid][pAdmin]);
  5126. INI_Close(File);
  5127. return 1;
  5128. }
  5129.  
  5130. stock SavePlayerVip(playerid)
  5131. {
  5132. new INI:File = INI_Open(UserPath(playerid));
  5133. INI_SetTag(File,"Data");
  5134. INI_WriteInt(File,"VIP",PlayerInfo[playerid][pVip]);
  5135. INI_Close(File);
  5136. return 1;
  5137. }
  5138.  
  5139. stock GetTeamName(playerid)
  5140. {
  5141. new str[256];
  5142. if(gPais[playerid] == BRASIL)
  5143. {
  5144. str = ("Brasil");
  5145. }
  5146. if(gPais[playerid] == USA)
  5147. {
  5148. str = ("EUA");
  5149. }
  5150. if(gPais[playerid] == ENGLAND)
  5151. {
  5152. str = ("Inglaterra");
  5153. }
  5154. if(gPais[playerid] == RUSSIA)
  5155. {
  5156. str = ("Russia");
  5157. }
  5158. if(gPais[playerid] == FRANCE)
  5159. {
  5160. str = ("Franca");
  5161. }
  5162. if(gPais[playerid] == ARAB)
  5163. {
  5164. str = ("Arabia");
  5165. }
  5166. return str;
  5167. }
  5168.  
  5169. stock GetRankName(playerid)
  5170. {
  5171. new str[64];
  5172. if(GetPlayerScore(playerid)>=6000)
  5173. {
  5174. str = ("Rei dos Reis");
  5175. }
  5176. if(GetPlayerScore(playerid)>=0&&GetPlayerScore(playerid)<100)str = ("Nivel Aprendiz");
  5177. if(GetPlayerScore(playerid)>=500&&GetPlayerScore(playerid)<800)str = ("Nivel Medio");
  5178. if(GetPlayerScore(playerid)>=1000&&GetPlayerScore(playerid)<1500)str = ("Nivel Intermediario");
  5179. if(GetPlayerScore(playerid)>=2000&&GetPlayerScore(playerid)<3000)str = ("Nivel Master");
  5180. if(GetPlayerScore(playerid)>=5000&&GetPlayerScore(playerid)<4500)str = ("Special force Medio");
  5181. if(GetPlayerScore(playerid)>=7500&&GetPlayerScore(playerid)<6000)str = ("Special Force Mestre");
  5182. return str;
  5183. }
  5184.  
  5185. stock ResetStats(playerid)
  5186. {
  5187. new INI:File = INI_Open(UserPath(playerid));
  5188. INI_SetTag(File,"Data");
  5189. INI_WriteInt(File,"Kill",PlayerInfo[playerid][pKill]);
  5190. INI_WriteInt(File,"Death",PlayerInfo[playerid][pDeath]);
  5191. INI_WriteInt(File,"Scores",PlayerInfo[playerid][pScores]);
  5192. INI_Close(File);
  5193. return 1;
  5194. }
  5195.  
  5196.  
  5197. // ------------------------------------
  5198. // Player Commands
  5199. // ------------------------------------
  5200.  
  5201. CMD:ajudax1(playerid,params[])
  5202. {
  5203.  
  5204. SendClientMessage(playerid,LARANJA,"---------------------------------------------------");
  5205. SendClientMessage(playerid,BRANCO," /Duelar [ID DO PLAYER]");
  5206. SendClientMessage(playerid,BRANCO," /x1 [ID DO PLAYER] ");
  5207. SendClientMessage(playerid,BRANCO," O ganhador recebera 12k de grana e +10 de scores");
  5208. SendClientMessage(playerid,LARANJA,"---------------------------------------------------");
  5209. return 1;
  5210. }
  5211.  
  5212. CMD:mudarpais(playerid,params[])
  5213. {
  5214. SetPlayerHealth(playerid,0);
  5215. ForceClassSelection(playerid);
  5216. if(IsPlayerInDuel[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar este comando no duelo!");
  5217. return 1;
  5218. }
  5219.  
  5220.  
  5221. CMD:jetpack(playerid,params[])
  5222. {
  5223. if(gClasse[playerid] == PILOTO || gClasse[playerid] == CAPITAO || PlayerInfo[playerid][pVip]>0)
  5224. {
  5225. SetPlayerSpecialAction(playerid,2);
  5226. SendClientMessage(playerid,BRANCO,"[INFO] Você pegou seu jetpack!");
  5227. }
  5228. else return SendClientMessage(playerid,BRANCO,"[ERRO] Você não tem permissão!");
  5229. return 1;
  5230. }
  5231.  
  5232. CMD:criarduelo(playerid,params[])
  5233. {
  5234. if(ExistDuel == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Ja existe um duelo em andamento!");
  5235. ExistDuel = 1;
  5236. foreach(new i:Player)
  5237. {
  5238. Configured[i] = 0;
  5239. }
  5240. if(AFK[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode criar duelo em modo afk!");
  5241. if(InDM[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode criar duelo enquanto você está no DM Arena!");
  5242. ShowPlayerDialog(playerid,DIALOGDUEL,DIALOG_STYLE_LIST,"Escolha sua Arma","Combat Shotgun\nDeagle\nShotgun\nM4","Choose","");
  5243. SendClientMessage(playerid,LARANJA,"Bem-vindo ao duelo arena. Por favor, escolha a sua arma abaixo!");
  5244. SetPlayerPos(playerid,1305.2247,2191.3816,11.0234);
  5245. new Name[MAX_PLAYER_NAME],str[256];
  5246. GetPlayerName(playerid,Name,sizeof(Name));
  5247. format(str,sizeof(str),"~g~%s[%d] ~r~criou um duelo!",Name,playerid);
  5248. SendBoxMessage(str);
  5249. ResetPlayerWeapons(playerid);
  5250. SendClientMessage(playerid,LARANJA,"Por favor, tome a sua posição!");
  5251. IsPlayerInDuel[playerid] = 1;
  5252. return 1;
  5253. }
  5254.  
  5255. CMD:aceitarduelo(playerid,params[])
  5256. {
  5257. if(ExistDuel == 0)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Nenhum duelo criado! Use /criarduelo!");
  5258. if(Configured[playerid] == 0)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Duelo não configurado! Por favor, tente novamente mais tarde!");
  5259. if(DuelMaker[playerid] == playerid)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Voce ja esta no duelo!");
  5260. if(AFK[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Voce nao pode usar esse comando AFK!");
  5261. SetPlayerPos(playerid,1305.2247,2191.3816,11.0234);
  5262. GameTextForAll("~g~o Duelo ~r~iniciou!",3000,6);
  5263. if(InDM[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode duelo enquanto você está no DM Arena");
  5264. ResetPlayerWeapons(playerid);
  5265. IsPlayerInDuel[playerid] = 1;
  5266. if(SpawnKill[playerid] == 1)
  5267. {
  5268. KillTimer(AntiSpawnKill[playerid]);
  5269. return AntiSpawnKilling(playerid);
  5270. }
  5271. if(UsedWeaps[playerid] == COMBAT)
  5272. {
  5273. GivePlayerWeapon(playerid,27,9889);
  5274. }
  5275. else if(UsedWeaps[playerid] == DEAGLE)
  5276. {
  5277. GivePlayerWeapon(playerid,24,9889);
  5278. }
  5279. else if(UsedWeaps[playerid] == SHOTGUN)
  5280. {
  5281. GivePlayerWeapon(playerid,25,9889);
  5282. }
  5283. else if(UsedWeaps[playerid] == M4)
  5284. {
  5285. GivePlayerWeapon(playerid,31,9889);
  5286. }
  5287. return 1;
  5288. }
  5289.  
  5290. CMD:reportar(playerid,params[])
  5291. {
  5292. new Name[MAX_PLAYER_NAME],targetid,Name2[MAX_PLAYER_NAME],str[256],reason[256];
  5293. if(sscanf(params,"us[256]",targetid,reason))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /reportar ID [Motivo]!");
  5294. if(targetid == INVALID_PLAYER_ID)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]:Invalid target ID!");
  5295. GetPlayerName(playerid,Name,sizeof(Name));
  5296. GetPlayerName(targetid,Name2,sizeof(Name2));
  5297. format(str,sizeof(str),"%s[%d]has reported %s[%d]for %s",Name,playerid,Name2,targetid,reason);
  5298. SendClientMessage(playerid,LARANJA,"[INFO]:Your report has sent to all online administrators!");
  5299. foreach(new i:Player)
  5300. {
  5301. if(PlayerInfo[i][pAdmin]>0||IsPlayerAdmin(i))
  5302. {
  5303. SendClientMessage(i,COLOR_BRIGHTRED,str);
  5304. }
  5305. }
  5306. return 1;
  5307. }
  5308.  
  5309. CMD:chat(playerid,params[])
  5310. {
  5311. new Name[MAX_PLAYER_NAME],text[256],str[256];
  5312. GetPlayerName(playerid,Name,sizeof(Name));
  5313. if(sscanf(params,"s[256",text))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /chat [texto]!");
  5314. foreach(new i:Player)
  5315. {
  5316. if(gPais[i] == gPais[playerid])
  5317. {
  5318. format(str,sizeof(str),"%s[%d][%s chat]:{FFFFAA}%s",Name,playerid,GetTeamName(playerid),text);
  5319. SendClientMessage(i,LARANJA,str);
  5320. }
  5321. }
  5322. return 1;
  5323. }
  5324.  
  5325. CMD:ajuda(playerid,params[])
  5326. {
  5327. new str[256],Name[MAX_PLAYER_NAME],text[256];
  5328. GetPlayerName(playerid,Name,sizeof(Name));
  5329. if(sscanf(params,"s[256]",text))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /ajuda [Duvida]!");
  5330. format(str,sizeof(str),"Pedido de ajuda de %s[%d]: %s",Name,playerid,text);
  5331. SendClientMessage(playerid,ROSA,"[INFO] Sua mensagem foi enviada para todos os administradores");
  5332. foreach(new i:Player)
  5333. {
  5334. if(IsPlayerAdmin(i)||PlayerInfo[i][pAdmin]>0)SendClientMessage(i,LARANJA,str);
  5335. }
  5336. return 1;
  5337. }
  5338.  
  5339.  
  5340. CMD:status(playerid,params[])
  5341. {
  5342. new str[256],Name[MAX_PLAYER_NAME],str2[256],str3[256];
  5343. GetPlayerName(playerid,Name,sizeof(Name));
  5344. 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]);
  5345. format(str2,sizeof(str2),"Admin Level:%i||VIP Level:%i||Score:%i||Rank:%s",PlayerInfo[playerid][pAdmin],PlayerInfo[playerid][pVip],GetPlayerScore(playerid),GetRankName(playerid));
  5346. format(str3,sizeof(str3),"Estatísticas do usuário %s",Name);
  5347. SendClientMessage(playerid,LARANJA,"---------------------------------------------------");
  5348. SendClientMessage(playerid,LARANJA," USER STATS ");
  5349. SendClientMessage(playerid,LARANJA,str3);
  5350. SendClientMessage(playerid,LARANJA,str);
  5351. SendClientMessage(playerid,LARANJA,str2);
  5352. SendClientMessage(playerid,LARANJA,"---------------------------------------------------");
  5353. return 1;
  5354. }
  5355.  
  5356. CMD:afk(playerid,params[])
  5357. {
  5358. if(AFK[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você já está na zona AFK!");
  5359. if(IsPlayerInDuel[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar esse comando no duelo!");
  5360. if(IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não pode usar AFK de dentro de um veículo!");
  5361. if(InDM[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR] Você não pode usar AFK enquanto você está no DM Arena!");
  5362. if(InHIC[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este comando não suporta na sua zona AFK!");
  5363. else
  5364. {
  5365. AFKTimer[playerid] = SetTimerEx("GoAFK",5000,false,"i",playerid);
  5366. SendClientMessage(playerid,AZUL,"Você será teletransportado para Zona AFK em 5 segundos");
  5367. }
  5368. return 1;
  5369. }
  5370.  
  5371. forward GoAFK(playerid);
  5372. public GoAFK(playerid)
  5373. {
  5374. new str[256],Name[MAX_PLAYER_NAME];
  5375. GetPlayerName(playerid,Name,sizeof(Name));
  5376. format(str,sizeof(str),"%s[%d] esta AFK!",Name,playerid);
  5377. SendBoxMessage(str);
  5378. SetPlayerPos(playerid,1830.70508, -1281.54004, 90.47750);
  5379. AFK[playerid] = 1;
  5380. KillTimer(AFKTimer[playerid]);
  5381. SendClientMessage(playerid,ROSA,"[INFO] Você está na Zona AFK!");
  5382. ResetPlayerWeapons(playerid);
  5383. return 1;
  5384. }
  5385.  
  5386.  
  5387. CMD:online(playerid,params[])
  5388. {
  5389. if(AFK[playerid] == 0)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não esta AFK!");
  5390. if(InDM[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Comando nao suportado para DM Arenas");
  5391. if(InHIC[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Comando não suportado na sua zona atual!");
  5392. else
  5393. {
  5394. SpawnPlayer(playerid);
  5395. AFK[playerid] = 0;
  5396. SendClientMessage(playerid,VERDE,"[INFO] Você voltou da Zona AFK!");
  5397. new str[256],Name[MAX_PLAYER_NAME];
  5398. GetPlayerName(playerid,Name,sizeof(Name));
  5399. format(str,sizeof(str),"~g~%s[%d] Retornou da zona AFK!",Name,playerid);
  5400. SendBoxMessage(str);
  5401. }
  5402. return 1;
  5403. }
  5404.  
  5405. CMD:objetivo(playerid,params[])
  5406. {
  5407. SendClientMessage(playerid,COLOR_BRIGHTRED,"===============================================");
  5408. SendClientMessage(playerid,BRANCO,"A fim de ganhar dinheiro e marcar rápido, você precisa fazer isso:");
  5409. SendClientMessage(playerid,BRANCO,"1.Capturar mais zona. A melhor maneira e mais fácil maneira de ganhar dinheiro e pontuação");
  5410. SendClientMessage(playerid,BRANCO,"2.Make killspree");
  5411. SendClientMessage(playerid,BRANCO,"3.Kill more PPL");
  5412. SendClientMessage(playerid,COLOR_BRIGHTRED,"================================================");
  5413. return 1;
  5414. }
  5415.  
  5416. CMD:pm(playerid,params[])
  5417. {
  5418. new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[256],str2[256],text[256];
  5419. if(sscanf(params,"us[256",targetid,text))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /pm ID [texto]");
  5420. if(targetid == INVALID_PLAYER_ID)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] ID Invalido");
  5421. GetPlayerName(playerid,Name,sizeof(Name));
  5422. GetPlayerName(targetid,Name2,sizeof(Name2));
  5423. format(str,sizeof(str),"* PM Enviado para %s[%d]:%s",Name2,targetid,text);
  5424. format(str2,sizeof(str2),"* PM Recebido de %s[%d]:%s",Name,playerid,text);
  5425. SendClientMessage(playerid,VERDE,str);
  5426. SendClientMessage(targetid,VERDE,str2);
  5427. return 1;
  5428. }
  5429.  
  5430. CMD:resetarstatus(playerid,params[])
  5431. {
  5432. new INI:File = INI_Open(UserPath(playerid));
  5433. INI_SetTag(File,"Data");
  5434. INI_WriteInt(File,"Kill",0);
  5435. INI_WriteInt(File,"Death",0);
  5436. INI_WriteInt(File,"Scores",0);
  5437. ResetStats(playerid);
  5438. PlayerInfo[playerid][pKill] = 0;
  5439. PlayerInfo[playerid][pDeath] = 0;
  5440. PlayerInfo[playerid][pScores] = 0;
  5441. SetPlayerScore(playerid,0);
  5442. INI_Close(File);
  5443. SendClientMessage(playerid,ROSA,"[INFO] Informaçoes resetadas!");
  5444. return 1;
  5445. }
  5446.  
  5447. CMD:kill(playerid,params[])
  5448. {
  5449. SetPlayerHealth(playerid,0);
  5450. return 1;
  5451. }
  5452.  
  5453. CMD:regras(playerid,params[])
  5454. {
  5455. 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","");
  5456. return 1;
  5457. }
  5458.  
  5459. CMD:curar(playerid,params[])
  5460. {
  5461. new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[256],str2[256],Float:pD[3];
  5462. if(gClasse[playerid] == MEDICO)
  5463. {
  5464. if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /CurarEquipe ID");
  5465. //if(HealedTeam[playerid]>5)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]:You have healled your team mate for maximum time!");
  5466. //if(GetPlayerMoney(playerid)<6000)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não tem dinheiro suficiente!");
  5467. GetPlayerPos(targetid,pD[0],pD[1],pD[2]);
  5468. GetPlayerName(targetid,Name2,sizeof(Name2));
  5469. GetPlayerName(playerid,Name,sizeof(Name));
  5470. if(IsPlayerInRangeOfPoint(playerid,4,pD[0],pD[1],pD[2])&&gPais[targetid]==gPais[playerid]&&targetid!=INVALID_PLAYER_ID&&targetid!=playerid&&HealedTeam[playerid]<6)
  5471. {
  5472. SetPlayerHealth(targetid,100);
  5473. format(str,sizeof(str),"Você curou %s[%d]",Name2,targetid);
  5474. format(str2,sizeof(str2),"[MEDICO] %s[%d] Te curou!",Name,playerid);
  5475. SendClientMessage(playerid,ROSA,str);
  5476. SendClientMessage(targetid,ROSA,str2);
  5477. //GivePlayerMoney(playerid,-6000);
  5478. //HealedTeam[playerid]++;
  5479. }
  5480. else return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Chegue mais perto para poder curar!");
  5481. }
  5482. else return 0;
  5483. return 1;
  5484. }
  5485.  
  5486. /*CMD:armteam(playerid,params[])
  5487. {
  5488. new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[256],str2[256],Float:pD[3];
  5489. if(gClasse[playerid] == MEDICO)
  5490. {
  5491. if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]:Usage /armteam ID");
  5492. if(ArmoredTeam[playerid]>5)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]:You have armored your team mate for maximum time!");
  5493. if(GetPlayerMoney(playerid)<6500)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]:You dont have enough money!");
  5494. GetPlayerPos(targetid,pD[0],pD[1],pD[2]);
  5495. GetPlayerName(playerid,Name,sizeof(Name));
  5496. GetPlayerName(targetid,Name2,sizeof(Name2));
  5497. if(IsPlayerInRangeOfPoint(playerid,4,pD[0],pD[1],pD[2])&&gPais[targetid]==gPais[playerid]&&targetid!=INVALID_PLAYER_ID&&targetid!=playerid&&ArmoredTeam[playerid]<6)
  5498. {
  5499. SetPlayerArmour(targetid,100);
  5500. format(str,sizeof(str),"You have given armor to%s[%d]",Name2,targetid);
  5501. format(str2,sizeof(str2),"[INFO]:%s[%d]has restore your armor!",Name,playerid);
  5502. SendClientMessage(playerid,ROSA,str);
  5503. SendClientMessage(targetid,ROSA,str2);
  5504. GivePlayerMoney(playerid,-6500);
  5505. ArmoredTeam[playerid]++;
  5506. }
  5507. else return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]:That player is not near you!");
  5508. }
  5509. else return 0;
  5510. return 1;
  5511. }*/
  5512.  
  5513. CMD:plantarbomba(playerid,params[])
  5514. {
  5515. if(gClasse[playerid] == BOMBARDEIRO || PlayerInfo[playerid][pVip]>1)
  5516. {
  5517. if(!IsPlayerInAnyVehicle(playerid)&&UsedBomb[playerid]<6)
  5518. {
  5519. if(GetPlayerMoney(playerid)<5000)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Voce não tem dinheiro suficiente!");
  5520. new Float:p[3];
  5521. GetPlayerPos(playerid,p[0],p[1],p[2]);
  5522. ApplyAnimation(playerid, "ped", "bomber", 1.0, 0, 0, 0, 0, 0);
  5523. Bomb = CreateObject(1636,p[0],p[1],p[2],0,0,0,0);
  5524. SetPVarFloat(playerid,"BombX",p[0]);
  5525. SetPVarFloat(playerid,"BombY",p[1]);
  5526. SetPVarFloat(playerid,"BombZ",p[2]);
  5527. BombTimer[playerid] = SetTimerEx("BombExploded",10000,false,"i",playerid);
  5528. GivePlayerMoney(playerid,-6000);
  5529. new str[256],Name[MAX_PLAYER_NAME];
  5530. GetPlayerName(playerid,Name,sizeof(Name));
  5531. format(str,sizeof(str),"~g~%s[%d] ~r~Plantou Uma bomba! Cuidado !!!",Name,playerid);
  5532. SendBoxMessage(str);
  5533. //SendClientMessageToAll(str);
  5534. GivePlayerMoney(playerid,-5000);
  5535. }
  5536. else return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você está dentro de um veículo ou ja usou este comandos por 5 vezes!");
  5537. }
  5538. else return 0;
  5539. return 1;
  5540. }
  5541.  
  5542. forward BombExploded(playerid);
  5543. public BombExploded(playerid)
  5544. {
  5545. CreateExplosion(GetPVarFloat(playerid,"BombX"),GetPVarFloat(playerid,"BombY"),GetPVarFloat(playerid,"BombZ"),3,5);
  5546. SendClientMessage(playerid,ROSA,"[INFO] Sua bomba explodiu com sucesso!");
  5547. UsedBomb[playerid]++;
  5548. DestroyObject(Bomb);
  5549. return 1;
  5550. }
  5551.  
  5552. CMD:bomba(playerid,params[])
  5553. {
  5554. new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[256],str2[256],Float:pD[3];
  5555. if(gClasse[playerid] == BOMBARDEIRO || PlayerInfo[playerid][pVip]>2)
  5556. {
  5557. if(!IsPlayerInAnyVehicle(playerid)&&BombPlant[playerid]<5)
  5558. {
  5559. if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /bomba ID");
  5560. if(IsPlayerInAnyVehicle(targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] O Jogador esta em um veiculo!");
  5561. if(GetPlayerMoney(playerid)<8000)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não tem dinheiro suficiente!");
  5562. GetPlayerName(playerid,Name,sizeof(Name));
  5563. GetPlayerName(targetid,Name2,sizeof(Name2));
  5564. GetPlayerPos(targetid,pD[0],pD[1],pD[2]);
  5565. if(IsPlayerInRangeOfPoint(playerid,5,pD[0],pD[1],pD[2])&&targetid!=INVALID_PLAYER_ID&&targetid!=playerid)
  5566. {
  5567. format(str,sizeof(str),"%s[%d] plantou uma bomba em você!",Name,playerid);
  5568. format(str2,sizeof(str2),"Você Plantou uma Bomba em %s[%d]",Name2,targetid);
  5569. SendClientMessage(playerid,ROSA,str2);
  5570. SendClientMessage(targetid,COLOR_BRIGHTRED,str);
  5571. CreateExplosion(pD[0],pD[1],pD[2],3,4);
  5572. GivePlayerMoney(playerid,-8000);
  5573. BombPlant[playerid]++;
  5574. }
  5575. else return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Esse player não está perto de você!");
  5576. }
  5577. else return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você está dentro de um veículo ou ja usou este comandos por 5 vezes!");
  5578. }
  5579. else return 0;
  5580. return 1;
  5581. }
  5582.  
  5583. CMD:explodirme(playerid,params[])
  5584. {
  5585. if(gClasse[playerid] == MECANICO||PlayerInfo[playerid][pVip]>0)
  5586. {
  5587. if(!IsPlayerInAnyVehicle(playerid)&&AExplode[playerid]<6)
  5588. {
  5589. new Float:p[3],Float:health,Float:armor;
  5590. GetPlayerPos(playerid,p[0],p[1],p[2]);
  5591. GetPlayerHealth(playerid,health);
  5592. GetPlayerArmour(playerid,armor);
  5593. CreateExplosion(p[0],p[1],p[2],3,4);
  5594. SetPlayerHealth(playerid,health);
  5595. SetPlayerArmour(playerid,armor);
  5596. AExplode[playerid]++;
  5597. }
  5598. else return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você está dentro de um veículo ou ja usou este comandos por 5 vezes!");
  5599. }
  5600. else return 0;
  5601. return 1;
  5602. }
  5603.  
  5604. CMD:admins(playerid,params[])
  5605. {
  5606. SendClientMessage(playerid,0x008000AA,"~~~~~~~• Admins Online ~~~~~~~•");
  5607. new Jogador[24];
  5608. new count = 0;
  5609. new msg[120];
  5610. for(new i=0; i<MAX_PLAYERS; i++)
  5611. {
  5612. if(IsPlayerConnected(i) && PlayerInfo[i][pAdmin]>0)
  5613. {
  5614. GetPlayerName(i,Jogador,24);
  5615. format(msg,sizeof(msg),"» %s (ID: %d)", Jogador,i);
  5616. SendClientMessage(playerid, 0x0088CAAA, msg);
  5617. count++;
  5618. }
  5619. }
  5620. if(count == 0)
  5621. {
  5622. SendClientMessage(playerid, 0xFFFF00AA, "** Nenhum Admin está online no momento!");
  5623. }
  5624. return 1;
  5625. }
  5626.  
  5627. CMD:vips(playerid,params[])
  5628. {
  5629. SendClientMessage(playerid,0x008000AA,"~~~~~~~• Players VIP Online ~~~~~~~•");
  5630. new Jogador[24];
  5631. new count = 0;
  5632. new msg[120];
  5633. for(new i=0; i<MAX_PLAYERS; i++)
  5634. {
  5635. if(IsPlayerConnected(i) && PlayerInfo[i][pVip]>0)
  5636. {
  5637. GetPlayerName(i,Jogador,24);
  5638. format(msg,sizeof(msg),"» %s (ID: %d)", Jogador,i);
  5639. SendClientMessage(playerid, 0x0088CAAA, msg);
  5640. count++;
  5641. }
  5642. }
  5643. if(count == 0)
  5644. {
  5645. SendClientMessage(playerid, 0xFFFF00AA, "** Nenhum player VIP está online no momento!");
  5646. SendClientMessage(playerid, 0x80FFFFAA, "* Veja as vantagens VIP /vipbeneficios");
  5647. }
  5648. return 1;
  5649. }
  5650.  
  5651.  
  5652. // -----------------------------------
  5653. // VIP Commands
  5654. // -----------------------------------
  5655.  
  5656. CMD:cvv(playerid,params[])
  5657. {
  5658. if(PlayerInfo[playerid][pVip]>0)
  5659. {
  5660. ShowPlayerDialog(playerid,VDIALOG,DIALOG_STYLE_LIST,"Selecione o veiculo","Hydra\nHunter\nRhino","Spawn","");
  5661. }
  5662. else return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não é VIP !");
  5663. return 1;
  5664. }
  5665.  
  5666. CMD:vchat(playerid,params[])
  5667. {
  5668. if(PlayerInfo[playerid][pVip]>0)
  5669. {
  5670. new str[256],Name[MAX_PLAYER_NAME],msg[256];
  5671. GetPlayerName(playerid,Name,sizeof(Name));
  5672. if(sscanf(params,"s[256]",msg))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /vchat [texto]");
  5673. format(str,sizeof(str),"VIP Chat %s[%d]:{FFFFAA}%s",Name,playerid,msg);
  5674. foreach(new i:Player)
  5675. {
  5676. if(PlayerInfo[i][pVip]>0)
  5677. {
  5678. SendClientMessage(i,LARANJA,str);
  5679. }
  5680. }
  5681. }
  5682. else return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não é VIP !");
  5683. return 1;
  5684. }
  5685.  
  5686. CMD:v(playerid,params[])
  5687. {
  5688. if(PlayerInfo[playerid][pVip]>0)
  5689. {
  5690. new str[256],Name[MAX_PLAYER_NAME],msg[256];
  5691. GetPlayerName(playerid,Name,sizeof(Name));
  5692. if(sscanf(params,"s[256]",msg))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /v [texto]");
  5693. format(str,sizeof(str),"* VIP %s[%d]:{FFFFAA}%s",Name,playerid,msg);
  5694. SendClientMessageToAll(VERDE,str);
  5695. }
  5696. else return 0;
  5697. return 1;
  5698. }
  5699.  
  5700.  
  5701. CMD:anunciarv(playerid,params[])
  5702. {
  5703. if(PlayerInfo[playerid][pVip]>0)
  5704. {
  5705. new str[256],Name[MAX_PLAYER_NAME],msg[256];
  5706. GetPlayerName(playerid,Name,sizeof(Name));
  5707. if(sscanf(params,"s[256]",msg))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /anunciarv [texto]");
  5708. format(str,sizeof(str),"~g~VIP:~w~%s",msg);
  5709. GameTextForAll(str,3000,6);
  5710. }
  5711. else return 0;
  5712. return 1;
  5713. }
  5714.  
  5715. CMD:shop(playerid,params[])
  5716. {
  5717. if(IsPlayerInDuel[playerid] == 1)return 0;
  5718. if(InDM[playerid] == 1)return 0;
  5719. if(InHIC[playerid] == 1)return 0;
  5720. if(VShop[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Este comando só utilizável uma vez por morte!");
  5721. ShowPlayerDialog(playerid,VSHOP,DIALOG_STYLE_LIST,"{0080AA}VIP Shop","Vida-{0080AA}$5000\nColete-{0080AA}$5500\n10 Packs de RPG-{0080AA}$7000","Buy","");
  5722. return 1;
  5723. }
  5724.  
  5725.  
  5726. // ------------------------------------
  5727. // ADMIN COMMANDS
  5728. // ------------------------------------
  5729.  
  5730. CMD:setadmin(playerid,params[])
  5731. {
  5732. new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[128],str2[128];
  5733. if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Você precisa estar na RCON para usar esse comando!");
  5734. if(sscanf(params,"ui",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use:/setadmin ID ");
  5735. if(PlayerInfo[playerid][pAdmin] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Jogador selecionado já é admin!");
  5736. {
  5737. GetPlayerName(playerid,Name,sizeof(Name));
  5738. GetPlayerName(targetid,Name2,sizeof(Name2));
  5739. format(str,sizeof(str),">> %s[%d] setou %s[%d] como Admin !",Name,playerid,Name2,targetid);
  5740. SendClientMessageToAll(ROSA,str);
  5741. PlayerInfo[targetid][pAdmin] = 1;
  5742. SavePlayerAdmin(playerid);
  5743. new INI:File = INI_Open(UserPath(playerid));
  5744. INI_SetTag(File,"Data");
  5745. INI_WriteInt(File,"Level", 1);
  5746. INI_Close(File);
  5747. for(new i=0; i<MAX_PLAYERS; i++)
  5748. {
  5749. if(IsPlayerConnected(i)&&IsPlayerAdmin(i)||PlayerInfo[i][pAdmin] >=1)
  5750. {
  5751. format(str2,sizeof(str2),"Admin %s[%d] usou /setadmin !",Name,playerid);
  5752. SendClientMessage(i,LARANJA,str);
  5753. }
  5754. }
  5755. }
  5756. return 1;
  5757. }
  5758.  
  5759. CMD:tiraradmin(playerid,params[])
  5760. {
  5761. new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[128],str2[128];
  5762. if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Você precisa estar na RCON para usar esse comando!");
  5763. if(sscanf(params,"ui",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use:/tiraradmin ID ID ");
  5764. if(PlayerInfo[playerid][pAdmin] == 0)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Jogador selecionado não é admin!");
  5765. {
  5766. GetPlayerName(playerid,Name,sizeof(Name));
  5767. GetPlayerName(targetid,Name2,sizeof(Name2));
  5768. format(str,sizeof(str),">> %s[%d] Tirou o Admin de %s[%d] !",Name,playerid,Name2,targetid);
  5769. SendClientMessageToAll(ROSA,str);
  5770. PlayerInfo[targetid][pAdmin] = 0;
  5771. SavePlayerAdmin(playerid);
  5772. new INI:File = INI_Open(UserPath(playerid));
  5773. INI_SetTag(File,"Data");
  5774. INI_WriteInt(File,"Level", 0);
  5775. INI_Close(File);
  5776. for(new i=0; i<MAX_PLAYERS; i++)
  5777. {
  5778. if(IsPlayerConnected(i)&&IsPlayerAdmin(i)||PlayerInfo[i][pAdmin] >=1)
  5779. {
  5780. format(str2,sizeof(str2),"Admin %s[%d] usou /TirarAdmin !",Name,playerid);
  5781. SendClientMessage(i,LARANJA,str);
  5782. }
  5783. }
  5784. }
  5785. return 1;
  5786. }
  5787.  
  5788.  
  5789. CMD:setvip(playerid,params[])
  5790. {
  5791. new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[128],str2[128];
  5792. if(IsPlayerAdmin(playerid))
  5793. {
  5794. if(sscanf(params,"ui",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /setvip ID ");
  5795. if(PlayerInfo[targetid][pVip] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Jogador selecionado já é Vip!");
  5796. PlayerInfo[targetid][pVip] = 1;
  5797. SavePlayerVip(playerid);
  5798. GetPlayerName(playerid,Name,sizeof(Name));
  5799. GetPlayerName(targetid,Name2,sizeof(Name2));
  5800. format(str,sizeof(str),"Admin %s[%d] te setou VIP",Name,playerid);
  5801. format(str2,sizeof(str2),"Você deu VIP a %s[%d]",Name2,targetid);
  5802. SendClientMessage(playerid,ROSA,str2);
  5803. SendClientMessage(targetid,ROSA,str);
  5804. }
  5805. return 1;
  5806. }
  5807.  
  5808. CMD:tirarvip(playerid,params[])
  5809. {
  5810. new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[128],str2[128];
  5811. if(IsPlayerAdmin(playerid))
  5812. {
  5813. if(sscanf(params,"ui",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /tirarvip ID ");
  5814. if(PlayerInfo[targetid][pVip] == 0)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Esse Jogador não é VIP!");
  5815. PlayerInfo[targetid][pVip] = 0;
  5816. SavePlayerVip(playerid);
  5817. GetPlayerName(playerid,Name,sizeof(Name));
  5818. GetPlayerName(targetid,Name2,sizeof(Name2));
  5819. format(str,sizeof(str),"Admin %s[%d] tirou seu VIP",Name,playerid);
  5820. format(str2,sizeof(str2),"Você tirou VIP de %s[%d]",Name2,targetid);
  5821. SendClientMessage(playerid,ROSA,str2);
  5822. SendClientMessage(targetid,ROSA,str);
  5823. }
  5824. return 1;
  5825. }
  5826.  
  5827.  
  5828. CMD:desabilitarchat(playerid,params[])
  5829. {
  5830. new Name[MAX_PLAYER_NAME],str[256];
  5831. GetPlayerName(playerid,Name,sizeof(Name));
  5832. format(str,sizeof(str),"~g~Admin %s[%d]~r~ Desabilitou Chat principal!",Name,playerid);
  5833. for(new i=0; i<MAX_PLAYERS; i++)
  5834. {
  5835. if(PlayerInfo[playerid][pAdmin] == 1)
  5836. {
  5837. Muted[i] = 1;
  5838. GameTextForAll(str,3000,6);
  5839. }
  5840. }
  5841. return 1;
  5842. }
  5843.  
  5844. CMD:habilitarchat(playerid,params[])
  5845. {
  5846. new Name[MAX_PLAYER_NAME],str[256];
  5847. GetPlayerName(playerid,Name,sizeof(Name));
  5848. format(str,sizeof(str),"~g~Admin %s[%d]~r~Habilitou Chat principal!",Name,playerid);
  5849. for(new i=0; i<MAX_PLAYERS; i++)
  5850. {
  5851. if(PlayerInfo[playerid][pAdmin] == 1)
  5852. {
  5853. Muted[i] = 0;
  5854. GameTextForAll(str,3000,6);
  5855. }
  5856. }
  5857. return 1;
  5858. }
  5859.  
  5860. CMD:fechareventos(playerid,params[])
  5861. {
  5862. new Name[MAX_PLAYER_NAME],str[256];
  5863. if(PlayerInfo[playerid][pAdmin] == 1)
  5864. {
  5865. ExistDuel = 0;
  5866. GetPlayerName(playerid,Name,sizeof(Name));
  5867. format(str,sizeof(str),"Admin %s[%d] Fechou todos os eventos!",Name,playerid);
  5868. SendClientMessageToAll(ROSA,str);
  5869. foreach(new i:Player)
  5870. {
  5871. PlayerPlaySound(i,1057,0,0,0);
  5872. if(IsPlayerInDuel[i] == 1)
  5873. {
  5874. IsPlayerInDuel[i] = 0;
  5875. SpawnPlayer(i);
  5876. }
  5877.  
  5878. }
  5879. }
  5880. return 1;
  5881. }
  5882.  
  5883.  
  5884. CMD:setscore(playerid,params[])
  5885. {
  5886. if(IsPlayerAdmin(playerid))
  5887. {
  5888. new score,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[256],str2[256],targetid;
  5889. if(sscanf(params,"ui",targetid,score))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /setscore ID [quantidade]");
  5890. GetPlayerName(playerid,Name,sizeof(Name));
  5891. GetPlayerName(targetid,Name2,sizeof(Name2));
  5892. format(str,sizeof(str),"Admin %s[%d] setou seu score a %i",Name,playerid,score);
  5893. format(str2,sizeof(str2)," Você setou o score de %s[%d] a %i",Name2,targetid,score);
  5894. SendClientMessage(playerid,ROSA,str2);
  5895. SendClientMessage(targetid,VERDE,str);
  5896. SetPlayerScore(targetid,score);
  5897. }
  5898. return 1;
  5899. }
  5900.  
  5901.  
  5902. CMD:calar(playerid,params[])
  5903. {
  5904. new targetid,reason[256],Name[MAX_PLAYER_NAME],str[256],Name2[MAX_PLAYER_NAME];
  5905. if(PlayerInfo[playerid][pAdmin] == 1)
  5906. {
  5907. if(sscanf(params,"us[256]",targetid,reason))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /calar [Motivo]");
  5908. GetPlayerName(playerid,Name,sizeof(Name));
  5909. GetPlayerName(targetid,Name2,sizeof(Name2));
  5910. format(str,sizeof(str),"Admin %s[%d] calou %s[%d] Motivo: %s",Name,playerid,Name2,targetid,reason);
  5911. SendClientMessageToAll(COLOR_BRIGHTRED,str);
  5912. Muted[targetid] = 1;
  5913. }
  5914. return 1;
  5915. }
  5916.  
  5917. CMD:descalar(playerid,params[])
  5918. {
  5919. new targetid,Name[MAX_PLAYER_NAME],str[256],Name2[MAX_PLAYER_NAME];
  5920. if(PlayerInfo[playerid][pAdmin] == 1)
  5921. {
  5922. if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /descalar ID");
  5923. GetPlayerName(playerid,Name,sizeof(Name));
  5924. GetPlayerName(targetid,Name2,sizeof(Name2));
  5925. format(str,sizeof(str),"Admin %s[%d] descalou %s[%d]",Name,playerid,Name2,targetid);
  5926. SendClientMessageToAll(VERDE,str);
  5927. Muted[targetid] = 0;
  5928. }
  5929. return 1;
  5930. }
  5931.  
  5932. CMD:explodir(playerid,params[])
  5933. {
  5934. new targetid,reason[256],Name[MAX_PLAYER_NAME],str[256],str2[256],Name2[MAX_PLAYER_NAME],str3[256];
  5935. if(PlayerInfo[playerid][pAdmin] == 1)
  5936. {
  5937. if(sscanf(params,"us[256]",targetid,reason))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /explodir ID [Motivo]");
  5938. if(targetid == INVALID_PLAYER_ID)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] ID Invalido");
  5939. if(IsPlayerInDuel[targetid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Jogador selecionado esta em duelo!");
  5940. GetPlayerName(playerid,Name,sizeof(Name));
  5941. GetPlayerName(targetid,Name2,sizeof(Name2));
  5942. format(str,sizeof(str),"Admin %s[%d] te explodiu. Motivo: %s",Name,playerid,reason);
  5943. format(str2,sizeof(str2),"Você esxplodiu %s[%d]",Name2,targetid);
  5944. format(str3,sizeof(str3),"%s[%d] Foi explodido pelo Admin %s[%d] Motivo: %s",Name2,targetid,Name,playerid,reason);
  5945. SendClientMessage(playerid,ROSA,str2);
  5946. SendClientMessage(targetid,COLOR_BRIGHTRED,str);
  5947. SendClientMessageToAll(COLOR_BRIGHTRED,str3);
  5948. new Float:p[3];
  5949. GetPlayerPos(targetid,p[0],p[1],p[2]);
  5950. CreateExplosion(p[0],p[1],p[2],3,3);
  5951. }
  5952. return 1;
  5953. }
  5954.  
  5955. CMD:banir(playerid,params[])
  5956. {
  5957. new targetid,Name[MAX_PLAYER_NAME],str[256],str2[256],reason[256],Name2[MAX_PLAYER_NAME];
  5958. if(PlayerInfo[playerid][pAdmin] == 1)
  5959. {
  5960. if(sscanf(params,"us[256]",targetid,reason))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /banir ID [Motivo]");
  5961. GetPlayerName(playerid,Name,sizeof(Name));
  5962. GetPlayerName(targetid,Name2,sizeof(Name2));
  5963. format(str,sizeof(str),"Admin %s[%d] Baniu %s[%d] Motivo: %s",Name,playerid,Name2,targetid,reason);
  5964. format(str2,sizeof(str2),"Voce foi banido pelo Admin %s[%d] por: %s",Name,playerid,reason);
  5965. SendClientMessageToAll(COLOR_BRIGHTRED,str);
  5966. SendClientMessage(targetid,COLOR_BRIGHTRED,str2);
  5967. BanEx(targetid,reason);
  5968. }
  5969. return 1;
  5970. }
  5971.  
  5972. CMD:ir(playerid,params[])
  5973. {
  5974. new targetid,Name[MAX_PLAYER_NAME],str[256];
  5975. if(PlayerInfo[playerid][pAdmin] == 1)
  5976. {
  5977. if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Use /ir ID");
  5978. GetPlayerName(targetid,Name,sizeof(Name));
  5979. format(str,sizeof(str),"Você foi ate %s[%d]",Name,targetid);
  5980. new Float:p[3];
  5981. GetPlayerPos(targetid,p[0],p[1],p[2]);
  5982. SetPlayerPos(playerid,p[0],p[1],p[2]);
  5983. SendClientMessage(playerid,ROSA,str);
  5984. }
  5985. return 1;
  5986. }
  5987.  
  5988. CMD:trazer(playerid,params[])
  5989. {
  5990. new targetid,Name[MAX_PLAYER_NAME],str[256];
  5991. if(PlayerInfo[playerid][pAdmin] == 1)
  5992. {
  5993. if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /trazer ID");
  5994. if(IsPlayerInDuel[targetid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Jogador selecionado está em duelo!");
  5995. if(targetid == INVALID_PLAYER_ID)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] ID Invalido");
  5996. if(InDM[targetid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Jogador selecionado está no DM Arena!");
  5997. if(InHIC[targetid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Jogador selecionado está no inferno em uma célula DM!");
  5998. if(AFK[targetid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Jogador selecionado está em duelo!");
  5999. if(AFK[playerid] == 1)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] AFK");
  6000. GetPlayerName(playerid,Name,sizeof(Name));
  6001. format(str,sizeof(str),"Admin %s[%d] Te trouxe a posição dele",Name,playerid);
  6002. new Float:p[3];
  6003. GetPlayerPos(playerid,p[0],p[1],p[2]);
  6004. SetPlayerPos(targetid,p[0],p[1],p[2]);
  6005. SendClientMessage(targetid,VERDE,str);
  6006. }
  6007. return 1;
  6008. }
  6009.  
  6010. CMD:trazert(playerid,params[])
  6011. {
  6012. new Name[MAX_PLAYER_NAME],str[256];
  6013. if(PlayerInfo[playerid][pAdmin] == 1)
  6014. {
  6015. GetPlayerName(playerid,Name,sizeof(Name));
  6016. format(str,sizeof(str),"Admin %s[%d] Trouxe todos a sua posição",Name,playerid);
  6017. SendClientMessageToAll(LARANJA,str);
  6018. new Float:p[3];
  6019. GetPlayerPos(playerid,p[0],p[1],p[2]);
  6020. foreach(new i:Player)
  6021. {
  6022. if(IsPlayerInDuel[i] == 0)
  6023. {
  6024. SetPlayerPos(i,p[0],p[1],p[2]);
  6025. }
  6026. }
  6027. }
  6028. return 1;
  6029. }
  6030.  
  6031.  
  6032. CMD:dargrana(playerid,params[])
  6033. {
  6034. new ammount,targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str[256],str2[256];
  6035. if(IsPlayerAdmin(playerid))
  6036. {
  6037. if(sscanf(params,"ui",targetid,ammount))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /dargrana ID [quantidade]");
  6038. if(targetid == INVALID_PLAYER_ID)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] ID Invalido");
  6039. GetPlayerName(playerid,Name,sizeof(Name));
  6040. GetPlayerName(targetid,Name2,sizeof(Name2));
  6041. format(str,sizeof(str),"Admin %s[%d] te deu $%i de grana",Name,playerid,ammount);
  6042. format(str2,sizeof(str2),"voce deu a %s[%d] $%i de grana",Name2,targetid,ammount);
  6043. SendClientMessage(targetid,ROSA,str);
  6044. SendClientMessage(playerid,ROSA,str2);
  6045. GivePlayerMoney(targetid,ammount);
  6046. }
  6047. return 1;
  6048. }
  6049.  
  6050. CMD:dargranat(playerid,params[])
  6051. {
  6052. new ammount,str[256],Name[MAX_PLAYER_NAME];
  6053. if(IsPlayerAdmin(playerid))
  6054. {
  6055. if(sscanf(params,"i",ammount))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /dargranat [quantidade]");
  6056. GetPlayerName(playerid,Name,sizeof(Name));
  6057. format(str,sizeof(str),"Admin %s[%d] deu R$%i para todos",Name,playerid,ammount);
  6058. SendClientMessageToAll(ROSA,str);
  6059. foreach(new i:Player)
  6060. { if(i!=playerid)
  6061. {
  6062. GivePlayerMoney(i,ammount);
  6063. }
  6064. }
  6065. }
  6066. return 1;
  6067. }
  6068.  
  6069. CMD:congelar(playerid,params[])
  6070. {
  6071. new targetid,reason[256],str[256],Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str2[256];
  6072. if(PlayerInfo[playerid][pAdmin] == 1)
  6073. {
  6074. if(sscanf(params,"us[256]",targetid,reason))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /congelar ID [Motivo]");
  6075. GetPlayerName(playerid,Name,sizeof(Name));
  6076. GetPlayerName(targetid,Name2,sizeof(Name2));
  6077. format(str,sizeof(str),"Admin %s[%d] Te congelou pelo Motivo :%s!",Name,playerid,reason);
  6078. format(str2,sizeof(str2),"Voce congelou %s[%d] Motivo :%s",Name2,targetid,reason);
  6079. SendClientMessage(playerid,ROSA,str2);
  6080. SendClientMessage(targetid,COLOR_BRIGHTRED,str);
  6081. TogglePlayerControllable(targetid,0);
  6082. }
  6083. return 1;
  6084. }
  6085.  
  6086. CMD:descongelar(playerid,params[])
  6087. {
  6088. new targetid,str[256],Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],str2[256];
  6089. if(PlayerInfo[playerid][pAdmin] == 1)
  6090. {
  6091. if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /descongelar ID");
  6092. GetPlayerName(playerid,Name,sizeof(Name));
  6093. GetPlayerName(targetid,Name2,sizeof(Name2));
  6094. format(str,sizeof(str),"Admin %s[%d] Te descongelou!",Name,playerid);
  6095. format(str2,sizeof(str2),"Voce descongelou %s[%d]",Name2,targetid);
  6096. SendClientMessage(playerid,ROSA,str2);
  6097. SendClientMessage(targetid,COLOR_BRIGHTRED,str);
  6098. TogglePlayerControllable(targetid,1);
  6099. }
  6100. return 1;
  6101. }
  6102.  
  6103. CMD:congelart(playerid,params[])
  6104. {
  6105. new Name[MAX_PLAYER_NAME],str[256];
  6106. if(PlayerInfo[playerid][pAdmin] == 1)
  6107. {
  6108. GetPlayerName(playerid,Name,sizeof(Name));
  6109. format(str,sizeof(str),"Admin %s[%d] Congelou Todos!",Name,playerid);
  6110. SendClientMessageToAll(COLOR_BRIGHTRED,str);
  6111. for(new i=0; i<MAX_PLAYERS; i++)
  6112. {
  6113. if(i!=playerid)
  6114. {
  6115. TogglePlayerControllable(i,0);
  6116. }
  6117. }
  6118. }
  6119. return 1;
  6120. }
  6121.  
  6122. CMD:descongelart(playerid,params[])
  6123. {
  6124. new Name[MAX_PLAYER_NAME],str[256];
  6125. if(PlayerInfo[playerid][pAdmin] == 1)
  6126. {
  6127. GetPlayerName(playerid,Name,sizeof(Name));
  6128. format(str,sizeof(str),"Admin %s[%d] Descongelou Todos!",Name,playerid);
  6129. SendClientMessageToAll(ROSA,str);
  6130. for(new i=0; i<MAX_PLAYERS; i++)
  6131. {
  6132. TogglePlayerControllable(i,1);
  6133. }
  6134. }
  6135. return 1;
  6136. }
  6137.  
  6138. CMD:aviso(playerid,params[])
  6139. {
  6140. new Name[MAX_PLAYER_NAME],reason[256],Name2[MAX_PLAYER_NAME],targetid,str3[256];
  6141. if(PlayerInfo[playerid][pAdmin] == 1)
  6142. {
  6143. if(sscanf(params,"us[256]",targetid,reason))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /aviso ID [Motivo]");
  6144. GetPlayerName(playerid,Name,sizeof(Name));
  6145. GetPlayerName(targetid,Name2,sizeof(Name2));
  6146. format(str3,sizeof(str3),"Admin %s[%d]Deu aviso ao jogador %s[%d]Motivo: %s",Name,playerid,Name2,targetid,reason);
  6147. SendClientMessageToAll(COLOR_BRIGHTRED,str3);
  6148. }
  6149. return 1;
  6150. }
  6151.  
  6152. CMD:ann(playerid,params[])
  6153. {
  6154. new Name[MAX_PLAYER_NAME],str[256],text[256];
  6155. if(PlayerInfo[playerid][pAdmin] == 1)
  6156. {
  6157. if(sscanf(params,"s[256]",text))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /anunciar [Texto]");
  6158. GetPlayerName(playerid,Name,sizeof(Name));
  6159. format(str,sizeof(str),"~r~%s",text);
  6160. GameTextForAll(str,3500,6);
  6161. }
  6162. return 1;
  6163. }
  6164.  
  6165. CMD:espiar(playerid,params[])
  6166. {
  6167. new targetid;
  6168. if(PlayerInfo[playerid][pAdmin] == 1)
  6169. {
  6170. if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /espiar ID");
  6171. Spectating[playerid] = 1;
  6172. new Float:x,Float:y,Float:z;
  6173. GetPlayerPos(playerid,x,y,z);
  6174. SetPVarFloat(playerid,"xpos",x); // save X POS
  6175. SetPVarFloat(playerid,"ypos",y); // save Y POS
  6176. SetPVarFloat(playerid,"zpos",z); // save Z POS
  6177. TogglePlayerSpectating(targetid,1);
  6178. PlayerSpectatePlayer(playerid,targetid);
  6179. }
  6180. return 1;
  6181. }
  6182.  
  6183. CMD:pararespiar(playerid,params[])
  6184. {
  6185. if(PlayerInfo[playerid][pAdmin] == 1)
  6186. {
  6187. if(Spectating[playerid] == 0)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] Você não esta espiando ninguem!");
  6188. Spectating[playerid] = 0;
  6189. TogglePlayerSpectating(playerid,0);
  6190. SetPlayerPos(playerid,GetPVarFloat(playerid,"xpos"),GetPVarFloat(playerid,"ypos"),GetPVarFloat(playerid,"zpos"));
  6191. }
  6192. return 1;
  6193. }
  6194.  
  6195. CMD:a(playerid,params[])
  6196. {
  6197. new text[256],str[256],Name[MAX_PLAYER_NAME];
  6198. if(PlayerInfo[playerid][pAdmin] == 1)
  6199. {
  6200. if(sscanf(params,"s[256]",text))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /a [Texto]");
  6201. GetPlayerName(playerid,Name,sizeof(Name));
  6202. format(str,sizeof(str),"* Admin %s[%d]: %s",Name,playerid,text);
  6203. for(new i=0; i<MAX_PLAYERS; i++)
  6204. {
  6205. if(PlayerInfo[i][pAdmin] == 1)
  6206. {
  6207. SendClientMessage(i,0x0080FFAA,str);
  6208. }
  6209. }
  6210. }
  6211. return 1;
  6212. }
  6213.  
  6214. CMD:kick(playerid,params[])
  6215. {
  6216. new targetid,Name[MAX_PLAYER_NAME],Name2[MAX_PLAYER_NAME],reason[256],str[256];
  6217. if(PlayerInfo[playerid][pAdmin] == 1)
  6218. {
  6219. if(sscanf(params,"us[256]",targetid,reason))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /kick ID [Motivo]");
  6220. GetPlayerName(playerid,Name,sizeof(Name));
  6221. GetPlayerName(targetid,Name2,sizeof(Name2));
  6222. format(str,sizeof(str),"Admin %s[%d] Kickou o Jogador %s[%d] Motivo :%s",Name,playerid,Name2,targetid,reason);
  6223. SendClientMessageToAll(COLOR_BRIGHTRED,str);
  6224. Kick(targetid);
  6225. }
  6226. return 1;
  6227. }
  6228.  
  6229. CMD:infoplayer(playerid,params[])
  6230. {
  6231. new str[256],Name[MAX_PLAYER_NAME],targetid,ip[164];
  6232. if(PlayerInfo[playerid][pAdmin] == 1)
  6233. {
  6234. if(sscanf(params,"u",targetid))return SendClientMessage(playerid,COLOR_BRIGHTRED,"[INFO] Use /InfoPlayer ID");
  6235. if(targetid == INVALID_PLAYER_ID)return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERRO] ID Invalido");
  6236. GetPlayerName(targetid,Name,sizeof(Name));
  6237. GetPlayerIp(playerid,ip,sizeof(ip));
  6238. 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);
  6239. SendClientMessage(playerid,LARANJA,str);
  6240. }
  6241. return 1;
  6242. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement