Advertisement
Chip7

[GM] GameMode Simples Guerra de Facções vs Cop's v0.2

Oct 31st, 2012
2,249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 120.64 KB | None | 0 0
  1. /*VISITE NOSSO SITE: http://www.sampknd.com/
  2.   VISITE NOSSO FACEBOOK: http://www.facebook.com/SampKnd
  3.   SAMP KND MELHOR BLOG DE SAMP DO BRASIL
  4. */  
  5.                            
  6. //Includes
  7. #include <a_samp>
  8. #include <zcmd>
  9. #include <streamer>
  10. //Numero de cada org
  11. #define CV 1
  12. #define PCC 2
  13. #define ADA 3
  14. #define TCP 4
  15. #define COP 5
  16. //Coordenadas Territorios
  17. #define MORRO 2117.333, -1069.962, 2261.841, -959.4252
  18. #define QUADRA 2212.0024, -1487.6130, 2340.5911, -1382.3148
  19. #define PARQUE 1866.346, -1259.454, 2052.685, -1137.074
  20. #define RIACHO 706.481, -1591.064, 782.5377, -1417.363
  21. #define INDUSTRIA 2105.925, -2297.709, 2315.081, -2092.427
  22. #define AEROPORTO 1368.174, -2380.612, 1592.542, -2218.755
  23. #define CASARAO 1098.173, -2084.531, 1299.723, -2005.577
  24. #define ESTACAO 1687.613, -1958.204, 1813.106, -1859.51
  25. #define FAVELA 2398.743, -1077.857, 2588.885, -916.0001
  26. #define PISTA 1858.74, -1452.893, 1976.628, -1354.199
  27. #define ESTADIO 2637.148437, -1888.911621, 2829.148437, -1656.911621
  28. #define TERRENO 1195.086914, -1289.666992, 1339.086914, -1153.666992
  29. #define PIER 338.122528, -2093.307128, 410.122528, -1917.307128
  30. #define FAZENDINHA 988.868652, -407.460083, 1084.868652, -279.460083
  31. #define DOCAS 2666.996337, -2574.054443, 2802.996337, -2326.054443
  32. #define LINHA 1998.128662, -676.726684, 2150.128662, -524.726684
  33. #define MANSAO 227.422027, -1225.652099, 371.422027, -1113.652099
  34. #define RURAL 429.011718, -862.343750, 589.011718, -710.343750
  35. //Coordenadas dos Equipar
  36. #define EQUIPCV 619.4691,-1631.1891,16.6680
  37. #define EQUIPPCC 1017.6931,-1100.8049,23.8349
  38. #define EQUIPADA 1674.1227,-2121.7297,14.1460
  39. #define EQUIPTCP 2610.2988,-2149.8779,-0.1922
  40. #define EQUIPCOPS 1579.8540,-1635.2819,13.5610
  41. //Dialogs
  42. #define DIALOG_SUICIDIO 1
  43. #define DIALOG_CREDITOS 2
  44. #define DIALOG_AJUDA 3
  45. #define DIALOG_RANK 4
  46. #define DIALOG_EQUIPAR 5
  47. #define DIALOG_EFEITOS 6
  48. #define DIALOG_BARRACA1 7
  49. #define DIALOG_BARRACA2 8
  50. #define DIALOG_BARRACA3 9
  51. //Cores Usadas
  52. #define COR_CV 0xAA333399
  53. #define COR_PCC 0x00669999
  54. #define COR_ADA 0xFF830099
  55. #define COR_TCP 0x33AA3399
  56. #define COR_COP 0x807FFE99
  57. #define COR_MSG 0xA2B5CD99
  58. #define COR_MSG2 0x00BFFF99
  59. #define COR_TR 0xFFCCFF99
  60. #define COR_3D 0xFF000099
  61. #define COR_EQUIPAR 0x00BFFF99
  62. #define COR_LOJA 0x00F6F699
  63. //Facções BR
  64. static gTeam[MAX_PLAYERS];
  65. //New's do total acumulado
  66. new CvAcumulado[MAX_PLAYERS];
  67. new PccAcumulado[MAX_PLAYERS];
  68. new AdaAcumulado[MAX_PLAYERS];
  69. new TcpAcumulado[MAX_PLAYERS];
  70. new CopAcumulado[MAX_PLAYERS];
  71. //New's do ganhando
  72. new CvGanhando[MAX_PLAYERS];
  73. new PccGanhando[MAX_PLAYERS];
  74. new AdaGanhando[MAX_PLAYERS];
  75. new TcpGanhando[MAX_PLAYERS];
  76. new CopGanhando[MAX_PLAYERS];
  77. //New's do perdendo
  78. new CvPerdendo[MAX_PLAYERS];
  79. new AdaPerdendo[MAX_PLAYERS];
  80. new PccPerdendo[MAX_PLAYERS];
  81. new TcpPerdendo[MAX_PLAYERS];
  82. new CopPerdendo[MAX_PLAYERS];
  83. new Resultado[128];
  84. new playernome[MAX_PLAYER_NAME];
  85. new TextoString[128];
  86. //TextDrawns
  87. new Text:ForumiPs;
  88. //Tomando Territorio
  89. new morroterritorio;
  90. new quadraterritorio;
  91. new parqueterritorio;
  92. new riachoterritorio;
  93. new industriaterritorio;
  94. new aeroportoterritorio;
  95. new casaraoterritorio;
  96. new estacaoterritorio;
  97. new favelaterritorio;
  98. new pistaterritorio;
  99. new estadioterritorio;
  100. new terrenoterritorio;
  101. new pierterritorio;
  102. new fazendinhaterritorio;
  103. new docasterritorio;
  104. new linhaterritorio;
  105. new mansaoterritorio;
  106. new ruralterritorio;
  107. new morrodono[120];
  108. new quadradono[120];
  109. new parquedono[120];
  110. new riachodono[120];
  111. new industriadono[120];
  112. new aeroportodono[120];
  113. new casaraodono[120];
  114. new estacaodono[120];
  115. new faveladono[120];
  116. new pistadono[120];
  117. new estadiodono[120];
  118. new terrenodono[120];
  119. new pierdono[120];
  120. new fazendinhadono[120];
  121. new docasdono[120];
  122. new linhadono[120];
  123. new mansaodono[120];
  124. new ruraldono[120];
  125. forward tomandogz(playerid);
  126. forward cvtomou(playerid);
  127. forward pcctomou(playerid);
  128. forward adatomou(playerid);
  129. forward tcptomou(playerid);
  130. forward coptomou(playerid);
  131. forward AnuncioRandamonico();
  132. new Anuncios[4][256] =
  133. {
  134.     "|AVISOS| --:> Vistem iPs-team.forumeiros.com.",
  135.     "|AVISOS| --:> GameMode em desenvolvimento fiquem atentos as atualizações.",
  136.     "|AVISOS| --:> Não retire os creditos do GM.",
  137.     "|AVISOS| --:> Tom Sem Ideia Para Anuncios kkkkkkkkkkkkkkkkkkkkkkk."
  138. };
  139.  
  140. new CoresAnuncios[] =
  141. {
  142.     COR_CV,
  143.     COR_ADA,
  144.     COR_PCC,
  145.     COR_COP,
  146.     COR_TCP,
  147.     COR_MSG,
  148.     COR_MSG2,
  149.     COR_TR,
  150.     COR_3D,
  151.     COR_EQUIPAR
  152. };
  153.  
  154. main()
  155. {
  156.     print("\n");
  157.     print("::::::::::::::::::::::::::::::::::");
  158.     print(":                                :");
  159.     print(":          GameMode Base         :");
  160.     print(":                                :");
  161.     print(":      Feito Por BrunoTadeu      :");
  162.     print(":                                :");
  163.     print("::::::::::::::::::::::::::::::::::");
  164.     print("\n");
  165. }
  166. public OnPlayerConnect(playerid)
  167. {
  168.     TextDrawShowForPlayer(playerid, ForumiPs);
  169.     GangZoneShowForPlayer(playerid, morroterritorio, COR_TR);
  170.     GangZoneShowForPlayer(playerid, quadraterritorio, COR_TR);
  171.     GangZoneShowForPlayer(playerid, parqueterritorio, COR_TR);
  172.     GangZoneShowForPlayer(playerid, riachoterritorio, COR_TR);
  173.     GangZoneShowForPlayer(playerid, industriaterritorio, COR_TR);
  174.     GangZoneShowForPlayer(playerid, aeroportoterritorio, COR_TR);
  175.     GangZoneShowForPlayer(playerid, casaraoterritorio, COR_TR);
  176.     GangZoneShowForPlayer(playerid, estacaoterritorio, COR_TR);
  177.     GangZoneShowForPlayer(playerid, favelaterritorio, COR_TR);
  178.     GangZoneShowForPlayer(playerid, pistaterritorio, COR_TR);
  179.     GangZoneShowForPlayer(playerid, estadioterritorio, COR_TR);
  180.     GangZoneShowForPlayer(playerid, terrenoterritorio, COR_TR);
  181.     GangZoneShowForPlayer(playerid, pierterritorio, COR_TR);
  182.     GangZoneShowForPlayer(playerid, fazendinhaterritorio, COR_TR);
  183.     GangZoneShowForPlayer(playerid, docasterritorio, COR_TR);
  184.     GangZoneShowForPlayer(playerid, linhaterritorio, COR_TR);
  185.     GangZoneShowForPlayer(playerid, mansaoterritorio, COR_TR);
  186.     GangZoneShowForPlayer(playerid, ruralterritorio, COR_TR);
  187.     GetPlayerName(playerid, playernome, sizeof(playernome));
  188.     format(TextoString, sizeof(TextoString), "%s Entrou no Servidor!", playernome);
  189.     SendClientMessageToAll(COR_MSG, TextoString);
  190.     return 1;
  191. }
  192. public OnPlayerDisconnect(playerid)
  193. {
  194.     TextDrawShowForPlayer(playerid, ForumiPs);
  195.     GetPlayerName(playerid, playernome, sizeof(playernome));
  196.     format(TextoString, sizeof(TextoString), "%s Saiu do Servidor! ", playernome);
  197.     SendClientMessageToAll(COR_CV, TextoString);
  198.     return 1;
  199. }
  200. public OnPlayerSpawn(playerid)
  201. {
  202.     GivePlayerMoney(playerid, 50000);
  203.     if(gTeam[playerid] == CV)
  204.     {
  205.       SetPlayerInterior(playerid,0);
  206.       SetPlayerColor(playerid, COR_CV);
  207.       SetPlayerPos(playerid, 620.2620,-1630.9288,16.6196);
  208.       SetPlayerHealth(playerid, 50);
  209.     }
  210.     if(gTeam[playerid] == PCC)
  211.     {
  212.       SetPlayerInterior(playerid,0);
  213.       SetPlayerColor(playerid, COR_PCC);
  214.       SetPlayerPos(playerid, 1000.9489,-1102.6538,23.8281);
  215.       SetPlayerHealth(playerid, 50);
  216.     }
  217.     if(gTeam[playerid] == ADA)
  218.     {
  219.       SetPlayerInterior(playerid,0);
  220.       SetPlayerColor(playerid, COR_ADA);
  221.       SetPlayerPos(playerid, 1675.9711,-2120.0515,13.5469);
  222.       SetPlayerHealth(playerid, 50);
  223.     }
  224.     if(gTeam[playerid] == TCP)
  225.     {
  226.       SetPlayerInterior(playerid,0);
  227.       SetPlayerColor(playerid, COR_TCP);
  228.       SetPlayerPos(playerid, 2586.1199,-2161.5107,-0.2188);
  229.       SetPlayerHealth(playerid, 50);
  230.     }
  231.     if(gTeam[playerid] == COP)
  232.     {
  233.       SetPlayerInterior(playerid,0);
  234.       SetPlayerColor(playerid, COR_COP);
  235.       SetPlayerPos(playerid, 1579.5371,-1635.9513,13.5602);
  236.       SetPlayerHealth(playerid, 50);
  237.     }
  238.     return 1;
  239. }
  240. CMD:tomarterritorio(playerid, params[])
  241. {
  242.     if(PlayerNoTerritorio(playerid,MORRO) || PlayerNoTerritorio(playerid,QUADRA) || PlayerNoTerritorio(playerid,PARQUE) || PlayerNoTerritorio(playerid,RIACHO) || PlayerNoTerritorio(playerid,INDUSTRIA) || PlayerNoTerritorio(playerid,AEROPORTO) ||
  243.     PlayerNoTerritorio(playerid,CASARAO) || PlayerNoTerritorio(playerid,ESTACAO) || PlayerNoTerritorio(playerid,FAVELA) || PlayerNoTerritorio(playerid,PISTA) || PlayerNoTerritorio(playerid,ESTADIO) || PlayerNoTerritorio(playerid,TERRENO) ||
  244.     PlayerNoTerritorio(playerid,PIER) || PlayerNoTerritorio(playerid,FAZENDINHA) || PlayerNoTerritorio(playerid,DOCAS) || PlayerNoTerritorio(playerid,LINHA) || PlayerNoTerritorio(playerid,MANSAO) || PlayerNoTerritorio(playerid,RURAL))
  245.     {
  246.         if(gTeam[playerid] == CV || gTeam[playerid] == PCC || gTeam[playerid] == ADA || gTeam[playerid] == TCP || gTeam[playerid] == COP)
  247.         {
  248.             SendClientMessage(playerid, COR_MSG,"Você deve ficar na área por 30 segundos, os cops e as outras facções já foram avisados! Cuidado!");
  249.             SetTimerEx("tomandogz", 1000, 0,"e",playerid);
  250.             return 1;
  251.         }
  252.     }
  253.     return SendClientMessage(playerid, COR_MSG,"Você não está em um território");
  254. }
  255. CMD:suicidar(playerid, params[])
  256. {
  257.     ShowPlayerDialog(playerid, DIALOG_SUICIDIO, DIALOG_STYLE_MSGBOX, "Suicidio","Você Acaba De Se Matar", "Fechar", "");
  258.     SetPlayerHealth(playerid, 0);
  259.     return 1;
  260. }
  261. CMD:creditos(playerid, params[])
  262. {
  263.     ShowPlayerDialog(playerid, DIALOG_CREDITOS, DIALOG_STYLE_MSGBOX, "Creditos","GameMode Criador Por:\n\n[iPs]BrunoBernardo (Bruno Tadeu)\n\nPor Favor Nao Retire Os Creditos", "Fechar", "");
  264.     return 1;
  265. }
  266. CMD:ajuda(playerid, params[])
  267. {
  268.     ShowPlayerDialog(playerid, DIALOG_AJUDA, DIALOG_STYLE_MSGBOX, "Ajuda","/creditos\n\n/rank\n\n/suicidar", "Fechar", "");
  269.     return 1;
  270. }
  271. CMD:rank(playerid, params[])
  272. {
  273.     new Ranks[500];
  274.     format(Ranks, sizeof(Ranks), "%s\nO Comando Vermelho Matou %d Pessoas - Morreu %d Vezes. TOTAL: %d\n", Ranks, CvGanhando, CvPerdendo, CvAcumulado);
  275.     format(Ranks, sizeof(Ranks), "%s\nO PCC Matou %d Pessoas - Morreu %d Vezes. TOTAL: %d\n", Ranks, PccGanhando, PccPerdendo, PccAcumulado);
  276.     format(Ranks, sizeof(Ranks), "%s\nO ADA Matou %d Pessoas - Morreu %d Vezes. TOTAL: %d\n", Ranks, AdaGanhando, AdaPerdendo, AdaAcumulado);
  277.     format(Ranks, sizeof(Ranks), "%s\nO TCP Matou %d Pessoas - Morreu %d Vezes. TOTAL: %d\n",Ranks, TcpGanhando, TcpPerdendo, TcpAcumulado);
  278.     format(Ranks, sizeof(Ranks), "%s\nOs COP'S Matou %d Pessoas - Morreu %d Vezes. TOTAL: %d\n",Ranks,CopGanhando, CopPerdendo, CopAcumulado);
  279.     ShowPlayerDialog(playerid, DIALOG_RANK, DIALOG_STYLE_MSGBOX, "Rank", Ranks, "Fechar", " ");
  280.     return 1;
  281. }
  282. CMD:pegarmeusequipamentos(playerid, params[])
  283. {
  284.     if(IsPlayerInRangeOfPoint(playerid, 3.0, EQUIPCV) || IsPlayerInRangeOfPoint(playerid, 3.0, EQUIPPCC) || IsPlayerInRangeOfPoint(playerid, 3.0, EQUIPADA)
  285.     || IsPlayerInRangeOfPoint(playerid, 3.0, EQUIPTCP) || IsPlayerInRangeOfPoint(playerid, 3.0, EQUIPCOPS))
  286.     {
  287.         ShowPlayerDialog(playerid, DIALOG_EQUIPAR, DIALOG_STYLE_LIST, "Equipamentos","Pegar Kit 1\nPegar Kit 2\nPegar Kit 3", "Selecionar", "Cancelar");
  288.     }
  289.     return 1;
  290. }
  291. CMD:efeitos(playerid, params[])
  292. {
  293.     ShowPlayerDialog(playerid, DIALOG_EFEITOS, DIALOG_STYLE_LIST, "Efeitos", "Fogo\nExplosao Aquatica\nNeve\nPedras\nCaveira\nColete\nFumaca\nToca de Natal\nCaveira e Fogo\nColete e Fumaca\nPedras e Explosao Aquatica\nToca de Natal e Neve\nNenhum Efeito", "Selecionar", "Cancelar");
  294.     return 1;
  295. }
  296. CMD:lojasorvete(playerid, params[])
  297. {
  298.     if(IsPlayerInRangeOfPoint(playerid, 3.0, 1863.6661,-1396.4680,13.4797))
  299.     {
  300.         ShowPlayerDialog(playerid, DIALOG_BARRACA1, DIALOG_STYLE_LIST, "Sorveteria Que Delicia", "Sorvete de Palito ----> {00FF00}R$ 10,00\nSorvete de Copinho ----> {00FF00} R$ 15,00\nSorvete de Casquinha ----> {00FF00} R$ 20,00\nSorvete na Taça ----> {00FF00} R$ 8,00\nÁgua com Gás ----> {00FF00} R$ 5,00\nRefrigerante ----> {00FF00} R$ 5,00", "Comprar", "Sair");
  301.     }
  302. }
  303. CMD:lojahotdog(playerid, params[])
  304. {
  305.     if(IsPlayerInRangeOfPoint(playerid, 3.0, 2151.8064,-1013.4453,62.7985))
  306.     {
  307.         ShowPlayerDialog(playerid, DIALOG_BARRACA2, DIALOG_STYLE_LIST, "HotDog Meu Deus", "HotDog Comum ----> {00FF00}R$ 20,00\nHotDog Com Duas Salsichas ----> {00FF00} R$ 25,00\nHotDog Completo ----> {00FF00} R$ 30,00\nPromoção Leve 2 Pague 1 ----> {00FF00} R$ 20,00", "Comprar", "Sair");
  308.     }
  309. }
  310. CMD:lojahamburguer(playerid, params[])
  311. {
  312.     if(IsPlayerInRangeOfPoint(playerid, 3.0, 2266.3564,-1431.9099,24.0000))
  313.     {
  314.         ShowPlayerDialog(playerid, DIALOG_BARRACA3, DIALOG_STYLE_LIST, "Hamburguer do Juarez", "Hamburguer Simples ----> {00FF00}R$ 40,00\nX Bacon ----> {00FF00} R$ 45,00\nEGG X Salada ----> {00FF00} R$ 50,00\nX Tudo ----> {00FF00} R$ 60,00", "Comprar", "Sair");
  315.     }
  316. }
  317. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  318. {
  319.     if(dialogid == DIALOG_EQUIPAR)
  320.     {
  321.         if(response)
  322.         {
  323.             if(listitem == 0)
  324.             {
  325.                 ResetPlayerWeapons(playerid);
  326.                 GivePlayerWeapon(playerid, 1, 100);
  327.                 GivePlayerWeapon(playerid, 24, 100);
  328.                 GivePlayerWeapon(playerid, 6, 100);
  329.                 SetPlayerHealth(playerid, 100);
  330.                 SetPlayerArmour(playerid, 50);
  331.                 GetPlayerName(playerid, playernome, sizeof (playernome));
  332.                 format(TextoString, sizeof(TextoString), "|| %s » Se equipou com o Kit 1.", playernome);
  333.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  334.                 GameTextForPlayer(playerid,"~g~Equipado Com Sucesso", 5000, 1);
  335.             }
  336.             if(listitem == 1)
  337.             {
  338.                 ResetPlayerWeapons(playerid);
  339.                 GivePlayerWeapon(playerid, 1, 100);
  340.                 GivePlayerWeapon(playerid, 24, 100);
  341.                 GivePlayerWeapon(playerid, 6, 100);
  342.                 GivePlayerWeapon(playerid, 29, 100);
  343.                 GivePlayerWeapon(playerid, 25, 100);
  344.                 GivePlayerWeapon(playerid, 18, 10);
  345.                 SetPlayerHealth(playerid, 100);
  346.                 SetPlayerArmour(playerid, 80);
  347.                 GetPlayerName(playerid, playernome, sizeof (playernome));
  348.                 format(TextoString, sizeof(TextoString), "|| %s » Se equipou com o Kit 2.", playernome);
  349.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  350.                 GameTextForPlayer(playerid,"~g~Equipado Com Sucesso", 5000, 1);
  351.             }
  352.             if(listitem == 2)
  353.             {
  354.                 ResetPlayerWeapons(playerid);
  355.                 GivePlayerWeapon(playerid, 1, 100);
  356.                 GivePlayerWeapon(playerid, 24, 100);
  357.                 GivePlayerWeapon(playerid, 6, 100);
  358.                 GivePlayerWeapon(playerid, 18, 10);
  359.                 GivePlayerWeapon(playerid, 29, 100);
  360.                 GivePlayerWeapon(playerid, 25, 100);
  361.                 GivePlayerWeapon(playerid, 30, 100);
  362.                 GivePlayerWeapon(playerid, 34, 100);
  363.                 SetPlayerHealth(playerid, 100);
  364.                 SetPlayerArmour(playerid, 100);
  365.                 GetPlayerName(playerid, playernome, sizeof (playernome));
  366.                 format(TextoString, sizeof(TextoString), "|| %s » Se equipou com o Kit 3.", playernome);
  367.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  368.                 GameTextForPlayer(playerid,"~g~Equipado Com Sucesso", 5000, 1);
  369.             }
  370.         }
  371.         return 1;
  372.     }
  373.     if(dialogid == DIALOG_EFEITOS)
  374.     {
  375.         if(response)
  376.         {
  377.             if(listitem == 0)
  378.             {
  379.                 SetPlayerAttachedObject(playerid,1,18688,1,-0.895839,0.631365,-1.828601,21.642332,7.385670,13.958697,1.232679,1.000000,1.090367); // fire - Bruno
  380.                 SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
  381.             }
  382.             if(listitem == 1)
  383.             {
  384.                 SetPlayerAttachedObject(playerid,1,18742,1,0.036487,-1.759890,1.772809,225.616638,1.132580,0.677276,1.000000,1.000000,1.000000); // water_speed - explosaoaquatica
  385.                 SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
  386.             }
  387.             if(listitem == 2)
  388.             {
  389.                 SetPlayerAttachedObject(playerid,1,18864,1,2.178843,0.000000,0.000000,0.000000,0.000000,0.000000,1.000000,1.000000,1.000000); // FakeSnow1 - neve
  390.                 SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
  391.             }
  392.             if(listitem == 3)
  393.             {
  394.                 SetPlayerAttachedObject(playerid,1,867,1,-0.213616,-0.444311,0.070721,0.000000,0.000000,0.000000,1.000000,1.000000,1.000000); // p_rubble04col - pedras
  395.                 SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
  396.             }
  397.             if(listitem == 4)
  398.             {
  399.                 SetPlayerAttachedObject(playerid,1,1254,1,0.448984,0.065604,0.006619,4.313228,89.284942,0.000000,1.000000,1.000000,1.000000); // killfrenzy - caveira
  400.                 SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
  401.             }
  402.             if(listitem == 5)
  403.             {
  404.                 SetPlayerAttachedObject(playerid,1,1242,1,0.090351,0.088730,-0.000036,0.000000,89.157951,0.000000,1.619548,1.000000,1.348966); // bodyarmour - colete
  405.                 SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
  406.             }
  407.             if(listitem == 6)
  408.             {
  409.                 SetPlayerAttachedObject(playerid,1,18735,1,0.000000,-0.479024,-1.590823,0.000000,0.000000,0.000000,13.498819,1.000000,0.678294); // vent2 - fumaçao
  410.                 SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
  411.             }
  412.             if(listitem == 7)
  413.             {
  414.                 SetPlayerAttachedObject(playerid,1,19065,15,-0.025,-0.04,0.23,0,0,270,2,2,2); // Toca de Natal
  415.                 SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
  416.             }
  417.             if(listitem == 8)
  418.             {
  419.                 SetPlayerAttachedObject(playerid,1,18688,1,-0.895839,0.631365,-1.828601,21.642332,7.385670,13.958697,1.232679,1.000000,1.090367); // fire - Bruno
  420.                 SetPlayerAttachedObject(playerid,2,1254,1,0.448984,0.065604,0.006619,4.313228,89.284942,0.000000,1.000000,1.000000,1.000000); // killfrenzy - caveira
  421.                 SendClientMessage(playerid,COR_CV,"Efeitos Ativados Com Sucesso!");
  422.             }
  423.             if(listitem == 9)
  424.             {
  425.                 SetPlayerAttachedObject(playerid,1,1242,1,0.090351,0.088730,-0.000036,0.000000,89.157951,0.000000,1.619548,1.000000,1.348966); // bodyarmour - colete
  426.                 SetPlayerAttachedObject(playerid,2,18735,1,0.000000,-0.479024,-1.590823,0.000000,0.000000,0.000000,13.498819,1.000000,0.678294); // vent2 - fumaçao
  427.                 SendClientMessage(playerid,COR_CV,"Efeitos Ativados Com Sucesso!");
  428.             }
  429.             if(listitem == 10)
  430.             {
  431.                 SetPlayerAttachedObject(playerid,1,867,1,-0.213616,-0.444311,0.070721,0.000000,0.000000,0.000000,1.000000,1.000000,1.000000); // p_rubble04col - pedras
  432.                 SetPlayerAttachedObject(playerid,2,18742,1,0.036487,-1.759890,1.772809,225.616638,1.132580,0.677276,1.000000,1.000000,1.000000); // water_speed - explosaoaquatica
  433.                 SendClientMessage(playerid,COR_CV,"Efeitos Ativados Com Sucesso!");
  434.             }
  435.             if(listitem == 11)
  436.             {
  437.                 SetPlayerAttachedObject(playerid,1,19065,15,-0.025,-0.04,0.23,0,0,270,2,2,2); // Toca de Natal
  438.                 SetPlayerAttachedObject(playerid,2,18864,1,2.178843,0.000000,0.000000,0.000000,0.000000,0.000000,1.000000,1.000000,1.000000); // FakeSnow1 - neve
  439.                 SendClientMessage(playerid,COR_CV,"Efeitos Ativados Com Sucesso!");
  440.             }
  441.             if(listitem == 12)
  442.             {
  443.                 RemovePlayerAttachedObject(playerid,1); // Remoçao dos Efeitos
  444.                 RemovePlayerAttachedObject(playerid,2); // Remoçao dos Efeitos2
  445.                 SendClientMessage(playerid,COR_CV,"Efeito(s) Removido(s) Com Sucesso!");
  446.             }
  447.         }
  448.         return 1;
  449.     }
  450.     if(dialogid == DIALOG_BARRACA1)
  451.     {
  452.         new Float:vida;
  453.         GetPlayerName(playerid, playernome, sizeof(playernome));
  454.         GetPlayerHealth(playerid, vida);
  455.         if(!response) return 1;
  456.         if (GetPlayerMoney(playerid) <= 0)
  457.         {
  458.             GameTextForPlayer(playerid, "~r~Você não possui dinheiro suficiente", 5000, 1);
  459.             return 1;
  460.         }
  461.         if(response)
  462.         {
  463.             if(listitem == 0)
  464.             {
  465.                 format(TextoString, sizeof(TextoString), "|Lanches| %s está tomando um sorvete de palito.", playernome);
  466.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  467.                 GivePlayerMoney(playerid, -10);
  468.                 SetPlayerHealth(playerid, vida + 20);
  469.             }
  470.             if(listitem == 1)
  471.             {
  472.                 format(TextoString, sizeof(TextoString), "|Lanches| %s está tomando um sorvete de copinho.", playernome);
  473.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  474.                 GivePlayerMoney(playerid, -15);
  475.                 SetPlayerHealth(playerid, vida + 50);
  476.             }
  477.             if(listitem == 2)
  478.             {
  479.                 format(TextoString, sizeof(TextoString), "|Lanches| %s  está tomando um sorvete de casquinha.", playernome);
  480.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  481.                 GivePlayerMoney(playerid, -20);
  482.                 SetPlayerHealth(playerid, vida + 80);
  483.             }
  484.             if(listitem == 3)
  485.             {
  486.                 format(TextoString, sizeof(TextoString), "|Lanches| %s  está tomando um sorvete na taça.", playernome);
  487.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  488.                 GivePlayerMoney(playerid, -8);
  489.                 SetPlayerHealth(playerid, vida + 35);
  490.             }
  491.             if(listitem == 4)
  492.             {
  493.                 format(TextoString, sizeof(TextoString), "|Lanches| %s  está bebendo uma água com gás.", playernome);
  494.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  495.                 GivePlayerMoney(playerid, -5);
  496.                 SetPlayerHealth(playerid, vida + 25);
  497.                 ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
  498.             }
  499.             if(listitem == 5)
  500.             {
  501.                 format(TextoString, sizeof(TextoString), "|Lanches| %s está bebendo um refrigerante.", playernome);
  502.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  503.                 GivePlayerMoney(playerid, -5);
  504.                 SetPlayerHealth(playerid, vida + 10);
  505.                 ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
  506.             }
  507.             return 1;
  508.         }
  509.         return 1;
  510.     }
  511.     if(dialogid == DIALOG_BARRACA2)
  512.     {
  513.         new Float:vida;
  514.         GetPlayerName(playerid, playernome, sizeof(playernome));
  515.         GetPlayerHealth(playerid, vida);
  516.         if(!response) return 1;
  517.         if (GetPlayerMoney(playerid) <= 0)
  518.         {
  519.             GameTextForPlayer(playerid, "~r~Você não possui dinheiro suficiente", 5000, 1);
  520.             return 1;
  521.         }
  522.         if(response)
  523.         {
  524.             if(listitem == 0)
  525.             {
  526.                 format(TextoString, sizeof(TextoString), "|Lanches| %s está comendo um hotdog comum.", playernome);
  527.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  528.                 GivePlayerMoney(playerid, -20);
  529.                 SetPlayerHealth(playerid, vida + 30);
  530.             }
  531.             if(listitem == 1)
  532.             {
  533.                 format(TextoString, sizeof(TextoString), "|Lanches| %s está comendo um hotdog de 2 salsichas.", playernome);
  534.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  535.                 GivePlayerMoney(playerid, -25);
  536.                 SetPlayerHealth(playerid, vida + 40);
  537.             }
  538.             if(listitem == 2)
  539.             {
  540.                 format(TextoString, sizeof(TextoString), "|Lanches| %s  está comendo um hotdog completo.", playernome);
  541.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  542.                 GivePlayerMoney(playerid, -30);
  543.                 SetPlayerHealth(playerid, vida + 90);
  544.             }
  545.             if(listitem == 3)
  546.             {
  547.                 format(TextoString, sizeof(TextoString), "|Lanches| %s  está comendo uma promoção.", playernome);
  548.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  549.                 GivePlayerMoney(playerid, -20);
  550.                 SetPlayerHealth(playerid, vida + 40);
  551.             }
  552.             return 1;
  553.         }
  554.         return 1;
  555.     }
  556.     if(dialogid == DIALOG_BARRACA3)
  557.     {
  558.         new Float:vida;
  559.         GetPlayerName(playerid, playernome, sizeof(playernome));
  560.         GetPlayerHealth(playerid, vida);
  561.         if(!response) return 1;
  562.         if (GetPlayerMoney(playerid) <= 0)
  563.         {
  564.             GameTextForPlayer(playerid, "~r~Você não possui dinheiro suficiente", 5000, 1);
  565.             return 1;
  566.         }
  567.         if(response)
  568.         {
  569.             if(listitem == 0)
  570.             {
  571.                 format(TextoString, sizeof(TextoString), "|Lanches| %s está comendo um hamburguer simples.", playernome);
  572.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  573.                 GivePlayerMoney(playerid, -40);
  574.                 SetPlayerHealth(playerid, vida + 40);
  575.             }
  576.             if(listitem == 1)
  577.             {
  578.                 format(TextoString, sizeof(TextoString), "|Lanches| %s está comendo um x bacon.", playernome);
  579.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  580.                 GivePlayerMoney(playerid, -45);
  581.                 SetPlayerHealth(playerid, vida + 50);
  582.             }
  583.             if(listitem == 2)
  584.             {
  585.                 format(TextoString, sizeof(TextoString), "|Lanches| %s  está comendo um egg x salada.", playernome);
  586.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  587.                 GivePlayerMoney(playerid, -50);
  588.                 SetPlayerHealth(playerid, vida + 60);
  589.             }
  590.             if(listitem == 3)
  591.             {
  592.                 format(TextoString, sizeof(TextoString), "|Lanches| %s  está comendo um x tudo.", playernome);
  593.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  594.                 GivePlayerMoney(playerid, -60);
  595.                 SetPlayerHealth(playerid, vida + 80);
  596.             }
  597.             return 1;
  598.         }
  599.         return 1;
  600.     }
  601.     return 1;
  602. }
  603. public OnPlayerDeath(playerid, killerid, reason)
  604. {
  605.     if(playerid != INVALID_PLAYER_ID) SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
  606.     if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
  607.     SendDeathMessage(killerid, playerid, reason);
  608.     if(gTeam[playerid] == CV)
  609.     {
  610.       CvAcumulado[playerid] --;
  611.       CvPerdendo[playerid] ++;
  612.       GetPlayerName(playerid, playernome, sizeof (playernome));
  613.       format(Resultado, sizeof(Resultado), "%s Morreu é Perdeu 1 Ponto Para os Comando Vermelho.", playernome);
  614.       SendClientMessageToAll(COR_CV, Resultado);
  615.     }
  616.     if(gTeam[killerid] == CV)
  617.     {
  618.       CvAcumulado[playerid] ++;
  619.       CvGanhando[playerid] ++;
  620.       GetPlayerName(killerid, playernome, MAX_PLAYER_NAME);
  621.       format(Resultado, sizeof(Resultado), "%s Matou é Ganhou 1 Ponto Para os Comando Vermelho.", playernome);
  622.       SendClientMessageToAll(COR_CV, Resultado);
  623.     }
  624.     if(gTeam[playerid] == PCC)
  625.     {
  626.       PccAcumulado[playerid] --;
  627.       PccPerdendo[playerid] ++;
  628.       GetPlayerName(playerid, playernome, sizeof (playernome));
  629.       format(Resultado, sizeof(Resultado), "%s Morreu é Perdeu 1 Ponto Para os PCC.", playernome);
  630.       SendClientMessageToAll(COR_PCC, Resultado);
  631.     }
  632.     if(gTeam[killerid] == PCC)
  633.     {
  634.       PccAcumulado[playerid] ++;
  635.       PccGanhando[playerid] ++;
  636.       GetPlayerName(killerid, playernome, MAX_PLAYER_NAME);
  637.       format(Resultado, sizeof(Resultado), "%s Matou é Ganhou 1 Ponto Para os PCC.", playernome);
  638.       SendClientMessageToAll(COR_PCC, Resultado);
  639.     }
  640.     if(gTeam[playerid] == ADA)
  641.     {
  642.       AdaAcumulado[playerid] --;
  643.       AdaPerdendo[playerid] ++;
  644.       GetPlayerName(playerid, playernome, sizeof (playernome));
  645.       format(Resultado, sizeof(Resultado), "%s Morreu é Perdeu 1 Ponto Para os ADA.", playernome);
  646.       SendClientMessageToAll(COR_ADA, Resultado);
  647.     }
  648.     if(gTeam[killerid] == ADA)
  649.     {
  650.       AdaAcumulado[playerid] ++;
  651.       AdaGanhando[playerid] ++;
  652.       GetPlayerName(killerid, playernome, MAX_PLAYER_NAME);
  653.       format(Resultado, sizeof(Resultado), "%s Matou é Ganhou 1 Ponto Para os ADA.", playernome);
  654.       SendClientMessageToAll(COR_ADA, Resultado);
  655.     }
  656.     if(gTeam[playerid] == TCP)
  657.     {
  658.       TcpAcumulado[playerid] --;
  659.       TcpPerdendo[playerid] ++;
  660.       GetPlayerName(playerid, playernome, sizeof (playernome));
  661.       format(Resultado, sizeof(Resultado), "%s Morreu é Perdeu 1 Ponto Para os TCP.", playernome);
  662.       SendClientMessageToAll(COR_TCP, Resultado);
  663.     }
  664.     if(gTeam[killerid] == TCP)
  665.     {
  666.       TcpAcumulado[playerid] ++;
  667.       TcpGanhando[playerid] ++;
  668.       GetPlayerName(killerid, playernome, MAX_PLAYER_NAME);
  669.       format(Resultado, sizeof(Resultado), "%s Matou é Ganhou 1 Ponto Para os TCP.", playernome);
  670.       SendClientMessageToAll(COR_TCP, Resultado);
  671.     }
  672.     if(gTeam[playerid] == COP)
  673.     {
  674.       CopAcumulado[playerid] --;
  675.       CopPerdendo[playerid] ++;
  676.       GetPlayerName(playerid, playernome, sizeof (playernome));
  677.       format(Resultado, sizeof(Resultado), "%s Morreu é Perdeu 1 Ponto Para os COP'S.", playernome);
  678.       SendClientMessageToAll(COR_COP, Resultado);
  679.     }
  680.     if(gTeam[killerid] == COP)
  681.     {
  682.       CopAcumulado[playerid] ++;
  683.       CopGanhando[playerid] ++;
  684.       GetPlayerName(killerid, playernome, MAX_PLAYER_NAME);
  685.       format(Resultado, sizeof(Resultado), "%s Matou é Ganhou 1 Ponto Para os COP'S.", playernome);
  686.       SendClientMessageToAll(COR_COP, Resultado);
  687.     }
  688.     return 1;
  689. }
  690. public OnPlayerRequestClass(playerid, classid)
  691. {
  692.     if((classid >= 0) && (classid <= 2))
  693.     {
  694.        gTeam[playerid] = CV;
  695.        GameTextForPlayer(playerid,"~r~Comando Vermelho",5000,1);
  696.        SetPlayerColor(playerid,COR_CV);
  697.     }
  698.     if((classid >= 3) && (classid <= 5))
  699.     {
  700.        gTeam[playerid] = PCC;
  701.        GameTextForPlayer(playerid,"~b~PCC",5000,1);
  702.        SetPlayerColor(playerid,COR_PCC);
  703.     }
  704.     if((classid >= 6) && (classid <= 8))
  705.     {
  706.        gTeam[playerid] = ADA;
  707.        GameTextForPlayer(playerid,"~p~ADA",5000,1);
  708.        SetPlayerColor(playerid,COR_ADA);
  709.     }
  710.     if((classid >= 9) && (classid <= 11))
  711.     {
  712.        gTeam[playerid] = TCP;
  713.        GameTextForPlayer(playerid,"~g~TCP",5000,1);
  714.        SetPlayerColor(playerid,COR_TCP);
  715.     }
  716.     if((classid >= 12) && (classid <= 15))
  717.     {
  718.        gTeam[playerid] = COP;
  719.        GameTextForPlayer(playerid,"~b~COP'S",5000,1);
  720.        SetPlayerColor(playerid,COR_COP);
  721.     }
  722.     SetPlayerInterior(playerid,14);
  723.     SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
  724.     SetPlayerFacingAngle(playerid, 270.0);
  725.     SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
  726.     SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
  727.     return 1;
  728. }
  729. public OnGameModeInit()
  730. {
  731.     SetGameModeText("Guerra Total");
  732.     SetTimer("AnuncioRandamonico",300000,1);
  733.     UsePlayerPedAnims();
  734.     DisableInteriorEnterExits();
  735.     morroterritorio = GangZoneCreate(MORRO);
  736.     quadraterritorio = GangZoneCreate(QUADRA);
  737.     parqueterritorio = GangZoneCreate(PARQUE);
  738.     riachoterritorio = GangZoneCreate(RIACHO);
  739.     industriaterritorio = GangZoneCreate(INDUSTRIA);
  740.     aeroportoterritorio = GangZoneCreate(AEROPORTO);
  741.     casaraoterritorio = GangZoneCreate(CASARAO);
  742.     estacaoterritorio = GangZoneCreate(ESTACAO);
  743.     favelaterritorio = GangZoneCreate(FAVELA);
  744.     pistaterritorio = GangZoneCreate(PISTA);
  745.     estadioterritorio = GangZoneCreate(ESTADIO);
  746.     terrenoterritorio = GangZoneCreate(TERRENO);
  747.     pierterritorio = GangZoneCreate(PIER);
  748.     fazendinhaterritorio = GangZoneCreate(FAZENDINHA);
  749.     docasterritorio = GangZoneCreate(DOCAS);
  750.     linhaterritorio = GangZoneCreate(LINHA);
  751.     mansaoterritorio = GangZoneCreate(MANSAO);
  752.     ruralterritorio = GangZoneCreate(RURAL);
  753.     //TextForum
  754.     ForumiPs = TextDrawCreate(1.000000,437.000000,"            ~w~Visite nosso forum: ~g~[url]www.ips-team.forumeiros.com[/url]    ~w~Versao: 2.0");
  755.     TextDrawTextSize(ForumiPs,641.000000,0.000000);
  756.     TextDrawAlignment(ForumiPs,0);
  757.     TextDrawFont(ForumiPs,3);
  758.     TextDrawLetterSize(ForumiPs,0.399999,1.100000);
  759.     TextDrawColor(ForumiPs,0xffffffff);
  760.     TextDrawSetOutline(ForumiPs,1);
  761.     TextDrawSetProportional(ForumiPs,1);
  762.     TextDrawSetShadow(ForumiPs,1);
  763.     //Equipar
  764.     AddStaticPickup(362, 23, EQUIPCV);
  765.     AddStaticPickup(362, 23, EQUIPPCC);
  766.     AddStaticPickup(362, 23, EQUIPADA);
  767.     AddStaticPickup(362, 23, EQUIPTCP);
  768.     AddStaticPickup(362, 23, EQUIPCOPS);
  769.     //Lanches
  770.     AddStaticPickup(1240, 23, 1863.6661,-1396.4680,13.4797);//Barraca1
  771.     AddStaticPickup(1240, 23, 2151.8064,-1013.4453,62.7985);//Barraca2
  772.     AddStaticPickup(1240, 23, 2266.3564,-1431.9099,24.0000);//Barraca3
  773.     //Textos 3D
  774.     Create3DTextLabel("Para Poder Se Equipar\nAperte 'ALT'",COR_3D,EQUIPCV,10.0,0);
  775.     Create3DTextLabel("Para Poder Se Equipar\nAperte 'ALT'",COR_3D,EQUIPPCC,10.0,0);
  776.     Create3DTextLabel("Para Poder Se Equipar\nAperte 'ALT'",COR_3D,EQUIPADA,10.0,0);
  777.     Create3DTextLabel("Para Poder Se Equipar\nAperte 'ALT'",COR_3D,EQUIPTCP,10.0,0);
  778.     Create3DTextLabel("Para Poder Se Equipar\nAperte 'ALT'",COR_3D,EQUIPCOPS,10.0,0);
  779.     //Lanchinhos
  780.     Create3DTextLabel("Sorveteria{FF0000}\nAperte 'F' Para Comprar",COR_LOJA,1863.6661,-1396.4680,13.4797,20,0);
  781.     Create3DTextLabel("HotDog{FF0000}\nAperte 'F' Para Comprar",COR_LOJA,2151.8064,-1013.4453,62.7985,20,0);
  782.     Create3DTextLabel("Hamburguer{FF0000}\nAperte 'F' Para Comprar",COR_LOJA,2266.3564,-1431.9099,24.0000,20,0);
  783.     //Objetos do TCP
  784.     CreateDynamicObject(11088, 2577.1000976563, -2174.5, 5, 0, 0, 0);
  785.     CreateDynamicObject(3415, 2611.8999023438, -2149.1000976563, -1.2000000476837, 0, 0, 270);
  786.     CreateDynamicObject(16151, 2612.8999023438, -2148.3999023438, -0.89999997615814, 0, 0, 0);
  787.     CreateDynamicObject(1481, 2609.6999511719, -2145.3000488281, -0.60000002384186, 0, 0, 266);
  788.     CreateDynamicObject(3092, 2614, -2143.8999023438, -0.40000000596046, 0, 0, 0);
  789.     CreateDynamicObject(2907, 2609.5, -2145.3000488281, -0.40000000596046, 0, 0, 0);
  790.     CreateDynamicObject(3749, 2581.8000488281, -2111.3000488281, 6.1999998092651, 0, 0, 0);
  791.     //Morro
  792.     CreateDynamicObject(3593, 2186.3828125, -1008.8056640625, 62.360637664795, 0, 0, 54);
  793.     CreateDynamicObject(3593, 2148.4406738281, -1006.7709960938, 61.818813323975, 356, 0, 27.996948242188);
  794.     CreateDynamicObject(3594, 2163.490234375, -1023.19921875, 62.064167022705, 0, 0, 23.998046875);
  795.     CreateDynamicObject(1358, 2173.9704589844, -1014.0213623047, 63.167877197266, 0, 0, 348);
  796.     CreateDynamicObject(1415, 2168.3513183594, -995.83642578125, 61.964977264404, 0, 0, 348);
  797.     CreateDynamicObject(1439, 2154.0830078125, -1019.3138427734, 61.838348388672, 0, 0, 90);
  798.     CreateDynamicObject(2908, 2153.5290527344, -1016.1793823242, 64.109428405762, 272, 90, 304.00015258789);
  799.     CreateDynamicObject(3092, 2153.9538574219, -1019.4876098633, 62.625789642334, 39.970703125, 357.38995361328, 1.6773681640625);
  800.     CreateDynamicObject(3092, 2161.767578125, -987.34582519531, 69.995552062988, 0, 0, 0);
  801.     CreateDynamicObject(3092, 2163.064453125, -987.5537109375, 69.98851776123, 0, 0, 0);
  802.     CreateDynamicObject(3092, 2164.2004394531, -987.72448730469, 69.98851776123, 0, 0, 0);
  803.     CreateDynamicObject(2680, 2164.2470703125, -987.69384765625, 70.777870178223, 0, 171.99993896484, 14);
  804.     CreateDynamicObject(2680, 2163.1069335938, -987.5419921875, 70.778854370117, 0, 171.99645996094, 13.99658203125);
  805.     CreateDynamicObject(2680, 2161.8159179688, -987.27447509766, 70.819076538086, 0, 171.99645996094, 13.99658203125);
  806.     CreateDynamicObject(2907, 2154.2768554688, -1016.1821899414, 62.032733917236, 0, 0, 0);
  807.     CreateDynamicObject(2905, 2153.1530761719, -1015.8941040039, 64.12345123291, 0, 0, 0);
  808.     CreateDynamicObject(3092, 2143.3420410156, -1006.5328369141, 65.143203735352, 0, 0, 0);
  809.     //Carros do CV
  810.     AddStaticVehicle(560,615.3710,-1663.5734,15.8311,356.0172,3,3);
  811.     AddStaticVehicle(567,610.0211,-1662.1558,16.0295,352.6576,3,3);
  812.     AddStaticVehicle(540,600.1979,-1649.1570,15.9875,178.0723,3,3);
  813.     AddStaticVehicle(482,597.0199,-1648.8760,16.4113,179.1167,3,3);
  814.     AddStaticVehicle(559,593.9562,-1648.4827,16.0943,177.1563,3,3);
  815.     AddStaticVehicle(480,590.8290,-1648.6510,16.3668,179.0004,3,3);
  816.     AddStaticVehicle(581,605.8874,-1644.9723,15.8030,263.6746,3,3);
  817.     AddStaticVehicle(581,605.9209,-1642.5664,15.8124,268.1934,3,3);
  818.     //Carros do PCC
  819.     AddStaticVehicle(482,997.7329,-1083.6929,23.9408,178.7374,65,65);
  820.     AddStaticVehicle(540,1004.2126,-1083.8423,23.6880,179.5199,65,65);
  821.     AddStaticVehicle(567,1011.6722,-1084.1124,23.7030,178.6420,65,65);
  822.     AddStaticVehicle(560,1019.6397,-1083.3044,23.5331,180.0148,65,65);
  823.     AddStaticVehicle(536,1027.7009,-1084.2449,23.5695,180.3610,65,65);
  824.     AddStaticVehicle(559,1035.8451,-1083.2405,23.4847,179.9980,65,65);
  825.     AddStaticVehicle(581,1020.4986,-1100.6868,23.4310,358.0450,65,65);
  826.     AddStaticVehicle(581,1013.3655,-1100.8018,23.4311,354.2870,65,65);
  827.     //Carros do ADA
  828.     AddStaticVehicle(567,1671.6716,-2115.4041,13.4465,269.8614,79,79);
  829.     AddStaticVehicle(567,1671.6893,-2110.9226,13.4478,269.7269,79,79);
  830.     AddStaticVehicle(467,1662.5364,-2110.9927,13.2995,268.5868,79,79);
  831.     AddStaticVehicle(566,1662.6038,-2115.3853,13.3628,270.6646,79,79);
  832.     AddStaticVehicle(560,1681.2476,-2105.1899,13.2448,222.2709,79,79);
  833.     AddStaticVehicle(492,1698.8510,-2099.3782,13.3297,179.4559,79,79);
  834.     AddStaticVehicle(581,1680.3423,-2124.0725,13.1089,353.6133,79,79);
  835.     AddStaticVehicle(581,1677.8013,-2122.7952,13.1086,323.6392,79,79);
  836.     //Carros do TCP
  837.     AddStaticVehicle(411,2610.6038,-2167.5161,-0.4917,2.1572,122,122);
  838.     AddStaticVehicle(562,2579.2471,-2158.5156,-0.5605,358.9192,122,122);
  839.     AddStaticVehicle(587,2576.0022,-2158.0339,-0.4919,358.8707,122,122);
  840.     AddStaticVehicle(587,2572.6741,-2158.0842,-0.4918,357.5177,122,122);
  841.     AddStaticVehicle(587,2569.2446,-2158.0847,-0.4918,357.6205,122,122);
  842.     AddStaticVehicle(562,2565.3379,-2140.0593,-0.5355,1.1997,122,122);
  843.     AddStaticVehicle(560,2561.9697,-2139.9971,-0.4865,355.6928,122,122);
  844.     AddStaticVehicle(411,2557.8977,-2139.8088,-0.4565,0.2680,122,122);
  845.     AddStaticVehicle(581,2612.5742,-2139.0479,-0.6246,87.3535,122,122);
  846.     AddStaticVehicle(581,2612.5293,-2136.8337,-0.5065,86.7555,122,122);
  847.     //Carros dos COP'S
  848.     AddStaticVehicle(596,1553.7657,-1606.6428,13.1072,179.0926,0,1);
  849.     AddStaticVehicle(596,1557.1361,-1606.7213,13.1076,178.8526,0,1);
  850.     AddStaticVehicle(596,1560.5063,-1606.7974,13.1137,177.8805,0,1);
  851.     AddStaticVehicle(596,1563.8715,-1606.6951,13.1072,179.4323,0,1);
  852.     AddStaticVehicle(596,1567.3546,-1606.7358,13.1072,180.2486,0,1);
  853.     AddStaticVehicle(596,1570.8767,-1606.6312,13.1072,178.9958,0,1);
  854.     AddStaticVehicle(596,1574.6099,-1606.7150,13.1072,177.9039,0,1);
  855.     AddStaticVehicle(596,1577.8933,-1606.8130,13.1072,177.2971,0,1);
  856.     AddStaticVehicle(523,1572.7950,-1634.5011,13.1077,356.2514,0,1);
  857.     AddStaticVehicle(523,1571.2872,-1634.4938,13.1182,0.0774,0,1);
  858.     AddStaticVehicle(523,1569.8416,-1634.4673,13.1157,1.0940,0,1);
  859.     AddStaticVehicle(523,1568.2703,-1634.5316,13.1168,1.3677,0,1);
  860.     AddStaticVehicle(523,1566.7722,-1634.5745,13.1182,1.6249,0,1);
  861.     AddStaticVehicle(523,1565.1265,-1634.6410,13.1147,0.3075,0,1);
  862.     //Skin's do Comando Vermelho
  863.     AddPlayerClass(6,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  864.     AddPlayerClass(13,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  865.     AddPlayerClass(19,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  866.     AddPlayerClass(21,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  867.     //Skin's do PCC
  868.     AddPlayerClass(22,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  869.     AddPlayerClass(24,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  870.     AddPlayerClass(12,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  871.     AddPlayerClass(28,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  872.     //Skin's do ADA
  873.     AddPlayerClass(29,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  874.     AddPlayerClass(30,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  875.     AddPlayerClass(13,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  876.     AddPlayerClass(42,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  877.     //Skin's do TCP
  878.     AddPlayerClass(46,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  879.     AddPlayerClass(47,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  880.     AddPlayerClass(40,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  881.     AddPlayerClass(66,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  882.     //Skin's dos COP'S
  883.     AddPlayerClass(281,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  884.     AddPlayerClass(282,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  885.     AddPlayerClass(283,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  886.     AddPlayerClass(283,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  887.     return 1;
  888. }
  889. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  890. {
  891.     if(newkeys == KEY_WALK)
  892.     {
  893.         cmd_pegarmeusequipamentos(playerid, #);
  894.     }
  895.     if((newkeys == 2) && (IsPlayerInAnyVehicle(playerid)))
  896.     {
  897.         cmd_tomarterritorio(playerid, #);
  898.     }
  899.     if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  900.     {
  901.         cmd_lojasorvete(playerid, #);
  902.         cmd_lojahotdog(playerid, #);
  903.         cmd_lojahamburguer(playerid, #);
  904.     }
  905.     return 1;
  906. }
  907. public tomandogz(playerid)
  908. {
  909.     if(PlayerNoTerritorio(playerid,MORRO))
  910.     {
  911.         if(gTeam[playerid] == CV)
  912.         {
  913.             GetPlayerName(playerid, playernome, sizeof(playernome));
  914.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Morro da ORG %s!",playernome, morrodono);
  915.             SendClientMessageToAll(COR_CV,TextoString);
  916.             format(morrodono,120,"Comando Vermelho");
  917.             GangZoneFlashForAll(morroterritorio,COR_CV);
  918.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  919.         }
  920.         if(gTeam[playerid] == PCC)
  921.         {
  922.             GetPlayerName(playerid, playernome, sizeof(playernome));
  923.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Morro da ORG %s!",playernome, morrodono);
  924.             SendClientMessageToAll(COR_PCC,TextoString);
  925.             format(morrodono,120,"PCC");
  926.             GangZoneFlashForAll(morroterritorio,COR_PCC);
  927.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  928.         }
  929.         if(gTeam[playerid] == ADA)
  930.         {
  931.             GetPlayerName(playerid, playernome, sizeof(playernome));
  932.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Morro da ORG %s!",playernome, morrodono);
  933.             SendClientMessageToAll(COR_ADA,TextoString);
  934.             format(morrodono,120,"ADA");
  935.             GangZoneFlashForAll(morroterritorio,COR_ADA);
  936.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  937.         }
  938.         if(gTeam[playerid] == TCP)
  939.         {
  940.             GetPlayerName(playerid, playernome, sizeof(playernome));
  941.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Morro da ORG %s!",playernome, morrodono);
  942.             SendClientMessageToAll(COR_TCP,TextoString);
  943.             format(morrodono,120,"TCP");
  944.             GangZoneFlashForAll(morroterritorio,COR_TCP);
  945.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  946.         }
  947.         if(gTeam[playerid] == COP)
  948.         {
  949.             GetPlayerName(playerid, playernome, sizeof(playernome));
  950.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Morro da ORG %s!",playernome, morrodono);
  951.             SendClientMessageToAll(COR_COP,TextoString);
  952.             format(morrodono,120,"COP");
  953.             GangZoneFlashForAll(morroterritorio,COR_COP);
  954.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  955.         }
  956.     }
  957.     else if(PlayerNoTerritorio(playerid,QUADRA))
  958.     {
  959.         if(gTeam[playerid] == CV)
  960.         {
  961.             GetPlayerName(playerid, playernome, sizeof(playernome));
  962.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Quadra da ORG %s!",playernome, quadradono);
  963.             SendClientMessageToAll(COR_CV,TextoString);
  964.             format(quadradono,120,"Comando Vermelho");
  965.             GangZoneFlashForAll(quadraterritorio,COR_CV);
  966.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  967.         }
  968.         if(gTeam[playerid] == PCC)
  969.         {
  970.             GetPlayerName(playerid, playernome, sizeof(playernome));
  971.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Quadra da ORG %s!",playernome, quadradono);
  972.             SendClientMessageToAll(COR_PCC,TextoString);
  973.             format(quadradono,120,"PCC");
  974.             GangZoneFlashForAll(quadraterritorio,COR_PCC);
  975.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  976.         }
  977.         if(gTeam[playerid] == ADA)
  978.         {
  979.             GetPlayerName(playerid, playernome, sizeof(playernome));
  980.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Quadra da ORG %s!",playernome, quadradono);
  981.             SendClientMessageToAll(COR_ADA,TextoString);
  982.             format(quadradono,120,"ADA");
  983.             GangZoneFlashForAll(quadraterritorio,COR_ADA);
  984.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  985.         }
  986.         if(gTeam[playerid] == TCP)
  987.         {
  988.             GetPlayerName(playerid, playernome, sizeof(playernome));
  989.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Quadra da ORG %s!",playernome, quadradono);
  990.             SendClientMessageToAll(COR_TCP,TextoString);
  991.             format(quadradono,120,"TCP");
  992.             GangZoneFlashForAll(quadraterritorio,COR_TCP);
  993.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  994.         }
  995.         if(gTeam[playerid] == COP)
  996.         {
  997.             GetPlayerName(playerid, playernome, sizeof(playernome));
  998.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Quadra da ORG %s!",playernome, quadradono);
  999.             SendClientMessageToAll(COR_COP,TextoString);
  1000.             format(quadradono,120,"COP");
  1001.             GangZoneFlashForAll(quadraterritorio,COR_COP);
  1002.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1003.         }
  1004.     }
  1005.     else if(PlayerNoTerritorio(playerid,PARQUE))
  1006.     {
  1007.         if(gTeam[playerid] == CV)
  1008.         {
  1009.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1010.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Parque da ORG %s!",playernome, parquedono);
  1011.             SendClientMessageToAll(COR_CV,TextoString);
  1012.             format(parquedono,120,"Comando Vermelho");
  1013.             GangZoneFlashForAll(parqueterritorio,COR_CV);
  1014.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1015.         }
  1016.         if(gTeam[playerid] == PCC)
  1017.         {
  1018.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1019.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Parque da ORG %s!",playernome, parquedono);
  1020.             SendClientMessageToAll(COR_PCC,TextoString);
  1021.             format(parquedono,120,"PCC");
  1022.             GangZoneFlashForAll(parqueterritorio,COR_PCC);
  1023.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1024.         }
  1025.         if(gTeam[playerid] == ADA)
  1026.         {
  1027.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1028.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Parque da ORG %s!",playernome, parquedono);
  1029.             SendClientMessageToAll(COR_ADA,TextoString);
  1030.             format(parquedono,120,"ADA");
  1031.             GangZoneFlashForAll(parqueterritorio,COR_ADA);
  1032.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1033.         }
  1034.         if(gTeam[playerid] == TCP)
  1035.         {
  1036.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1037.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Parque da ORG %s!",playernome, parquedono);
  1038.             SendClientMessageToAll(COR_TCP,TextoString);
  1039.             format(parquedono,120,"TCP");
  1040.             GangZoneFlashForAll(parqueterritorio,COR_TCP);
  1041.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1042.         }
  1043.         if(gTeam[playerid] == COP)
  1044.         {
  1045.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1046.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Parque da ORG %s!",playernome, parquedono);
  1047.             SendClientMessageToAll(COR_COP,TextoString);
  1048.             format(parquedono,120,"COP");
  1049.             GangZoneFlashForAll(parqueterritorio,COR_COP);
  1050.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1051.         }
  1052.     }
  1053.     else if(PlayerNoTerritorio(playerid,RIACHO))
  1054.     {
  1055.         if(gTeam[playerid] == CV)
  1056.         {
  1057.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1058.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Riacho da ORG %s!",playernome, riachodono);
  1059.             SendClientMessageToAll(COR_CV,TextoString);
  1060.             format(riachodono,120,"Comando Vermelho");
  1061.             GangZoneFlashForAll(riachoterritorio,COR_CV);
  1062.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1063.         }
  1064.         if(gTeam[playerid] == PCC)
  1065.         {
  1066.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1067.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Riacho da ORG %s!",playernome, riachodono);
  1068.             SendClientMessageToAll(COR_PCC,TextoString);
  1069.             format(riachodono,120,"PCC");
  1070.             GangZoneFlashForAll(riachoterritorio,COR_PCC);
  1071.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1072.         }
  1073.         if(gTeam[playerid] == ADA)
  1074.         {
  1075.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1076.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Riacho da ORG %s!",playernome, riachodono);
  1077.             SendClientMessageToAll(COR_ADA,TextoString);
  1078.             format(riachodono,120,"ADA");
  1079.             GangZoneFlashForAll(riachoterritorio,COR_ADA);
  1080.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1081.         }
  1082.         if(gTeam[playerid] == TCP)
  1083.         {
  1084.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1085.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Riacho da ORG %s!",playernome, riachodono);
  1086.             SendClientMessageToAll(COR_TCP,TextoString);
  1087.             format(riachodono,120,"TCP");
  1088.             GangZoneFlashForAll(riachoterritorio,COR_TCP);
  1089.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1090.         }
  1091.         if(gTeam[playerid] == COP)
  1092.         {
  1093.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1094.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Riacho da ORG %s!",playernome, riachodono);
  1095.             SendClientMessageToAll(COR_COP,TextoString);
  1096.             format(riachodono,120,"COP");
  1097.             GangZoneFlashForAll(riachoterritorio,COR_COP);
  1098.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1099.         }
  1100.     }
  1101.     else if(PlayerNoTerritorio(playerid,INDUSTRIA))
  1102.     {
  1103.         if(gTeam[playerid] == CV)
  1104.         {
  1105.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1106.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Industria da ORG %s!",playernome, industriadono);
  1107.             SendClientMessageToAll(COR_CV,TextoString);
  1108.             format(industriadono,120,"Comando Vermelho");
  1109.             GangZoneFlashForAll(industriaterritorio,COR_CV);
  1110.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1111.         }
  1112.         if(gTeam[playerid] == PCC)
  1113.         {
  1114.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1115.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Industria da ORG %s!",playernome, industriadono);
  1116.             SendClientMessageToAll(COR_PCC,TextoString);
  1117.             format(industriadono,120,"PCC");
  1118.             GangZoneFlashForAll(industriaterritorio,COR_PCC);
  1119.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1120.         }
  1121.         if(gTeam[playerid] == ADA)
  1122.         {
  1123.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1124.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Industria da ORG %s!",playernome, industriadono);
  1125.             SendClientMessageToAll(COR_ADA,TextoString);
  1126.             format(industriadono,120,"ADA");
  1127.             GangZoneFlashForAll(industriaterritorio,COR_ADA);
  1128.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1129.         }
  1130.         if(gTeam[playerid] == TCP)
  1131.         {
  1132.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1133.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Industria da ORG %s!",playernome, industriadono);
  1134.             SendClientMessageToAll(COR_TCP,TextoString);
  1135.             format(industriadono,120,"TCP");
  1136.             GangZoneFlashForAll(industriaterritorio,COR_TCP);
  1137.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1138.         }
  1139.         if(gTeam[playerid] == COP)
  1140.         {
  1141.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1142.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Industria da ORG %s!",playernome, industriadono);
  1143.             SendClientMessageToAll(COR_COP,TextoString);
  1144.             format(industriadono,120,"COP");
  1145.             GangZoneFlashForAll(industriaterritorio,COR_COP);
  1146.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1147.         }
  1148.     }
  1149.     else if(PlayerNoTerritorio(playerid,AEROPORTO))
  1150.     {
  1151.         if(gTeam[playerid] == CV)
  1152.         {
  1153.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1154.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Aeroporto da ORG %s!",playernome, aeroportodono);
  1155.             SendClientMessageToAll(COR_CV,TextoString);
  1156.             format(aeroportodono,120,"Comando Vermelho");
  1157.             GangZoneFlashForAll(aeroportoterritorio,COR_CV);
  1158.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1159.         }
  1160.         if(gTeam[playerid] == PCC)
  1161.         {
  1162.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1163.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Aeroporto da ORG %s!",playernome, aeroportodono);
  1164.             SendClientMessageToAll(COR_PCC,TextoString);
  1165.             format(aeroportodono,120,"PCC");
  1166.             GangZoneFlashForAll(aeroportoterritorio,COR_PCC);
  1167.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1168.         }
  1169.         if(gTeam[playerid] == ADA)
  1170.         {
  1171.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1172.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Aeroporto da ORG %s!",playernome, aeroportodono);
  1173.             SendClientMessageToAll(COR_ADA,TextoString);
  1174.             format(aeroportodono,120,"ADA");
  1175.             GangZoneFlashForAll(aeroportoterritorio,COR_ADA);
  1176.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1177.         }
  1178.         if(gTeam[playerid] == TCP)
  1179.         {
  1180.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1181.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Aeroporto da ORG %s!",playernome, aeroportodono);
  1182.             SendClientMessageToAll(COR_TCP,TextoString);
  1183.             format(aeroportodono,120,"TCP");
  1184.             GangZoneFlashForAll(aeroportoterritorio,COR_TCP);
  1185.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1186.         }
  1187.         if(gTeam[playerid] == COP)
  1188.         {
  1189.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1190.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Aeroporto da ORG %s!",playernome, aeroportodono);
  1191.             SendClientMessageToAll(COR_COP,TextoString);
  1192.             format(aeroportodono,120,"COP");
  1193.             GangZoneFlashForAll(aeroportoterritorio,COR_COP);
  1194.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1195.         }
  1196.     }
  1197.     else if(PlayerNoTerritorio(playerid,CASARAO))
  1198.     {
  1199.         if(gTeam[playerid] == CV)
  1200.         {
  1201.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1202.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Casarao da ORG %s!",playernome, casaraodono);
  1203.             SendClientMessageToAll(COR_CV,TextoString);
  1204.             format(casaraodono,120,"Comando Vermelho");
  1205.             GangZoneFlashForAll(casaraoterritorio,COR_CV);
  1206.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1207.         }
  1208.         if(gTeam[playerid] == PCC)
  1209.         {
  1210.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1211.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Casarao da ORG %s!",playernome, casaraodono);
  1212.             SendClientMessageToAll(COR_PCC,TextoString);
  1213.             format(casaraodono,120,"PCC");
  1214.             GangZoneFlashForAll(casaraoterritorio,COR_PCC);
  1215.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1216.         }
  1217.         if(gTeam[playerid] == ADA)
  1218.         {
  1219.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1220.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Casarao da ORG %s!",playernome, casaraodono);
  1221.             SendClientMessageToAll(COR_ADA,TextoString);
  1222.             format(casaraodono,120,"ADA");
  1223.             GangZoneFlashForAll(casaraoterritorio,COR_ADA);
  1224.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1225.         }
  1226.         if(gTeam[playerid] == TCP)
  1227.         {
  1228.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1229.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Casarao da ORG %s!",playernome, casaraodono);
  1230.             SendClientMessageToAll(COR_TCP,TextoString);
  1231.             format(casaraodono,120,"TCP");
  1232.             GangZoneFlashForAll(casaraoterritorio,COR_TCP);
  1233.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1234.         }
  1235.         if(gTeam[playerid] == COP)
  1236.         {
  1237.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1238.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Casarao da ORG %s!",playernome, casaraodono);
  1239.             SendClientMessageToAll(COR_COP,TextoString);
  1240.             format(casaraodono,120,"COP");
  1241.             GangZoneFlashForAll(casaraoterritorio,COR_COP);
  1242.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1243.         }
  1244.     }
  1245.     else if(PlayerNoTerritorio(playerid,ESTACAO))
  1246.     {
  1247.         if(gTeam[playerid] == CV)
  1248.         {
  1249.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1250.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Estacao da ORG %s!",playernome, estacaodono);
  1251.             SendClientMessageToAll(COR_CV,TextoString);
  1252.             format(estacaodono,120,"Comando Vermelho");
  1253.             GangZoneFlashForAll(estacaoterritorio,COR_CV);
  1254.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1255.         }
  1256.         if(gTeam[playerid] == PCC)
  1257.         {
  1258.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1259.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Estacao da ORG %s!",playernome, estacaodono);
  1260.             SendClientMessageToAll(COR_PCC,TextoString);
  1261.             format(estacaodono,120,"PCC");
  1262.             GangZoneFlashForAll(estacaoterritorio,COR_PCC);
  1263.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1264.         }
  1265.         if(gTeam[playerid] == ADA)
  1266.         {
  1267.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1268.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Estacao da ORG %s!",playernome, estacaodono);
  1269.             SendClientMessageToAll(COR_ADA,TextoString);
  1270.             format(estacaodono,120,"ADA");
  1271.             GangZoneFlashForAll(estacaoterritorio,COR_ADA);
  1272.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1273.         }
  1274.         if(gTeam[playerid] == TCP)
  1275.         {
  1276.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1277.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Estacao da ORG %s!",playernome, estacaodono);
  1278.             SendClientMessageToAll(COR_TCP,TextoString);
  1279.             format(estacaodono,120,"TCP");
  1280.             GangZoneFlashForAll(estacaoterritorio,COR_TCP);
  1281.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1282.         }
  1283.         if(gTeam[playerid] == COP)
  1284.         {
  1285.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1286.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Estacao da ORG %s!",playernome, estacaodono);
  1287.             SendClientMessageToAll(COR_COP,TextoString);
  1288.             format(estacaodono,120,"COP");
  1289.             GangZoneFlashForAll(estacaoterritorio,COR_COP);
  1290.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1291.         }
  1292.     }
  1293.     else if(PlayerNoTerritorio(playerid,FAVELA))
  1294.     {
  1295.         if(gTeam[playerid] == CV)
  1296.         {
  1297.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1298.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Favela da ORG %s!",playernome, faveladono);
  1299.             SendClientMessageToAll(COR_CV,TextoString);
  1300.             format(faveladono,120,"Comando Vermelho");
  1301.             GangZoneFlashForAll(favelaterritorio,COR_CV);
  1302.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1303.         }
  1304.         if(gTeam[playerid] == PCC)
  1305.         {
  1306.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1307.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Favela da ORG %s!",playernome, faveladono);
  1308.             SendClientMessageToAll(COR_PCC,TextoString);
  1309.             format(faveladono,120,"PCC");
  1310.             GangZoneFlashForAll(favelaterritorio,COR_PCC);
  1311.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1312.         }
  1313.         if(gTeam[playerid] == ADA)
  1314.         {
  1315.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1316.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Favela da ORG %s!",playernome, faveladono);
  1317.             SendClientMessageToAll(COR_ADA,TextoString);
  1318.             format(faveladono,120,"ADA");
  1319.             GangZoneFlashForAll(favelaterritorio,COR_ADA);
  1320.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1321.         }
  1322.         if(gTeam[playerid] == TCP)
  1323.         {
  1324.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1325.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Favela da ORG %s!",playernome, faveladono);
  1326.             SendClientMessageToAll(COR_TCP,TextoString);
  1327.             format(faveladono,120,"TCP");
  1328.             GangZoneFlashForAll(favelaterritorio,COR_TCP);
  1329.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1330.         }
  1331.         if(gTeam[playerid] == COP)
  1332.         {
  1333.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1334.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Favela da ORG %s!",playernome, faveladono);
  1335.             SendClientMessageToAll(COR_COP,TextoString);
  1336.             format(faveladono,120,"COP");
  1337.             GangZoneFlashForAll(favelaterritorio,COR_COP);
  1338.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1339.         }
  1340.     }
  1341.     else if(PlayerNoTerritorio(playerid,PISTA))
  1342.     {
  1343.         if(gTeam[playerid] == CV)
  1344.         {
  1345.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1346.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Pista da ORG %s!",playernome, pistadono);
  1347.             SendClientMessageToAll(COR_CV,TextoString);
  1348.             format(pistadono,120,"Comando Vermelho");
  1349.             GangZoneFlashForAll(pistaterritorio,COR_CV);
  1350.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1351.         }
  1352.         if(gTeam[playerid] == PCC)
  1353.         {
  1354.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1355.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Pista da ORG %s!",playernome, pistadono);
  1356.             SendClientMessageToAll(COR_PCC,TextoString);
  1357.             format(pistadono,120,"PCC");
  1358.             GangZoneFlashForAll(pistaterritorio,COR_PCC);
  1359.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1360.         }
  1361.         if(gTeam[playerid] == ADA)
  1362.         {
  1363.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1364.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Pista da ORG %s!",playernome, pistadono);
  1365.             SendClientMessageToAll(COR_ADA,TextoString);
  1366.             format(pistadono,120,"ADA");
  1367.             GangZoneFlashForAll(pistaterritorio,COR_ADA);
  1368.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1369.         }
  1370.         if(gTeam[playerid] == TCP)
  1371.         {
  1372.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1373.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Pista da ORG %s!",playernome, pistadono);
  1374.             SendClientMessageToAll(COR_TCP,TextoString);
  1375.             format(pistadono,120,"TCP");
  1376.             GangZoneFlashForAll(pistaterritorio,COR_TCP);
  1377.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1378.         }
  1379.         if(gTeam[playerid] == COP)
  1380.         {
  1381.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1382.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Pista da ORG %s!",playernome, pistadono);
  1383.             SendClientMessageToAll(COR_COP,TextoString);
  1384.             format(pistadono,120,"COP");
  1385.             GangZoneFlashForAll(pistaterritorio,COR_COP);
  1386.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1387.         }
  1388.     }
  1389.     else if(PlayerNoTerritorio(playerid,ESTADIO))
  1390.     {
  1391.         if(gTeam[playerid] == CV)
  1392.         {
  1393.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1394.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Estadio da ORG %s!",playernome, estadiodono);
  1395.             SendClientMessageToAll(COR_CV,TextoString);
  1396.             format(estadiodono,120,"Comando Vermelho");
  1397.             GangZoneFlashForAll(estadioterritorio,COR_CV);
  1398.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1399.         }
  1400.         if(gTeam[playerid] == PCC)
  1401.         {
  1402.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1403.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Estadio da ORG %s!",playernome, estadiodono);
  1404.             SendClientMessageToAll(COR_PCC,TextoString);
  1405.             format(estadiodono,120,"PCC");
  1406.             GangZoneFlashForAll(estadioterritorio,COR_PCC);
  1407.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1408.         }
  1409.         if(gTeam[playerid] == ADA)
  1410.         {
  1411.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1412.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Estadio da ORG %s!",playernome, estadiodono);
  1413.             SendClientMessageToAll(COR_ADA,TextoString);
  1414.             format(estadiodono,120,"ADA");
  1415.             GangZoneFlashForAll(estadioterritorio,COR_ADA);
  1416.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1417.         }
  1418.         if(gTeam[playerid] == TCP)
  1419.         {
  1420.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1421.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Estadio da ORG %s!",playernome, estadiodono);
  1422.             SendClientMessageToAll(COR_TCP,TextoString);
  1423.             format(estadiodono,120,"TCP");
  1424.             GangZoneFlashForAll(estadioterritorio,COR_TCP);
  1425.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1426.         }
  1427.         if(gTeam[playerid] == COP)
  1428.         {
  1429.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1430.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Estadio da ORG %s!",playernome, estadiodono);
  1431.             SendClientMessageToAll(COR_COP,TextoString);
  1432.             format(estadiodono,120,"COP");
  1433.             GangZoneFlashForAll(estadioterritorio,COR_COP);
  1434.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1435.         }
  1436.     }
  1437.     else if(PlayerNoTerritorio(playerid,TERRENO))
  1438.     {
  1439.         if(gTeam[playerid] == CV)
  1440.         {
  1441.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1442.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Terreno Baudio da ORG %s!",playernome, terrenodono);
  1443.             SendClientMessageToAll(COR_CV,TextoString);
  1444.             format(terrenodono,120,"Comando Vermelho");
  1445.             GangZoneFlashForAll(terrenoterritorio,COR_CV);
  1446.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1447.         }
  1448.         if(gTeam[playerid] == PCC)
  1449.         {
  1450.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1451.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Terreno Baudio da ORG %s!",playernome, terrenodono);
  1452.             SendClientMessageToAll(COR_PCC,TextoString);
  1453.             format(terrenodono,120,"PCC");
  1454.             GangZoneFlashForAll(terrenoterritorio,COR_PCC);
  1455.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1456.         }
  1457.         if(gTeam[playerid] == ADA)
  1458.         {
  1459.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1460.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Terreno Baudio da ORG %s!",playernome, terrenodono);
  1461.             SendClientMessageToAll(COR_ADA,TextoString);
  1462.             format(terrenodono,120,"ADA");
  1463.             GangZoneFlashForAll(terrenoterritorio,COR_ADA);
  1464.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1465.         }
  1466.         if(gTeam[playerid] == TCP)
  1467.         {
  1468.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1469.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Terreno Baudio da ORG %s!",playernome, terrenodono);
  1470.             SendClientMessageToAll(COR_TCP,TextoString);
  1471.             format(terrenodono,120,"TCP");
  1472.             GangZoneFlashForAll(terrenoterritorio,COR_TCP);
  1473.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1474.         }
  1475.         if(gTeam[playerid] == COP)
  1476.         {
  1477.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1478.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Terreno Baudio da ORG %s!",playernome, terrenodono);
  1479.             SendClientMessageToAll(COR_COP,TextoString);
  1480.             format(terrenodono,120,"COP");
  1481.             GangZoneFlashForAll(terrenoterritorio,COR_COP);
  1482.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1483.         }
  1484.     }
  1485.     else if(PlayerNoTerritorio(playerid,PIER))
  1486.     {
  1487.         if(gTeam[playerid] == CV)
  1488.         {
  1489.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1490.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Pier Da Praia da ORG %s!",playernome, pierdono);
  1491.             SendClientMessageToAll(COR_CV,TextoString);
  1492.             format(pierdono,120,"Comando Vermelho");
  1493.             GangZoneFlashForAll(pierterritorio,COR_CV);
  1494.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1495.         }
  1496.         if(gTeam[playerid] == PCC)
  1497.         {
  1498.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1499.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Pier Da Praia da ORG %s!",playernome, pierdono);
  1500.             SendClientMessageToAll(COR_PCC,TextoString);
  1501.             format(pierdono,120,"PCC");
  1502.             GangZoneFlashForAll(pierterritorio,COR_PCC);
  1503.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1504.         }
  1505.         if(gTeam[playerid] == ADA)
  1506.         {
  1507.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1508.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Pier Da Praia da ORG %s!",playernome, pierdono);
  1509.             SendClientMessageToAll(COR_ADA,TextoString);
  1510.             format(pierdono,120,"ADA");
  1511.             GangZoneFlashForAll(pierterritorio,COR_ADA);
  1512.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1513.         }
  1514.         if(gTeam[playerid] == TCP)
  1515.         {
  1516.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1517.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Pier Da Praia da ORG %s!",playernome, pierdono);
  1518.             SendClientMessageToAll(COR_TCP,TextoString);
  1519.             format(pierdono,120,"TCP");
  1520.             GangZoneFlashForAll(pierterritorio,COR_TCP);
  1521.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1522.         }
  1523.         if(gTeam[playerid] == COP)
  1524.         {
  1525.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1526.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'Sestão tomando o controle do Pier Da Praia da ORG %s!",playernome, pierdono);
  1527.             SendClientMessageToAll(COR_COP,TextoString);
  1528.             format(pierdono,120,"COP");
  1529.             GangZoneFlashForAll(pierterritorio,COR_COP);
  1530.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1531.         }
  1532.     }
  1533.     else if(PlayerNoTerritorio(playerid,FAZENDINHA))
  1534.     {
  1535.         if(gTeam[playerid] == CV)
  1536.         {
  1537.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1538.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Fazendinha da ORG %s!",playernome, fazendinhadono);
  1539.             SendClientMessageToAll(COR_CV,TextoString);
  1540.             format(fazendinhadono,120,"Comando Vermelho");
  1541.             GangZoneFlashForAll(fazendinhaterritorio,COR_CV);
  1542.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1543.         }
  1544.         if(gTeam[playerid] == PCC)
  1545.         {
  1546.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1547.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Fazendinha da ORG %s!",playernome, fazendinhadono);
  1548.             SendClientMessageToAll(COR_PCC,TextoString);
  1549.             format(fazendinhadono,120,"PCC");
  1550.             GangZoneFlashForAll(fazendinhaterritorio,COR_PCC);
  1551.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1552.         }
  1553.         if(gTeam[playerid] == ADA)
  1554.         {
  1555.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1556.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Fazendinha da ORG %s!",playernome, fazendinhadono);
  1557.             SendClientMessageToAll(COR_ADA,TextoString);
  1558.             format(fazendinhadono,120,"ADA");
  1559.             GangZoneFlashForAll(fazendinhaterritorio,COR_ADA);
  1560.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1561.         }
  1562.         if(gTeam[playerid] == TCP)
  1563.         {
  1564.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1565.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Fazendinha da ORG %s!",playernome, fazendinhadono);
  1566.             SendClientMessageToAll(COR_TCP,TextoString);
  1567.             format(fazendinhadono,120,"TCP");
  1568.             GangZoneFlashForAll(fazendinhaterritorio,COR_TCP);
  1569.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1570.         }
  1571.         if(gTeam[playerid] == COP)
  1572.         {
  1573.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1574.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Fazendinha da ORG %s!",playernome, fazendinhadono);
  1575.             SendClientMessageToAll(COR_COP,TextoString);
  1576.             format(fazendinhadono,120,"COP");
  1577.             GangZoneFlashForAll(fazendinhaterritorio,COR_COP);
  1578.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1579.         }
  1580.     }
  1581.     else if(PlayerNoTerritorio(playerid,DOCAS))
  1582.     {
  1583.         if(gTeam[playerid] == CV)
  1584.         {
  1585.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1586.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle das Docas da ORG %s!",playernome, docasdono);
  1587.             SendClientMessageToAll(COR_CV,TextoString);
  1588.             format(docasdono,120,"Comando Vermelho");
  1589.             GangZoneFlashForAll(docasterritorio,COR_CV);
  1590.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1591.         }
  1592.         if(gTeam[playerid] == PCC)
  1593.         {
  1594.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1595.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle das Docas da ORG %s!",playernome, docasdono);
  1596.             SendClientMessageToAll(COR_PCC,TextoString);
  1597.             format(docasdono,120,"PCC");
  1598.             GangZoneFlashForAll(docasterritorio,COR_PCC);
  1599.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1600.         }
  1601.         if(gTeam[playerid] == ADA)
  1602.         {
  1603.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1604.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle das Docas da ORG %s!",playernome, docasdono);
  1605.             SendClientMessageToAll(COR_ADA,TextoString);
  1606.             format(docasdono,120,"ADA");
  1607.             GangZoneFlashForAll(docasterritorio,COR_ADA);
  1608.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1609.         }
  1610.         if(gTeam[playerid] == TCP)
  1611.         {
  1612.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1613.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle das Docas da ORG %s!",playernome, docasdono);
  1614.             SendClientMessageToAll(COR_TCP,TextoString);
  1615.             format(docasdono,120,"TCP");
  1616.             GangZoneFlashForAll(docasterritorio,COR_TCP);
  1617.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1618.         }
  1619.         if(gTeam[playerid] == COP)
  1620.         {
  1621.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1622.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle das Docas da ORG %s!",playernome, docasdono);
  1623.             SendClientMessageToAll(COR_COP,TextoString);
  1624.             format(docasdono,120,"COP");
  1625.             GangZoneFlashForAll(docasterritorio,COR_COP);
  1626.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1627.         }
  1628.     }
  1629.     else if(PlayerNoTerritorio(playerid,LINHA))
  1630.     {
  1631.         if(gTeam[playerid] == CV)
  1632.         {
  1633.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1634.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Estrada De Ferro da ORG %s!",playernome, linhadono);
  1635.             SendClientMessageToAll(COR_CV,TextoString);
  1636.             format(linhadono,120,"Comando Vermelho");
  1637.             GangZoneFlashForAll(linhaterritorio,COR_CV);
  1638.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1639.         }
  1640.         if(gTeam[playerid] == PCC)
  1641.         {
  1642.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1643.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Estrada De Ferro da ORG %s!",playernome, linhadono);
  1644.             SendClientMessageToAll(COR_PCC,TextoString);
  1645.             format(linhadono,120,"PCC");
  1646.             GangZoneFlashForAll(linhaterritorio,COR_PCC);
  1647.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1648.         }
  1649.         if(gTeam[playerid] == ADA)
  1650.         {
  1651.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1652.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Estrada De Ferro da ORG %s!",playernome, linhadono);
  1653.             SendClientMessageToAll(COR_ADA,TextoString);
  1654.             format(linhadono,120,"ADA");
  1655.             GangZoneFlashForAll(linhaterritorio,COR_ADA);
  1656.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1657.         }
  1658.         if(gTeam[playerid] == TCP)
  1659.         {
  1660.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1661.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Estrada De Ferro da ORG %s!",playernome, linhadono);
  1662.             SendClientMessageToAll(COR_TCP,TextoString);
  1663.             format(linhadono,120,"TCP");
  1664.             GangZoneFlashForAll(linhaterritorio,COR_TCP);
  1665.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1666.         }
  1667.         if(gTeam[playerid] == COP)
  1668.         {
  1669.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1670.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Estrada De Ferro da ORG %s!",playernome, linhadono);
  1671.             SendClientMessageToAll(COR_COP,TextoString);
  1672.             format(linhadono,120,"COP");
  1673.             GangZoneFlashForAll(linhaterritorio,COR_COP);
  1674.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1675.         }
  1676.     }
  1677.     else if(PlayerNoTerritorio(playerid,MANSAO))
  1678.     {
  1679.         if(gTeam[playerid] == CV)
  1680.         {
  1681.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1682.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle das Mansões da ORG %s!",playernome, mansaodono);
  1683.             SendClientMessageToAll(COR_CV,TextoString);
  1684.             format(mansaodono,120,"Comando Vermelho");
  1685.             GangZoneFlashForAll(mansaoterritorio,COR_CV);
  1686.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1687.         }
  1688.         if(gTeam[playerid] == PCC)
  1689.         {
  1690.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1691.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle das Mansões da ORG %s!",playernome, mansaodono);
  1692.             SendClientMessageToAll(COR_PCC,TextoString);
  1693.             format(mansaodono,120,"PCC");
  1694.             GangZoneFlashForAll(mansaoterritorio,COR_PCC);
  1695.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1696.         }
  1697.         if(gTeam[playerid] == ADA)
  1698.         {
  1699.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1700.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle das Mansões da ORG %s!",playernome, mansaodono);
  1701.             SendClientMessageToAll(COR_ADA,TextoString);
  1702.             format(mansaodono,120,"ADA");
  1703.             GangZoneFlashForAll(mansaoterritorio,COR_ADA);
  1704.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1705.         }
  1706.         if(gTeam[playerid] == TCP)
  1707.         {
  1708.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1709.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle das Mansões da ORG %s!",playernome, mansaodono);
  1710.             SendClientMessageToAll(COR_TCP,TextoString);
  1711.             format(mansaodono,120,"TCP");
  1712.             GangZoneFlashForAll(mansaoterritorio,COR_TCP);
  1713.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1714.         }
  1715.         if(gTeam[playerid] == COP)
  1716.         {
  1717.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1718.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle das Mansões da ORG %s!",playernome, mansaodono);
  1719.             SendClientMessageToAll(COR_COP,TextoString);
  1720.             format(mansaodono,120,"COP");
  1721.             GangZoneFlashForAll(mansaoterritorio,COR_COP);
  1722.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1723.         }
  1724.     }
  1725.     else if(PlayerNoTerritorio(playerid,RURAL))
  1726.     {
  1727.         if(gTeam[playerid] == CV)
  1728.         {
  1729.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1730.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Zona Rural da ORG %s!",playernome, ruraldono);
  1731.             SendClientMessageToAll(COR_CV,TextoString);
  1732.             format(ruraldono,120,"Comando Vermelho");
  1733.             GangZoneFlashForAll(ruralterritorio,COR_CV);
  1734.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1735.         }
  1736.         if(gTeam[playerid] == PCC)
  1737.         {
  1738.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1739.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Zona Rural da ORG %s!",playernome, ruraldono);
  1740.             SendClientMessageToAll(COR_PCC,TextoString);
  1741.             format(ruraldono,120,"PCC");
  1742.             GangZoneFlashForAll(ruralterritorio,COR_PCC);
  1743.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1744.         }
  1745.         if(gTeam[playerid] == ADA)
  1746.         {
  1747.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1748.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Zona Rural da ORG %s!",playernome, ruraldono);
  1749.             SendClientMessageToAll(COR_ADA,TextoString);
  1750.             format(ruraldono,120,"ADA");
  1751.             GangZoneFlashForAll(ruralterritorio,COR_ADA);
  1752.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1753.         }
  1754.         if(gTeam[playerid] == TCP)
  1755.         {
  1756.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1757.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Zona Rural da ORG %s!",playernome, ruraldono);
  1758.             SendClientMessageToAll(COR_TCP,TextoString);
  1759.             format(ruraldono,120,"TCP");
  1760.             GangZoneFlashForAll(ruralterritorio,COR_TCP);
  1761.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1762.         }
  1763.         if(gTeam[playerid] == COP)
  1764.         {
  1765.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1766.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Zona Rural da ORG %s!",playernome, ruraldono);
  1767.             SendClientMessageToAll(COR_COP,TextoString);
  1768.             format(ruraldono,120,"COP");
  1769.             GangZoneFlashForAll(ruralterritorio,COR_COP);
  1770.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1771.         }
  1772.     }
  1773.     return 1;
  1774. }
  1775. public cvtomou(playerid)
  1776. {
  1777.     if(PlayerNoTerritorio(playerid,MORRO))
  1778.     {
  1779.         GangZoneStopFlashForAll(morroterritorio);
  1780.         GangZoneHideForAll(morroterritorio);
  1781.         GangZoneShowForAll(morroterritorio,COR_CV);
  1782.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1783.     }
  1784.     else if(PlayerNoTerritorio(playerid,QUADRA))
  1785.     {
  1786.         GangZoneStopFlashForAll(quadraterritorio);
  1787.         GangZoneHideForAll(quadraterritorio);
  1788.         GangZoneShowForAll(quadraterritorio,COR_CV);
  1789.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1790.     }
  1791.     else if(PlayerNoTerritorio(playerid,PARQUE))
  1792.     {
  1793.         GangZoneStopFlashForAll(parqueterritorio);
  1794.         GangZoneHideForAll(parqueterritorio);
  1795.         GangZoneShowForAll(parqueterritorio,COR_CV);
  1796.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1797.     }
  1798.     else if(PlayerNoTerritorio(playerid,RIACHO))
  1799.     {
  1800.         GangZoneStopFlashForAll(riachoterritorio);
  1801.         GangZoneHideForAll(riachoterritorio);
  1802.         GangZoneShowForAll(riachoterritorio,COR_CV);
  1803.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1804.     }
  1805.     else if(PlayerNoTerritorio(playerid,INDUSTRIA))
  1806.     {
  1807.         GangZoneStopFlashForAll(industriaterritorio);
  1808.         GangZoneHideForAll(industriaterritorio);
  1809.         GangZoneShowForAll(industriaterritorio,COR_CV);
  1810.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1811.     }
  1812.     else if(PlayerNoTerritorio(playerid,AEROPORTO))
  1813.     {
  1814.         GangZoneStopFlashForAll(aeroportoterritorio);
  1815.         GangZoneHideForAll(aeroportoterritorio);
  1816.         GangZoneShowForAll(aeroportoterritorio,COR_CV);
  1817.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1818.     }
  1819.     else if(PlayerNoTerritorio(playerid,CASARAO))
  1820.     {
  1821.         GangZoneStopFlashForAll(casaraoterritorio);
  1822.         GangZoneHideForAll(casaraoterritorio);
  1823.         GangZoneShowForAll(casaraoterritorio,COR_CV);
  1824.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1825.     }
  1826.     else if(PlayerNoTerritorio(playerid,ESTACAO))
  1827.     {
  1828.         GangZoneStopFlashForAll(estacaoterritorio);
  1829.         GangZoneHideForAll(estacaoterritorio);
  1830.         GangZoneShowForAll(estacaoterritorio,COR_CV);
  1831.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1832.     }
  1833.     else if(PlayerNoTerritorio(playerid,FAVELA))
  1834.     {
  1835.         GangZoneStopFlashForAll(favelaterritorio);
  1836.         GangZoneHideForAll(favelaterritorio);
  1837.         GangZoneShowForAll(favelaterritorio,COR_CV);
  1838.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1839.     }
  1840.     else if(PlayerNoTerritorio(playerid,PISTA))
  1841.     {
  1842.         GangZoneStopFlashForAll(pistaterritorio);
  1843.         GangZoneHideForAll(pistaterritorio);
  1844.         GangZoneShowForAll(pistaterritorio,COR_CV);
  1845.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1846.     }
  1847.     else if(PlayerNoTerritorio(playerid,ESTADIO))
  1848.     {
  1849.         GangZoneStopFlashForAll(estadioterritorio);
  1850.         GangZoneHideForAll(estadioterritorio);
  1851.         GangZoneShowForAll(estadioterritorio,COR_CV);
  1852.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1853.     }
  1854.     else if(PlayerNoTerritorio(playerid,TERRENO))
  1855.     {
  1856.         GangZoneStopFlashForAll(terrenoterritorio);
  1857.         GangZoneHideForAll(terrenoterritorio);
  1858.         GangZoneShowForAll(terrenoterritorio,COR_CV);
  1859.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1860.     }
  1861.     else if(PlayerNoTerritorio(playerid,PIER))
  1862.     {
  1863.         GangZoneStopFlashForAll(pierterritorio);
  1864.         GangZoneHideForAll(pierterritorio);
  1865.         GangZoneShowForAll(pierterritorio,COR_CV);
  1866.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1867.     }
  1868.     else if(PlayerNoTerritorio(playerid,FAZENDINHA))
  1869.     {
  1870.         GangZoneStopFlashForAll(fazendinhaterritorio);
  1871.         GangZoneHideForAll(fazendinhaterritorio);
  1872.         GangZoneShowForAll(fazendinhaterritorio,COR_CV);
  1873.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1874.     }
  1875.     else if(PlayerNoTerritorio(playerid,DOCAS))
  1876.     {
  1877.         GangZoneStopFlashForAll(docasterritorio);
  1878.         GangZoneHideForAll(docasterritorio);
  1879.         GangZoneShowForAll(docasterritorio,COR_CV);
  1880.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1881.     }
  1882.     else if(PlayerNoTerritorio(playerid,LINHA))
  1883.     {
  1884.         GangZoneStopFlashForAll(linhaterritorio);
  1885.         GangZoneHideForAll(linhaterritorio);
  1886.         GangZoneShowForAll(linhaterritorio,COR_CV);
  1887.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1888.     }
  1889.     else if(PlayerNoTerritorio(playerid,MANSAO))
  1890.     {
  1891.         GangZoneStopFlashForAll(mansaoterritorio);
  1892.         GangZoneHideForAll(mansaoterritorio);
  1893.         GangZoneShowForAll(mansaoterritorio,COR_CV);
  1894.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1895.     }
  1896.     else if(PlayerNoTerritorio(playerid,RURAL))
  1897.     {
  1898.         GangZoneStopFlashForAll(ruralterritorio);
  1899.         GangZoneHideForAll(ruralterritorio);
  1900.         GangZoneShowForAll(ruralterritorio,COR_CV);
  1901.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1902.     }
  1903.     return 1;
  1904. }
  1905. public pcctomou(playerid)
  1906. {
  1907.     if(PlayerNoTerritorio(playerid,MORRO))
  1908.     {
  1909.         GangZoneStopFlashForAll(morroterritorio);
  1910.         GangZoneHideForAll(morroterritorio);
  1911.         GangZoneShowForAll(morroterritorio,COR_PCC);
  1912.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1913.     }
  1914.     else if(PlayerNoTerritorio(playerid,QUADRA))
  1915.     {
  1916.         GangZoneStopFlashForAll(quadraterritorio);
  1917.         GangZoneHideForAll(quadraterritorio);
  1918.         GangZoneShowForAll(quadraterritorio,COR_PCC);
  1919.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1920.     }
  1921.     else if(PlayerNoTerritorio(playerid,PARQUE))
  1922.     {
  1923.         GangZoneStopFlashForAll(parqueterritorio);
  1924.         GangZoneHideForAll(parqueterritorio);
  1925.         GangZoneShowForAll(parqueterritorio,COR_PCC);
  1926.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1927.     }
  1928.     else if(PlayerNoTerritorio(playerid,RIACHO))
  1929.     {
  1930.         GangZoneStopFlashForAll(riachoterritorio);
  1931.         GangZoneHideForAll(riachoterritorio);
  1932.         GangZoneShowForAll(riachoterritorio,COR_PCC);
  1933.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1934.     }
  1935.     else if(PlayerNoTerritorio(playerid,INDUSTRIA))
  1936.     {
  1937.         GangZoneStopFlashForAll(industriaterritorio);
  1938.         GangZoneHideForAll(industriaterritorio);
  1939.         GangZoneShowForAll(industriaterritorio,COR_PCC);
  1940.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1941.     }
  1942.     else if(PlayerNoTerritorio(playerid,AEROPORTO))
  1943.     {
  1944.         GangZoneStopFlashForAll(aeroportoterritorio);
  1945.         GangZoneHideForAll(aeroportoterritorio);
  1946.         GangZoneShowForAll(aeroportoterritorio,COR_PCC);
  1947.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1948.     }
  1949.     else if(PlayerNoTerritorio(playerid,CASARAO))
  1950.     {
  1951.         GangZoneStopFlashForAll(casaraoterritorio);
  1952.         GangZoneHideForAll(casaraoterritorio);
  1953.         GangZoneShowForAll(casaraoterritorio,COR_PCC);
  1954.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1955.     }
  1956.     else if(PlayerNoTerritorio(playerid,ESTACAO))
  1957.     {
  1958.         GangZoneStopFlashForAll(estacaoterritorio);
  1959.         GangZoneHideForAll(estacaoterritorio);
  1960.         GangZoneShowForAll(estacaoterritorio,COR_PCC);
  1961.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1962.     }
  1963.     else if(PlayerNoTerritorio(playerid,FAVELA))
  1964.     {
  1965.         GangZoneStopFlashForAll(favelaterritorio);
  1966.         GangZoneHideForAll(favelaterritorio);
  1967.         GangZoneShowForAll(favelaterritorio,COR_PCC);
  1968.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1969.     }
  1970.     else if(PlayerNoTerritorio(playerid,PISTA))
  1971.     {
  1972.         GangZoneStopFlashForAll(pistaterritorio);
  1973.         GangZoneHideForAll(pistaterritorio);
  1974.         GangZoneShowForAll(pistaterritorio,COR_PCC);
  1975.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1976.     }
  1977.     else if(PlayerNoTerritorio(playerid,ESTADIO))
  1978.     {
  1979.         GangZoneStopFlashForAll(estadioterritorio);
  1980.         GangZoneHideForAll(estadioterritorio);
  1981.         GangZoneShowForAll(estadioterritorio,COR_PCC);
  1982.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1983.     }
  1984.     else if(PlayerNoTerritorio(playerid,TERRENO))
  1985.     {
  1986.         GangZoneStopFlashForAll(terrenoterritorio);
  1987.         GangZoneHideForAll(terrenoterritorio);
  1988.         GangZoneShowForAll(terrenoterritorio,COR_PCC);
  1989.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1990.     }
  1991.     else if(PlayerNoTerritorio(playerid,PIER))
  1992.     {
  1993.         GangZoneStopFlashForAll(pierterritorio);
  1994.         GangZoneHideForAll(pierterritorio);
  1995.         GangZoneShowForAll(pierterritorio,COR_PCC);
  1996.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  1997.     }
  1998.     else if(PlayerNoTerritorio(playerid,FAZENDINHA))
  1999.     {
  2000.         GangZoneStopFlashForAll(fazendinhaterritorio);
  2001.         GangZoneHideForAll(fazendinhaterritorio);
  2002.         GangZoneShowForAll(fazendinhaterritorio,COR_PCC);
  2003.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2004.     }
  2005.     else if(PlayerNoTerritorio(playerid,DOCAS))
  2006.     {
  2007.         GangZoneStopFlashForAll(docasterritorio);
  2008.         GangZoneHideForAll(docasterritorio);
  2009.         GangZoneShowForAll(docasterritorio,COR_PCC);
  2010.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2011.     }
  2012.     else if(PlayerNoTerritorio(playerid,LINHA))
  2013.     {
  2014.         GangZoneStopFlashForAll(linhaterritorio);
  2015.         GangZoneHideForAll(linhaterritorio);
  2016.         GangZoneShowForAll(linhaterritorio,COR_PCC);
  2017.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2018.     }
  2019.     else if(PlayerNoTerritorio(playerid,MANSAO))
  2020.     {
  2021.         GangZoneStopFlashForAll(mansaoterritorio);
  2022.         GangZoneHideForAll(mansaoterritorio);
  2023.         GangZoneShowForAll(mansaoterritorio,COR_PCC);
  2024.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2025.     }
  2026.     else if(PlayerNoTerritorio(playerid,RURAL))
  2027.     {
  2028.         GangZoneStopFlashForAll(ruralterritorio);
  2029.         GangZoneHideForAll(ruralterritorio);
  2030.         GangZoneShowForAll(ruralterritorio,COR_PCC);
  2031.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2032.     }
  2033.     return 1;
  2034. }
  2035. public adatomou(playerid)
  2036. {
  2037.     if(PlayerNoTerritorio(playerid,MORRO))
  2038.     {
  2039.         GangZoneStopFlashForAll(morroterritorio);
  2040.         GangZoneHideForAll(morroterritorio);
  2041.         GangZoneShowForAll(morroterritorio,COR_ADA);
  2042.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2043.     }
  2044.     else if(PlayerNoTerritorio(playerid,QUADRA))
  2045.     {
  2046.         GangZoneStopFlashForAll(quadraterritorio);
  2047.         GangZoneHideForAll(quadraterritorio);
  2048.         GangZoneShowForAll(quadraterritorio,COR_ADA);
  2049.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2050.     }
  2051.     else if(PlayerNoTerritorio(playerid,PARQUE))
  2052.     {
  2053.         GangZoneStopFlashForAll(parqueterritorio);
  2054.         GangZoneHideForAll(parqueterritorio);
  2055.         GangZoneShowForAll(parqueterritorio,COR_ADA);
  2056.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2057.     }
  2058.     else if(PlayerNoTerritorio(playerid,RIACHO))
  2059.     {
  2060.         GangZoneStopFlashForAll(riachoterritorio);
  2061.         GangZoneHideForAll(riachoterritorio);
  2062.         GangZoneShowForAll(riachoterritorio,COR_ADA);
  2063.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2064.     }
  2065.     else if(PlayerNoTerritorio(playerid,INDUSTRIA))
  2066.     {
  2067.         GangZoneStopFlashForAll(industriaterritorio);
  2068.         GangZoneHideForAll(industriaterritorio);
  2069.         GangZoneShowForAll(industriaterritorio,COR_ADA);
  2070.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2071.     }
  2072.     else if(PlayerNoTerritorio(playerid,AEROPORTO))
  2073.     {
  2074.         GangZoneStopFlashForAll(aeroportoterritorio);
  2075.         GangZoneHideForAll(aeroportoterritorio);
  2076.         GangZoneShowForAll(aeroportoterritorio,COR_ADA);
  2077.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2078.     }
  2079.     else if(PlayerNoTerritorio(playerid,CASARAO))
  2080.     {
  2081.         GangZoneStopFlashForAll(casaraoterritorio);
  2082.         GangZoneHideForAll(casaraoterritorio);
  2083.         GangZoneShowForAll(casaraoterritorio,COR_ADA);
  2084.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2085.     }
  2086.     else if(PlayerNoTerritorio(playerid,ESTACAO))
  2087.     {
  2088.         GangZoneStopFlashForAll(estacaoterritorio);
  2089.         GangZoneHideForAll(estacaoterritorio);
  2090.         GangZoneShowForAll(estacaoterritorio,COR_ADA);
  2091.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2092.     }
  2093.     else if(PlayerNoTerritorio(playerid,FAVELA))
  2094.     {
  2095.         GangZoneStopFlashForAll(favelaterritorio);
  2096.         GangZoneHideForAll(favelaterritorio);
  2097.         GangZoneShowForAll(favelaterritorio,COR_ADA);
  2098.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2099.     }
  2100.     else if(PlayerNoTerritorio(playerid,PISTA))
  2101.     {
  2102.         GangZoneStopFlashForAll(pistaterritorio);
  2103.         GangZoneHideForAll(pistaterritorio);
  2104.         GangZoneShowForAll(pistaterritorio,COR_ADA);
  2105.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2106.     }
  2107.     else if(PlayerNoTerritorio(playerid,ESTADIO))
  2108.     {
  2109.         GangZoneStopFlashForAll(estadioterritorio);
  2110.         GangZoneHideForAll(estadioterritorio);
  2111.         GangZoneShowForAll(estadioterritorio,COR_ADA);
  2112.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2113.     }
  2114.     else if(PlayerNoTerritorio(playerid,TERRENO))
  2115.     {
  2116.         GangZoneStopFlashForAll(terrenoterritorio);
  2117.         GangZoneHideForAll(terrenoterritorio);
  2118.         GangZoneShowForAll(terrenoterritorio,COR_ADA);
  2119.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2120.     }
  2121.     else if(PlayerNoTerritorio(playerid,PIER))
  2122.     {
  2123.         GangZoneStopFlashForAll(pierterritorio);
  2124.         GangZoneHideForAll(pierterritorio);
  2125.         GangZoneShowForAll(pierterritorio,COR_ADA);
  2126.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2127.     }
  2128.     else if(PlayerNoTerritorio(playerid,FAZENDINHA))
  2129.     {
  2130.         GangZoneStopFlashForAll(fazendinhaterritorio);
  2131.         GangZoneHideForAll(fazendinhaterritorio);
  2132.         GangZoneShowForAll(fazendinhaterritorio,COR_ADA);
  2133.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2134.     }
  2135.     else if(PlayerNoTerritorio(playerid,DOCAS))
  2136.     {
  2137.         GangZoneStopFlashForAll(docasterritorio);
  2138.         GangZoneHideForAll(docasterritorio);
  2139.         GangZoneShowForAll(docasterritorio,COR_ADA);
  2140.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2141.     }
  2142.     else if(PlayerNoTerritorio(playerid,LINHA))
  2143.     {
  2144.         GangZoneStopFlashForAll(linhaterritorio);
  2145.         GangZoneHideForAll(linhaterritorio);
  2146.         GangZoneShowForAll(linhaterritorio,COR_ADA);
  2147.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2148.     }
  2149.     else if(PlayerNoTerritorio(playerid,MANSAO))
  2150.     {
  2151.         GangZoneStopFlashForAll(mansaoterritorio);
  2152.         GangZoneHideForAll(mansaoterritorio);
  2153.         GangZoneShowForAll(mansaoterritorio,COR_ADA);
  2154.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2155.     }
  2156.     else if(PlayerNoTerritorio(playerid,RURAL))
  2157.     {
  2158.         GangZoneStopFlashForAll(ruralterritorio);
  2159.         GangZoneHideForAll(ruralterritorio);
  2160.         GangZoneShowForAll(ruralterritorio,COR_ADA);
  2161.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2162.     }
  2163.     return 1;
  2164. }
  2165. public tcptomou(playerid)
  2166. {
  2167.     if(PlayerNoTerritorio(playerid,MORRO))
  2168.     {
  2169.         GangZoneStopFlashForAll(morroterritorio);
  2170.         GangZoneHideForAll(morroterritorio);
  2171.         GangZoneShowForAll(morroterritorio,COR_TCP);
  2172.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2173.     }
  2174.     else if(PlayerNoTerritorio(playerid,QUADRA))
  2175.     {
  2176.         GangZoneStopFlashForAll(quadraterritorio);
  2177.         GangZoneHideForAll(quadraterritorio);
  2178.         GangZoneShowForAll(quadraterritorio,COR_TCP);
  2179.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2180.     }
  2181.     else if(PlayerNoTerritorio(playerid,PARQUE))
  2182.     {
  2183.         GangZoneStopFlashForAll(parqueterritorio);
  2184.         GangZoneHideForAll(parqueterritorio);
  2185.         GangZoneShowForAll(parqueterritorio,COR_TCP);
  2186.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2187.     }
  2188.     else if(PlayerNoTerritorio(playerid,RIACHO))
  2189.     {
  2190.         GangZoneStopFlashForAll(riachoterritorio);
  2191.         GangZoneHideForAll(riachoterritorio);
  2192.         GangZoneShowForAll(riachoterritorio,COR_TCP);
  2193.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2194.     }
  2195.     else if(PlayerNoTerritorio(playerid,INDUSTRIA))
  2196.     {
  2197.         GangZoneStopFlashForAll(industriaterritorio);
  2198.         GangZoneHideForAll(industriaterritorio);
  2199.         GangZoneShowForAll(industriaterritorio,COR_TCP);
  2200.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2201.     }
  2202.     else if(PlayerNoTerritorio(playerid,AEROPORTO))
  2203.     {
  2204.         GangZoneStopFlashForAll(aeroportoterritorio);
  2205.         GangZoneHideForAll(aeroportoterritorio);
  2206.         GangZoneShowForAll(aeroportoterritorio,COR_TCP);
  2207.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2208.     }
  2209.     else if(PlayerNoTerritorio(playerid,CASARAO))
  2210.     {
  2211.         GangZoneStopFlashForAll(casaraoterritorio);
  2212.         GangZoneHideForAll(casaraoterritorio);
  2213.         GangZoneShowForAll(casaraoterritorio,COR_TCP);
  2214.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2215.     }
  2216.     else if(PlayerNoTerritorio(playerid,ESTACAO))
  2217.     {
  2218.         GangZoneStopFlashForAll(estacaoterritorio);
  2219.         GangZoneHideForAll(estacaoterritorio);
  2220.         GangZoneShowForAll(estacaoterritorio,COR_TCP);
  2221.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2222.     }
  2223.     else if(PlayerNoTerritorio(playerid,FAVELA))
  2224.     {
  2225.         GangZoneStopFlashForAll(favelaterritorio);
  2226.         GangZoneHideForAll(favelaterritorio);
  2227.         GangZoneShowForAll(favelaterritorio,COR_TCP);
  2228.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2229.     }
  2230.     else if(PlayerNoTerritorio(playerid,PISTA))
  2231.     {
  2232.         GangZoneStopFlashForAll(pistaterritorio);
  2233.         GangZoneHideForAll(pistaterritorio);
  2234.         GangZoneShowForAll(pistaterritorio,COR_TCP);
  2235.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2236.     }
  2237.     else if(PlayerNoTerritorio(playerid,ESTADIO))
  2238.     {
  2239.         GangZoneStopFlashForAll(estadioterritorio);
  2240.         GangZoneHideForAll(estadioterritorio);
  2241.         GangZoneShowForAll(estadioterritorio,COR_TCP);
  2242.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2243.     }
  2244.     else if(PlayerNoTerritorio(playerid,TERRENO))
  2245.     {
  2246.         GangZoneStopFlashForAll(terrenoterritorio);
  2247.         GangZoneHideForAll(terrenoterritorio);
  2248.         GangZoneShowForAll(terrenoterritorio,COR_TCP);
  2249.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2250.     }
  2251.     else if(PlayerNoTerritorio(playerid,PIER))
  2252.     {
  2253.         GangZoneStopFlashForAll(pierterritorio);
  2254.         GangZoneHideForAll(pierterritorio);
  2255.         GangZoneShowForAll(pierterritorio,COR_TCP);
  2256.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2257.     }
  2258.     else if(PlayerNoTerritorio(playerid,FAZENDINHA))
  2259.     {
  2260.         GangZoneStopFlashForAll(fazendinhaterritorio);
  2261.         GangZoneHideForAll(fazendinhaterritorio);
  2262.         GangZoneShowForAll(fazendinhaterritorio,COR_TCP);
  2263.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2264.     }
  2265.     else if(PlayerNoTerritorio(playerid,DOCAS))
  2266.     {
  2267.         GangZoneStopFlashForAll(docasterritorio);
  2268.         GangZoneHideForAll(docasterritorio);
  2269.         GangZoneShowForAll(docasterritorio,COR_TCP);
  2270.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2271.     }
  2272.     else if(PlayerNoTerritorio(playerid,LINHA))
  2273.     {
  2274.         GangZoneStopFlashForAll(linhaterritorio);
  2275.         GangZoneHideForAll(linhaterritorio);
  2276.         GangZoneShowForAll(linhaterritorio,COR_TCP);
  2277.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2278.     }
  2279.     else if(PlayerNoTerritorio(playerid,MANSAO))
  2280.     {
  2281.         GangZoneStopFlashForAll(mansaoterritorio);
  2282.         GangZoneHideForAll(mansaoterritorio);
  2283.         GangZoneShowForAll(mansaoterritorio,COR_TCP);
  2284.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2285.     }
  2286.     else if(PlayerNoTerritorio(playerid,RURAL))
  2287.     {
  2288.         GangZoneStopFlashForAll(ruralterritorio);
  2289.         GangZoneHideForAll(ruralterritorio);
  2290.         GangZoneShowForAll(ruralterritorio,COR_TCP);
  2291.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2292.     }
  2293.     return 1;
  2294. }
  2295. public coptomou(playerid)
  2296. {
  2297.     if(PlayerNoTerritorio(playerid,MORRO))
  2298.     {
  2299.         GangZoneStopFlashForAll(morroterritorio);
  2300.         GangZoneHideForAll(morroterritorio);
  2301.         GangZoneShowForAll(morroterritorio,COR_COP);
  2302.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2303.     }
  2304.     else if(PlayerNoTerritorio(playerid,QUADRA))
  2305.     {
  2306.         GangZoneStopFlashForAll(quadraterritorio);
  2307.         GangZoneHideForAll(quadraterritorio);
  2308.         GangZoneShowForAll(quadraterritorio,COR_COP);
  2309.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2310.     }
  2311.     else if(PlayerNoTerritorio(playerid,PARQUE))
  2312.     {
  2313.         GangZoneStopFlashForAll(parqueterritorio);
  2314.         GangZoneHideForAll(parqueterritorio);
  2315.         GangZoneShowForAll(parqueterritorio,COR_COP);
  2316.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2317.     }
  2318.     else if(PlayerNoTerritorio(playerid,RIACHO))
  2319.     {
  2320.         GangZoneStopFlashForAll(riachoterritorio);
  2321.         GangZoneHideForAll(riachoterritorio);
  2322.         GangZoneShowForAll(riachoterritorio,COR_COP);
  2323.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2324.     }
  2325.     else if(PlayerNoTerritorio(playerid,INDUSTRIA))
  2326.     {
  2327.         GangZoneStopFlashForAll(industriaterritorio);
  2328.         GangZoneHideForAll(industriaterritorio);
  2329.         GangZoneShowForAll(industriaterritorio,COR_COP);
  2330.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2331.     }
  2332.     else if(PlayerNoTerritorio(playerid,AEROPORTO))
  2333.     {
  2334.         GangZoneStopFlashForAll(aeroportoterritorio);
  2335.         GangZoneHideForAll(aeroportoterritorio);
  2336.         GangZoneShowForAll(aeroportoterritorio,COR_COP);
  2337.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2338.     }
  2339.     else if(PlayerNoTerritorio(playerid,CASARAO))
  2340.     {
  2341.         GangZoneStopFlashForAll(casaraoterritorio);
  2342.         GangZoneHideForAll(casaraoterritorio);
  2343.         GangZoneShowForAll(casaraoterritorio,COR_COP);
  2344.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2345.     }
  2346.     else if(PlayerNoTerritorio(playerid,ESTACAO))
  2347.     {
  2348.         GangZoneStopFlashForAll(estacaoterritorio);
  2349.         GangZoneHideForAll(estacaoterritorio);
  2350.         GangZoneShowForAll(estacaoterritorio,COR_COP);
  2351.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2352.     }
  2353.     else if(PlayerNoTerritorio(playerid,FAVELA))
  2354.     {
  2355.         GangZoneStopFlashForAll(favelaterritorio);
  2356.         GangZoneHideForAll(favelaterritorio);
  2357.         GangZoneShowForAll(favelaterritorio,COR_COP);
  2358.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2359.     }
  2360.     else if(PlayerNoTerritorio(playerid,PISTA))
  2361.     {
  2362.         GangZoneStopFlashForAll(pistaterritorio);
  2363.         GangZoneHideForAll(pistaterritorio);
  2364.         GangZoneShowForAll(pistaterritorio,COR_COP);
  2365.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2366.     }
  2367.     else if(PlayerNoTerritorio(playerid,ESTADIO))
  2368.     {
  2369.         GangZoneStopFlashForAll(estadioterritorio);
  2370.         GangZoneHideForAll(estadioterritorio);
  2371.         GangZoneShowForAll(estadioterritorio,COR_COP);
  2372.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2373.     }
  2374.     else if(PlayerNoTerritorio(playerid,TERRENO))
  2375.     {
  2376.         GangZoneStopFlashForAll(terrenoterritorio);
  2377.         GangZoneHideForAll(terrenoterritorio);
  2378.         GangZoneShowForAll(terrenoterritorio,COR_COP);
  2379.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2380.     }
  2381.     else if(PlayerNoTerritorio(playerid,PIER))
  2382.     {
  2383.         GangZoneStopFlashForAll(pierterritorio);
  2384.         GangZoneHideForAll(pierterritorio);
  2385.         GangZoneShowForAll(pierterritorio,COR_COP);
  2386.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2387.     }
  2388.     else if(PlayerNoTerritorio(playerid,FAZENDINHA))
  2389.     {
  2390.         GangZoneStopFlashForAll(fazendinhaterritorio);
  2391.         GangZoneHideForAll(fazendinhaterritorio);
  2392.         GangZoneShowForAll(fazendinhaterritorio,COR_COP);
  2393.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2394.     }
  2395.     else if(PlayerNoTerritorio(playerid,DOCAS))
  2396.     {
  2397.         GangZoneStopFlashForAll(docasterritorio);
  2398.         GangZoneHideForAll(docasterritorio);
  2399.         GangZoneShowForAll(docasterritorio,COR_COP);
  2400.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2401.     }
  2402.     else if(PlayerNoTerritorio(playerid,LINHA))
  2403.     {
  2404.         GangZoneStopFlashForAll(linhaterritorio);
  2405.         GangZoneHideForAll(linhaterritorio);
  2406.         GangZoneShowForAll(linhaterritorio,COR_COP);
  2407.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2408.     }
  2409.     else if(PlayerNoTerritorio(playerid,MANSAO))
  2410.     {
  2411.         GangZoneStopFlashForAll(mansaoterritorio);
  2412.         GangZoneHideForAll(mansaoterritorio);
  2413.         GangZoneShowForAll(mansaoterritorio,COR_COP);
  2414.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2415.     }
  2416.     else if(PlayerNoTerritorio(playerid,RURAL))
  2417.     {
  2418.         GangZoneStopFlashForAll(ruralterritorio);
  2419.         GangZoneHideForAll(ruralterritorio);
  2420.         GangZoneShowForAll(ruralterritorio,COR_COP);
  2421.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2422.     }
  2423.     return 1;
  2424. }
  2425. stock PlayerNoTerritorio(playerid, Float:xmin, Float:ymin, Float:xmax, Float:ymax)
  2426. {
  2427.     new Float:x, Float:y, Float:z;
  2428.     GetPlayerPos(playerid, x, y, z);
  2429.     if(x >= xmin && y >= ymin && xmax <= xmax && y <= ymax) return true;
  2430.     return false;
  2431. }
  2432. public AnuncioRandamonico()
  2433. {
  2434.     new random1 = random(sizeof(Anuncios));
  2435.     new random2 = random(sizeof(CoresAnuncios));
  2436.     format(TextoString, sizeof(TextoString), "%s", Anuncios[random1]);
  2437.     SendClientMessageToAll(CoresAnuncios[random2],TextoString);
  2438.     return 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement