Advertisement
Guest User

Bruno Bernardo Guerra Total War

a guest
Jun 20th, 2013
1,045
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 136.01 KB | None | 0 0
  1. /*
  2.  
  3.    GameMode Feito Por BrunoBernardo(BrunoTadeu) PorFavor Nao Retire Os Creditos
  4.           Qualquer Erro Ou Duvida Por Favor Entre Em Contato
  5.                             Em Breve Atualizaçoes                           */
  6.  
  7. //Includes
  8. #include <a_samp>
  9. #include <zcmd>
  10. #include <streamer>
  11. #include <DOF2>
  12. //Salvar Contas
  13. #define SALVARCONTAS "Registrados/%s.ini"
  14. //Numero de cada org
  15. #define CV 1
  16. #define PCC 2
  17. #define ADA 3
  18. #define TCP 4
  19. #define COP 5
  20. //Coordenadas Territorios
  21. #define MORRO 2117.333, -1069.962, 2261.841, -959.4252
  22. #define QUADRA 2212.0024, -1487.6130, 2340.5911, -1382.3148
  23. #define PARQUE 1866.346, -1259.454, 2052.685, -1137.074
  24. #define RIACHO 706.481, -1591.064, 782.5377, -1417.363
  25. #define INDUSTRIA 2105.925, -2297.709, 2315.081, -2092.427
  26. #define AEROPORTO 1368.174, -2380.612, 1592.542, -2218.755
  27. #define CASARAO 1098.173, -2084.531, 1299.723, -2005.577
  28. #define ESTACAO 1687.613, -1958.204, 1813.106, -1859.51
  29. #define FAVELA 2398.743, -1077.857, 2588.885, -916.0001
  30. #define PISTA 1858.74, -1452.893, 1976.628, -1354.199
  31. #define ESTADIO 2637.148437, -1888.911621, 2829.148437, -1656.911621
  32. #define TERRENO 1195.086914, -1289.666992, 1339.086914, -1153.666992
  33. #define PIER 338.122528, -2093.307128, 410.122528, -1917.307128
  34. #define FAZENDINHA 988.868652, -407.460083, 1084.868652, -279.460083
  35. #define DOCAS 2666.996337, -2574.054443, 2802.996337, -2326.054443
  36. #define LINHA 1998.128662, -676.726684, 2150.128662, -524.726684
  37. #define MANSAO 227.422027, -1225.652099, 371.422027, -1113.652099
  38. #define RURAL 429.011718, -862.343750, 589.011718, -710.343750
  39. //Coordenadas dos Equipar
  40. #define EQUIPCV 619.4691,-1631.1891,16.6680
  41. #define EQUIPPCC 1017.6931,-1100.8049,23.8349
  42. #define EQUIPADA 1674.1227,-2121.7297,14.1460
  43. #define EQUIPTCP 2610.2988,-2149.8779,-0.1922
  44. #define EQUIPCOPS 1579.8540,-1635.2819,13.5610
  45. //Coordenadas dos Disfarçes
  46. #define DISFARCECV 619.0667,-1626.3339,16.7621
  47. #define DISFARCEPCC 1004.2588,-1102.7578,23.8281
  48. #define DISFARCEADA 1671.6729,-2119.6582,13.5469
  49. #define DISFARCETCP 2608.7842,-2146.4167,-0.2188
  50. #define DISFARCECOPS 1578.1912,-1634.7853,13.5624
  51. //Barracas de Lanches
  52. #define SORVETE 1863.6661,-1396.4680,13.4797
  53. #define HOTDOG 2151.8064,-1013.4453,62.7985
  54. #define HAMBURGUER 2266.3564,-1431.9099,24.0000
  55. //Entradas e Saidas HQs
  56. #define ENTRADACV 614.7441,-1638.1099,16.4733
  57. #define SAIDACV 2194.6973,-1204.0468,1049.0234
  58. #define ENTRADAPCC 1008.1033,-1101.6897,23.8349
  59. #define SAIDAPCC 364.3205,-74.1893,1001.5078
  60. #define ENTRADAADA 1674.9597,-2123.2195,14.1460
  61. #define SAIDAADA 2365.2273,-1134.0299,1050.8750
  62. #define ENTRADATCP 2580.7283,-2162.3169,0.6433
  63. #define SAIDATCP 318.6884,1114.6753,1083.8828
  64. #define ENTRADACOP 1555.3207,-1675.4637,16.1953
  65. #define SAIDACOP 288.7287,168.5377,1007.1719
  66. //Carros
  67. #define CARROCV1 1
  68. #define CARROCV2 8
  69. #define CARROPCC1 9
  70. #define CARROPCC2 16
  71. #define CARROADA1 17
  72. #define CARROADA2 24
  73. #define CARROTCP1 25
  74. #define CARROTCP2 34
  75. #define CARROCOP1 35
  76. #define CARROCOP2 48
  77. //Dialogs
  78. #define DIALOG_SUICIDIO 1
  79. #define DIALOG_CREDITOS 2
  80. #define DIALOG_AJUDA 3
  81. #define DIALOG_RANK 4
  82. #define DIALOG_EQUIPAR 5
  83. #define DIALOG_EFEITOS 6
  84. #define DIALOG_BARRACA1 7
  85. #define DIALOG_BARRACA2 8
  86. #define DIALOG_BARRACA3 9
  87. #define DIALOG_DISFARCE 10
  88. #define DIALOG_REGISTRO 11
  89. #define DIALOG_LOGAR 12
  90. //Cores Usadas
  91. #define COR_CV 0xAA333399
  92. #define COR_PCC 0x00669999
  93. #define COR_ADA 0xFF830099
  94. #define COR_TCP 0x33AA3399
  95. #define COR_COP 0x807FFE99
  96. #define COR_MSG 0xA2B5CD99
  97. #define COR_MSG2 0x00BFFF99
  98. #define COR_TR 0xFFCCFF99
  99. #define COR_3D 0xFF000099
  100. #define COR_EQUIPAR 0x00BFFF99
  101. #define COR_LOJA 0x00F6F699
  102. //Facções BR
  103. static gTeam[MAX_PLAYERS];
  104. //New's do total acumulado
  105. new CvAcumulado[MAX_PLAYERS];
  106. new PccAcumulado[MAX_PLAYERS];
  107. new AdaAcumulado[MAX_PLAYERS];
  108. new TcpAcumulado[MAX_PLAYERS];
  109. new CopAcumulado[MAX_PLAYERS];
  110. //New's do ganhando
  111. new CvGanhando[MAX_PLAYERS];
  112. new PccGanhando[MAX_PLAYERS];
  113. new AdaGanhando[MAX_PLAYERS];
  114. new TcpGanhando[MAX_PLAYERS];
  115. new CopGanhando[MAX_PLAYERS];
  116. //New's do perdendo
  117. new CvPerdendo[MAX_PLAYERS];
  118. new AdaPerdendo[MAX_PLAYERS];
  119. new PccPerdendo[MAX_PLAYERS];
  120. new TcpPerdendo[MAX_PLAYERS];
  121. new CopPerdendo[MAX_PLAYERS];
  122. new Resultado[128];
  123. new playernome[MAX_PLAYER_NAME];
  124. new TextoString[256];
  125. new Matou[MAX_PLAYERS];
  126. new Morreu[MAX_PLAYERS];
  127. new Logou[MAX_PLAYERS];
  128. //TextDrawns
  129. new Text:Bruno0;
  130. new Text:Bruno1;
  131. new Text:Bruno2;
  132. new Text:Bruno3;
  133. new Text:relogio;
  134. new Text:Logados;
  135. new Text:ping[MAX_PLAYERS];
  136. //Tomando Territorio
  137. new morroterritorio;
  138. new quadraterritorio;
  139. new parqueterritorio;
  140. new riachoterritorio;
  141. new industriaterritorio;
  142. new aeroportoterritorio;
  143. new casaraoterritorio;
  144. new estacaoterritorio;
  145. new favelaterritorio;
  146. new pistaterritorio;
  147. new estadioterritorio;
  148. new terrenoterritorio;
  149. new pierterritorio;
  150. new fazendinhaterritorio;
  151. new docasterritorio;
  152. new linhaterritorio;
  153. new mansaoterritorio;
  154. new ruralterritorio;
  155. new morrodono[120];
  156. new quadradono[120];
  157. new parquedono[120];
  158. new riachodono[120];
  159. new industriadono[120];
  160. new aeroportodono[120];
  161. new casaraodono[120];
  162. new estacaodono[120];
  163. new faveladono[120];
  164. new pistadono[120];
  165. new estadiodono[120];
  166. new terrenodono[120];
  167. new pierdono[120];
  168. new fazendinhadono[120];
  169. new docasdono[120];
  170. new linhadono[120];
  171. new mansaodono[120];
  172. new ruraldono[120];
  173. forward tomandogz(playerid);
  174. forward cvtomou(playerid);
  175. forward pcctomou(playerid);
  176. forward adatomou(playerid);
  177. forward tcptomou(playerid);
  178. forward coptomou(playerid);
  179. forward PlayerCv(playerid);
  180. forward CarrosCv(carid);
  181. forward PlayerPcc(playerid);
  182. forward CarrosPcc(carid);
  183. forward PlayerAda(playerid);
  184. forward CarrosAda(carid);
  185. forward PlayerTcp(playerid);
  186. forward CarrosTcp(carid);
  187. forward PlayerCop(playerid);
  188. forward CarrosCop(carid);
  189. forward HoraServidor();
  190. forward MostrarPing(playerid);
  191. forward ChatLimpo(playerid, lines);
  192. forward MapaRandamonico();
  193. forward ModeRandamonico();
  194. forward NomeServidorRandamonico();
  195. forward AnuncioRandamonico();
  196. new NomesMapa[3][256] =
  197. {
  198.     "Los Santos",
  199.     "Bruno Tadeu",
  200.     "Bruno Bernardo"
  201. };
  202.  
  203. new NomesMode[3][256] =
  204. {
  205.     "Guerra Total",
  206.     "BB GT",
  207.     "BT GT"
  208. };
  209.  
  210. new NomeDoServidor[2][256] =
  211. {
  212.     "~x~ |BR| Guerra Total ©ORIGINAL ~x~",
  213.     "~x~ Click aqui e jogue conosco ~x~"
  214. };
  215.  
  216. new Anuncios[5][256] =
  217. {
  218.     "|AVISOS| --:> Vistem www.Projetos-BrunoTadeu.blogspot.com.",
  219.     "|AVISOS| --:> GameMode em desenvolvimento fiquem atentos as atualizações.",
  220.     "|AVISOS| --:> Não retire os creditos do GM.",
  221.     "|AVISOS| --:> GameMode criado por Bruno Bernardo ou Bruno Tadeu.",
  222.     "|AVISOS| --:> Respeite as regras de nosso servidor."
  223. };
  224.  
  225. new CoresAnuncios[] =
  226. {
  227.     COR_CV,
  228.     COR_ADA,
  229.     COR_PCC,
  230.     COR_COP,
  231.     COR_TCP,
  232.     COR_MSG,
  233.     COR_MSG2,
  234.     COR_TR,
  235.     COR_3D,
  236.     COR_EQUIPAR
  237. };
  238.  
  239. main()
  240. {
  241.     print("\n");
  242.     print("************************************");
  243.     print("*                                  *");
  244.     print("*      ----------------------      *");
  245.     print("*      Guerra Total War v2.0       *");
  246.     print("*      ----------------------      *");
  247.     print("*         By BrunoBernardo         *");
  248.     print("*                                  *");
  249.     print("************************************");
  250.     print("\n");
  251. }
  252. public OnPlayerConnect(playerid)
  253. {
  254.     GangZoneShowForPlayer(playerid, morroterritorio, COR_TR);
  255.     GangZoneShowForPlayer(playerid, quadraterritorio, COR_TR);
  256.     GangZoneShowForPlayer(playerid, parqueterritorio, COR_TR);
  257.     GangZoneShowForPlayer(playerid, riachoterritorio, COR_TR);
  258.     GangZoneShowForPlayer(playerid, industriaterritorio, COR_TR);
  259.     GangZoneShowForPlayer(playerid, aeroportoterritorio, COR_TR);
  260.     GangZoneShowForPlayer(playerid, casaraoterritorio, COR_TR);
  261.     GangZoneShowForPlayer(playerid, estacaoterritorio, COR_TR);
  262.     GangZoneShowForPlayer(playerid, favelaterritorio, COR_TR);
  263.     GangZoneShowForPlayer(playerid, pistaterritorio, COR_TR);
  264.     GangZoneShowForPlayer(playerid, estadioterritorio, COR_TR);
  265.     GangZoneShowForPlayer(playerid, terrenoterritorio, COR_TR);
  266.     GangZoneShowForPlayer(playerid, pierterritorio, COR_TR);
  267.     GangZoneShowForPlayer(playerid, fazendinhaterritorio, COR_TR);
  268.     GangZoneShowForPlayer(playerid, docasterritorio, COR_TR);
  269.     GangZoneShowForPlayer(playerid, linhaterritorio, COR_TR);
  270.     GangZoneShowForPlayer(playerid, mansaoterritorio, COR_TR);
  271.     GangZoneShowForPlayer(playerid, ruralterritorio, COR_TR);
  272.     ChatLimpo(playerid, 10);
  273.     SendClientMessage(playerid, COR_TCP, "Seja Bem Vindo Ao Guerra Total.");
  274.     SendClientMessage(playerid, COR_TCP, "Por Favor Respeite Nossas Regras e Divulgue Nosso IP.");
  275.     GetPlayerName(playerid, playernome, sizeof(playernome));
  276.     format(TextoString, sizeof(TextoString), SALVARCONTAS, playernome);
  277.     if(!DOF2_FileExists(TextoString))
  278.     {
  279.         format(TextoString,sizeof(TextoString),"     {00BFFF}BrunoBernardo Guerra Total\n{FFFFFF}***********************************************\n\n>> Conta: {00F6F6}%s{FFFFFF}\n>> Status: {AA3333}Não Registrada\n\n{FFFFFF}Coloque sua senha abaixo:",playernome);
  280.         ShowPlayerDialog(playerid,DIALOG_REGISTRO,DIALOG_STYLE_PASSWORD,"Fazedo Seu - Registro:",TextoString,"Registrar-se","Sair");
  281.     }
  282.     else
  283.     {
  284.         format(TextoString,sizeof(TextoString),"     {00BFFF}BrunoBernardo Guerra Total\n{FFFFFF}***********************************************\n\n>> Conta: {00F6F6}%s{FFFFFF}\n>> Status: {33AA33}Registrada\n\n{FFFFFF}Coloque sua senha abaixo:",playernome);
  285.         ShowPlayerDialog(playerid,DIALOG_LOGAR,DIALOG_STYLE_PASSWORD,"Fazedo Seu - Login:",TextoString,"Logar-se","Sair");
  286.     }
  287.     format(TextoString, sizeof(TextoString), "%s Entrou no Servidor!", playernome);
  288.     SendClientMessageToAll(COR_MSG, TextoString);
  289.     return 1;
  290. }
  291. public OnPlayerDisconnect(playerid)
  292. {
  293.     GetPlayerName(playerid, playernome, sizeof(playernome));
  294.     format(TextoString, sizeof(TextoString), "%s Saiu do Servidor! ", playernome);
  295.     SendClientMessageToAll(COR_CV, TextoString);
  296.     SalvarPlayer(playerid);
  297.     return 1;
  298. }
  299. public OnPlayerSpawn(playerid)
  300. {
  301.     TextDrawShowForPlayer(playerid, Bruno0);
  302.     TextDrawShowForPlayer(playerid, Bruno1);
  303.     TextDrawShowForPlayer(playerid, Bruno2);
  304.     TextDrawShowForPlayer(playerid, Bruno3);
  305.     TextDrawShowForPlayer(playerid, relogio);
  306.     format(TextoString, 15, "%d/50",PlayersConectados());
  307.     TextDrawSetString(Logados, TextoString);
  308.     TextDrawShowForPlayer(playerid, Logados);
  309.     ChatLimpo(playerid, 10);
  310.     SendClientMessage(playerid, COR_MSG, ".•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.");
  311.     SendClientMessage(playerid, COR_MSG, ".•.•.•.•.     {FFFFFF}[Creditos] - Bruno Bernardo ou Bruno Tadeu           ");
  312.     SendClientMessage(playerid, COR_MSG, ".•.•.•.•.     {FFFFFF}[Blog] - www.Projetos-BrunoTadeu.blogspot.com.br     ");
  313.     SendClientMessage(playerid, COR_MSG, ".•.•.•.•.     {FFFFFF}[OBS] - PorFavor não retire os creditos              ");
  314.     SendClientMessage(playerid, COR_MSG, ".•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.");
  315.     GivePlayerMoney(playerid, 1000);
  316.     if(gTeam[playerid] == CV)
  317.     {
  318.       SetPlayerInterior(playerid,0);
  319.       SetPlayerColor(playerid, COR_CV);
  320.       SetPlayerPos(playerid, 620.2620,-1630.9288,16.6196);
  321.       SetPlayerHealth(playerid, 50);
  322.     }
  323.     if(gTeam[playerid] == PCC)
  324.     {
  325.       SetPlayerInterior(playerid,0);
  326.       SetPlayerColor(playerid, COR_PCC);
  327.       SetPlayerPos(playerid, 1000.9489,-1102.6538,23.8281);
  328.       SetPlayerHealth(playerid, 50);
  329.     }
  330.     if(gTeam[playerid] == ADA)
  331.     {
  332.       SetPlayerInterior(playerid,0);
  333.       SetPlayerColor(playerid, COR_ADA);
  334.       SetPlayerPos(playerid, 1675.9711,-2120.0515,13.5469);
  335.       SetPlayerHealth(playerid, 50);
  336.     }
  337.     if(gTeam[playerid] == TCP)
  338.     {
  339.       SetPlayerInterior(playerid,0);
  340.       SetPlayerColor(playerid, COR_TCP);
  341.       SetPlayerPos(playerid, 2586.1199,-2161.5107,-0.2188);
  342.       SetPlayerHealth(playerid, 50);
  343.     }
  344.     if(gTeam[playerid] == COP)
  345.     {
  346.       SetPlayerInterior(playerid,0);
  347.       SetPlayerColor(playerid, COR_COP);
  348.       SetPlayerPos(playerid, 1579.5371,-1635.9513,13.5602);
  349.       SetPlayerHealth(playerid, 50);
  350.     }
  351.     return 1;
  352. }
  353. CMD:entrar(playerid, params[])
  354. {
  355.     if(IsPlayerConnected(playerid))
  356.     {
  357.         //HQ CV Entrada
  358.         if(IsPlayerInRangeOfPoint(playerid, 3.0, ENTRADACV))
  359.         {
  360.             GameTextForPlayer(playerid, "~r~HQ CV",5000,1);
  361.             SetPlayerInterior(playerid,6);
  362.             SetPlayerPos(playerid, SAIDACV);
  363.         }
  364.         //HQ PCC Entrada
  365.         else if(IsPlayerInRangeOfPoint(playerid, 3.0, ENTRADAPCC))
  366.         {
  367.             GameTextForPlayer(playerid, "~g~HQ PCC",5000,1);
  368.             SetPlayerInterior(playerid,10);
  369.             SetPlayerPos(playerid, SAIDAPCC);
  370.         }
  371.         //HQ ADA Entrada
  372.         else if(IsPlayerInRangeOfPoint(playerid, 3.0, ENTRADAADA))
  373.         {
  374.             GameTextForPlayer(playerid, "~b~HQ ADA",5000,1);
  375.             SetPlayerInterior(playerid,8);
  376.             SetPlayerPos(playerid, SAIDAADA);
  377.         }
  378.         //HQ TCP Entrada
  379.         else if(IsPlayerInRangeOfPoint(playerid, 3.0, ENTRADATCP))
  380.         {
  381.             GameTextForPlayer(playerid, "~p~HQ TCP",5000,1);
  382.             SetPlayerInterior(playerid,5);
  383.             SetPlayerPos(playerid, SAIDATCP);
  384.         }
  385.         //HQ COP Entrada
  386.         else if(IsPlayerInRangeOfPoint(playerid, 3.0, ENTRADACOP))
  387.         {
  388.             GameTextForPlayer(playerid, "~p~Departamento COP",5000,1);
  389.             SetPlayerInterior(playerid,3);
  390.             SetPlayerPos(playerid, SAIDACOP);
  391.         }
  392.     }
  393. }
  394. CMD:sair(playerid, params[])
  395. {
  396.     if(IsPlayerConnected(playerid))
  397.     {
  398.         //HQ CV Saida
  399.         if(IsPlayerInRangeOfPoint(playerid, 3.0, SAIDACV))
  400.         {
  401.             GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
  402.             SetPlayerInterior(playerid,0);
  403.             SetPlayerPos(playerid, ENTRADACV);
  404.         }
  405.         //HQ PCC Saida
  406.         else if(IsPlayerInRangeOfPoint(playerid, 3.0, SAIDAPCC))
  407.         {
  408.             GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
  409.             SetPlayerInterior(playerid,0);
  410.             SetPlayerPos(playerid, ENTRADAPCC);
  411.         }
  412.         //HQ ADA Saida
  413.         else if(IsPlayerInRangeOfPoint(playerid, 3.0, SAIDAADA))
  414.         {
  415.             GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
  416.             SetPlayerInterior(playerid,0);
  417.             SetPlayerPos(playerid, ENTRADAADA);
  418.         }
  419.         //HQ TCP Saida
  420.         else if(IsPlayerInRangeOfPoint(playerid, 3.0, SAIDATCP))
  421.         {
  422.             GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
  423.             SetPlayerInterior(playerid,0);
  424.             SetPlayerPos(playerid, ENTRADATCP);
  425.         }
  426.         //HQ COP Saida
  427.         else if(IsPlayerInRangeOfPoint(playerid, 3.0, SAIDACOP))
  428.         {
  429.             GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
  430.             SetPlayerInterior(playerid,0);
  431.             SetPlayerPos(playerid, ENTRADACOP);
  432.         }
  433.     }
  434. }
  435. CMD:tomarterritorio(playerid, params[])
  436. {
  437.     if(PlayerNoTerritorio(playerid,MORRO) || PlayerNoTerritorio(playerid,QUADRA) || PlayerNoTerritorio(playerid,PARQUE) || PlayerNoTerritorio(playerid,RIACHO) || PlayerNoTerritorio(playerid,INDUSTRIA) || PlayerNoTerritorio(playerid,AEROPORTO) ||
  438.     PlayerNoTerritorio(playerid,CASARAO) || PlayerNoTerritorio(playerid,ESTACAO) || PlayerNoTerritorio(playerid,FAVELA) || PlayerNoTerritorio(playerid,PISTA) || PlayerNoTerritorio(playerid,ESTADIO) || PlayerNoTerritorio(playerid,TERRENO) ||
  439.     PlayerNoTerritorio(playerid,PIER) || PlayerNoTerritorio(playerid,FAZENDINHA) || PlayerNoTerritorio(playerid,DOCAS) || PlayerNoTerritorio(playerid,LINHA) || PlayerNoTerritorio(playerid,MANSAO) || PlayerNoTerritorio(playerid,RURAL))
  440.     {
  441.         if(gTeam[playerid] == CV || gTeam[playerid] == PCC || gTeam[playerid] == ADA || gTeam[playerid] == TCP || gTeam[playerid] == COP)
  442.         {
  443.             SendClientMessage(playerid, COR_MSG,"Você deve ficar na área por 30 segundos, os cops e as outras facções já foram avisados! Cuidado!");
  444.             SetTimerEx("tomandogz", 1000, 0,"e",playerid);
  445.             return 1;
  446.         }
  447.     }
  448.     return SendClientMessage(playerid, COR_MSG,"Você não está em um território");
  449. }
  450. CMD:suicidar(playerid, params[])
  451. {
  452.     ShowPlayerDialog(playerid, DIALOG_SUICIDIO, DIALOG_STYLE_MSGBOX, "Suicidio","Você Acaba De Se Matar", "Fechar", "");
  453.     SetPlayerHealth(playerid, 0);
  454.     return 1;
  455. }
  456. CMD:creditos(playerid, params[])
  457. {
  458.     ShowPlayerDialog(playerid, DIALOG_CREDITOS, DIALOG_STYLE_MSGBOX, "Creditos","GameMode Criador Por:\n\nBrunoBernardo (Bruno Tadeu)\n\nPor Favor Nao Retire Os Creditos", "Fechar", "");
  459.     return 1;
  460. }
  461. CMD:ajuda(playerid, params[])
  462. {
  463.     ShowPlayerDialog(playerid, DIALOG_AJUDA, DIALOG_STYLE_MSGBOX, "Ajuda","/creditos\n\n/rank\n\n/suicidar", "Fechar", "");
  464.     return 1;
  465. }
  466. CMD:status(playerid, params[])
  467. {
  468.     Status(playerid);
  469.     GetPlayerName(playerid, playernome, sizeof (playernome));
  470.     format(TextoString, sizeof(TextoString), "|| %s » Esta olhando seu status. {00BFFF}/status", playernome);
  471.     SendClientMessageToAll(COR_MSG, TextoString);
  472.     return 1;
  473. }
  474. CMD:disfarce(playerid, params[])
  475. {
  476.     if(IsPlayerInRangeOfPoint(playerid, 3.0, DISFARCECV) || IsPlayerInRangeOfPoint(playerid, 3.0, DISFARCEPCC) || IsPlayerInRangeOfPoint(playerid, 3.0, DISFARCEADA)
  477.     || IsPlayerInRangeOfPoint(playerid, 3.0, DISFARCETCP) || IsPlayerInRangeOfPoint(playerid, 3.0, DISFARCECOPS))
  478.     {
  479.         ShowPlayerDialog(playerid, DIALOG_DISFARCE, DIALOG_STYLE_LIST, "Escolha Um Disfarce", "Se Disfarcar de CV\nSe Disfarcar de PCC\nSe Disfarcar de ADA\nSe Disfarcar de TCP\nSe Disfarcar de COP", "Selecionar", "Cancelar");
  480.     }
  481.     return 1;
  482. }
  483. CMD:rank(playerid, params[])
  484. {
  485.     new Ranks[500];
  486.     format(Ranks, sizeof(Ranks), "%s\nO Comando Vermelho Matou %d Pessoas - Morreu %d Vezes. TOTAL: %d\n", Ranks, CvGanhando, CvPerdendo, CvAcumulado);
  487.     format(Ranks, sizeof(Ranks), "%s\nO PCC Matou %d Pessoas - Morreu %d Vezes. TOTAL: %d\n", Ranks, PccGanhando, PccPerdendo, PccAcumulado);
  488.     format(Ranks, sizeof(Ranks), "%s\nO ADA Matou %d Pessoas - Morreu %d Vezes. TOTAL: %d\n", Ranks, AdaGanhando, AdaPerdendo, AdaAcumulado);
  489.     format(Ranks, sizeof(Ranks), "%s\nO TCP Matou %d Pessoas - Morreu %d Vezes. TOTAL: %d\n",Ranks, TcpGanhando, TcpPerdendo, TcpAcumulado);
  490.     format(Ranks, sizeof(Ranks), "%s\nOs COP'S Matou %d Pessoas - Morreu %d Vezes. TOTAL: %d\n",Ranks,CopGanhando, CopPerdendo, CopAcumulado);
  491.     ShowPlayerDialog(playerid, DIALOG_RANK, DIALOG_STYLE_MSGBOX, "Rank", Ranks, "Fechar", " ");
  492.     return 1;
  493. }
  494. CMD:pegarmeusequipamentos(playerid, params[])
  495. {
  496.     if(IsPlayerInRangeOfPoint(playerid, 3.0, EQUIPCV) || IsPlayerInRangeOfPoint(playerid, 3.0, EQUIPPCC) || IsPlayerInRangeOfPoint(playerid, 3.0, EQUIPADA)
  497.     || IsPlayerInRangeOfPoint(playerid, 3.0, EQUIPTCP) || IsPlayerInRangeOfPoint(playerid, 3.0, EQUIPCOPS))
  498.     {
  499.         ShowPlayerDialog(playerid, DIALOG_EQUIPAR, DIALOG_STYLE_LIST, "Equipamentos","Pegar Kit 1\nPegar Kit 2\nPegar Kit 3", "Selecionar", "Cancelar");
  500.     }
  501.     return 1;
  502. }
  503. CMD:efeitos(playerid, params[])
  504. {
  505.     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");
  506.     return 1;
  507. }
  508. CMD:lojasorvete(playerid, params[])
  509. {
  510.     if(IsPlayerInRangeOfPoint(playerid, 3.0, SORVETE))
  511.     {
  512.         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");
  513.     }
  514. }
  515. CMD:lojahotdog(playerid, params[])
  516. {
  517.     if(IsPlayerInRangeOfPoint(playerid, 3.0, HOTDOG))
  518.     {
  519.         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");
  520.     }
  521. }
  522. CMD:lojahamburguer(playerid, params[])
  523. {
  524.     if(IsPlayerInRangeOfPoint(playerid, 3.0, HAMBURGUER))
  525.     {
  526.         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");
  527.     }
  528. }
  529. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  530. {
  531.     if(dialogid == DIALOG_EQUIPAR)
  532.     {
  533.         if(response)
  534.         {
  535.             if(listitem == 0)
  536.             {
  537.                 ResetPlayerWeapons(playerid);
  538.                 GivePlayerWeapon(playerid, 1, 100);
  539.                 GivePlayerWeapon(playerid, 24, 100);
  540.                 GivePlayerWeapon(playerid, 6, 100);
  541.                 SetPlayerHealth(playerid, 100);
  542.                 SetPlayerArmour(playerid, 50);
  543.                 GetPlayerName(playerid, playernome, sizeof (playernome));
  544.                 format(TextoString, sizeof(TextoString), "|| %s » Se equipou com o Kit 1.", playernome);
  545.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  546.                 GameTextForPlayer(playerid,"~g~Equipado Com Sucesso", 5000, 1);
  547.             }
  548.             if(listitem == 1)
  549.             {
  550.                 ResetPlayerWeapons(playerid);
  551.                 GivePlayerWeapon(playerid, 1, 100);
  552.                 GivePlayerWeapon(playerid, 24, 100);
  553.                 GivePlayerWeapon(playerid, 6, 100);
  554.                 GivePlayerWeapon(playerid, 29, 100);
  555.                 GivePlayerWeapon(playerid, 25, 100);
  556.                 GivePlayerWeapon(playerid, 18, 10);
  557.                 SetPlayerHealth(playerid, 100);
  558.                 SetPlayerArmour(playerid, 80);
  559.                 GetPlayerName(playerid, playernome, sizeof (playernome));
  560.                 format(TextoString, sizeof(TextoString), "|| %s » Se equipou com o Kit 2.", playernome);
  561.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  562.                 GameTextForPlayer(playerid,"~g~Equipado Com Sucesso", 5000, 1);
  563.             }
  564.             if(listitem == 2)
  565.             {
  566.                 ResetPlayerWeapons(playerid);
  567.                 GivePlayerWeapon(playerid, 1, 100);
  568.                 GivePlayerWeapon(playerid, 24, 100);
  569.                 GivePlayerWeapon(playerid, 6, 100);
  570.                 GivePlayerWeapon(playerid, 18, 10);
  571.                 GivePlayerWeapon(playerid, 29, 100);
  572.                 GivePlayerWeapon(playerid, 25, 100);
  573.                 GivePlayerWeapon(playerid, 30, 100);
  574.                 GivePlayerWeapon(playerid, 34, 100);
  575.                 SetPlayerHealth(playerid, 100);
  576.                 SetPlayerArmour(playerid, 100);
  577.                 GetPlayerName(playerid, playernome, sizeof (playernome));
  578.                 format(TextoString, sizeof(TextoString), "|| %s » Se equipou com o Kit 3.", playernome);
  579.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  580.                 GameTextForPlayer(playerid,"~g~Equipado Com Sucesso", 5000, 1);
  581.             }
  582.         }
  583.         return 1;
  584.     }
  585.     if(dialogid == DIALOG_EFEITOS)
  586.     {
  587.         if(response)
  588.         {
  589.             if(listitem == 0)
  590.             {
  591.                 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
  592.                 SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
  593.             }
  594.             if(listitem == 1)
  595.             {
  596.                 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
  597.                 SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
  598.             }
  599.             if(listitem == 2)
  600.             {
  601.                 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
  602.                 SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
  603.             }
  604.             if(listitem == 3)
  605.             {
  606.                 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
  607.                 SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
  608.             }
  609.             if(listitem == 4)
  610.             {
  611.                 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
  612.                 SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
  613.             }
  614.             if(listitem == 5)
  615.             {
  616.                 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
  617.                 SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
  618.             }
  619.             if(listitem == 6)
  620.             {
  621.                 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
  622.                 SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
  623.             }
  624.             if(listitem == 7)
  625.             {
  626.                 SetPlayerAttachedObject(playerid,1,19065,15,-0.025,-0.04,0.23,0,0,270,2,2,2); // Toca de Natal
  627.                 SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
  628.             }
  629.             if(listitem == 8)
  630.             {
  631.                 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
  632.                 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
  633.                 SendClientMessage(playerid,COR_CV,"Efeitos Ativados Com Sucesso!");
  634.             }
  635.             if(listitem == 9)
  636.             {
  637.                 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
  638.                 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
  639.                 SendClientMessage(playerid,COR_CV,"Efeitos Ativados Com Sucesso!");
  640.             }
  641.             if(listitem == 10)
  642.             {
  643.                 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
  644.                 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
  645.                 SendClientMessage(playerid,COR_CV,"Efeitos Ativados Com Sucesso!");
  646.             }
  647.             if(listitem == 11)
  648.             {
  649.                 SetPlayerAttachedObject(playerid,1,19065,15,-0.025,-0.04,0.23,0,0,270,2,2,2); // Toca de Natal
  650.                 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
  651.                 SendClientMessage(playerid,COR_CV,"Efeitos Ativados Com Sucesso!");
  652.             }
  653.             if(listitem == 12)
  654.             {
  655.                 RemovePlayerAttachedObject(playerid,1); // Remoçao dos Efeitos
  656.                 RemovePlayerAttachedObject(playerid,2); // Remoçao dos Efeitos2
  657.                 SendClientMessage(playerid,COR_CV,"Efeito(s) Removido(s) Com Sucesso!");
  658.             }
  659.         }
  660.         return 1;
  661.     }
  662.     if(dialogid == DIALOG_BARRACA1)
  663.     {
  664.         new Float:vida;
  665.         GetPlayerName(playerid, playernome, sizeof(playernome));
  666.         GetPlayerHealth(playerid, vida);
  667.         if(!response) return 1;
  668.         if (GetPlayerMoney(playerid) <= 0)
  669.         {
  670.             GameTextForPlayer(playerid, "~r~Você não possui dinheiro suficiente", 5000, 1);
  671.             return 1;
  672.         }
  673.         if(response)
  674.         {
  675.             if(listitem == 0)
  676.             {
  677.                 format(TextoString, sizeof(TextoString), "|Lanches| %s está tomando um sorvete de palito.", playernome);
  678.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  679.                 GivePlayerMoney(playerid, -10);
  680.                 SetPlayerHealth(playerid, vida + 20);
  681.             }
  682.             if(listitem == 1)
  683.             {
  684.                 format(TextoString, sizeof(TextoString), "|Lanches| %s está tomando um sorvete de copinho.", playernome);
  685.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  686.                 GivePlayerMoney(playerid, -15);
  687.                 SetPlayerHealth(playerid, vida + 50);
  688.             }
  689.             if(listitem == 2)
  690.             {
  691.                 format(TextoString, sizeof(TextoString), "|Lanches| %s  está tomando um sorvete de casquinha.", playernome);
  692.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  693.                 GivePlayerMoney(playerid, -20);
  694.                 SetPlayerHealth(playerid, vida + 80);
  695.             }
  696.             if(listitem == 3)
  697.             {
  698.                 format(TextoString, sizeof(TextoString), "|Lanches| %s  está tomando um sorvete na taça.", playernome);
  699.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  700.                 GivePlayerMoney(playerid, -8);
  701.                 SetPlayerHealth(playerid, vida + 35);
  702.             }
  703.             if(listitem == 4)
  704.             {
  705.                 format(TextoString, sizeof(TextoString), "|Lanches| %s  está bebendo uma água com gás.", playernome);
  706.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  707.                 GivePlayerMoney(playerid, -5);
  708.                 SetPlayerHealth(playerid, vida + 25);
  709.                 ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
  710.             }
  711.             if(listitem == 5)
  712.             {
  713.                 format(TextoString, sizeof(TextoString), "|Lanches| %s está bebendo um refrigerante.", playernome);
  714.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  715.                 GivePlayerMoney(playerid, -5);
  716.                 SetPlayerHealth(playerid, vida + 10);
  717.                 ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
  718.             }
  719.             return 1;
  720.         }
  721.         return 1;
  722.     }
  723.     if(dialogid == DIALOG_BARRACA2)
  724.     {
  725.         new Float:vida;
  726.         GetPlayerName(playerid, playernome, sizeof(playernome));
  727.         GetPlayerHealth(playerid, vida);
  728.         if(!response) return 1;
  729.         if (GetPlayerMoney(playerid) <= 0)
  730.         {
  731.             GameTextForPlayer(playerid, "~r~Você não possui dinheiro suficiente", 5000, 1);
  732.             return 1;
  733.         }
  734.         if(response)
  735.         {
  736.             if(listitem == 0)
  737.             {
  738.                 format(TextoString, sizeof(TextoString), "|Lanches| %s está comendo um hotdog comum.", playernome);
  739.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  740.                 GivePlayerMoney(playerid, -20);
  741.                 SetPlayerHealth(playerid, vida + 30);
  742.             }
  743.             if(listitem == 1)
  744.             {
  745.                 format(TextoString, sizeof(TextoString), "|Lanches| %s está comendo um hotdog de 2 salsichas.", playernome);
  746.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  747.                 GivePlayerMoney(playerid, -25);
  748.                 SetPlayerHealth(playerid, vida + 40);
  749.             }
  750.             if(listitem == 2)
  751.             {
  752.                 format(TextoString, sizeof(TextoString), "|Lanches| %s  está comendo um hotdog completo.", playernome);
  753.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  754.                 GivePlayerMoney(playerid, -30);
  755.                 SetPlayerHealth(playerid, vida + 90);
  756.             }
  757.             if(listitem == 3)
  758.             {
  759.                 format(TextoString, sizeof(TextoString), "|Lanches| %s  está comendo uma promoção.", playernome);
  760.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  761.                 GivePlayerMoney(playerid, -20);
  762.                 SetPlayerHealth(playerid, vida + 40);
  763.             }
  764.             return 1;
  765.         }
  766.         return 1;
  767.     }
  768.     if(dialogid == DIALOG_BARRACA3)
  769.     {
  770.         new Float:vida;
  771.         GetPlayerName(playerid, playernome, sizeof(playernome));
  772.         GetPlayerHealth(playerid, vida);
  773.         if(!response) return 1;
  774.         if (GetPlayerMoney(playerid) <= 0)
  775.         {
  776.             GameTextForPlayer(playerid, "~r~Você não possui dinheiro suficiente", 5000, 1);
  777.             return 1;
  778.         }
  779.         if(response)
  780.         {
  781.             if(listitem == 0)
  782.             {
  783.                 format(TextoString, sizeof(TextoString), "|Lanches| %s está comendo um hamburguer simples.", playernome);
  784.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  785.                 GivePlayerMoney(playerid, -40);
  786.                 SetPlayerHealth(playerid, vida + 40);
  787.             }
  788.             if(listitem == 1)
  789.             {
  790.                 format(TextoString, sizeof(TextoString), "|Lanches| %s está comendo um x bacon.", playernome);
  791.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  792.                 GivePlayerMoney(playerid, -45);
  793.                 SetPlayerHealth(playerid, vida + 50);
  794.             }
  795.             if(listitem == 2)
  796.             {
  797.                 format(TextoString, sizeof(TextoString), "|Lanches| %s  está comendo um egg x salada.", playernome);
  798.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  799.                 GivePlayerMoney(playerid, -50);
  800.                 SetPlayerHealth(playerid, vida + 60);
  801.             }
  802.             if(listitem == 3)
  803.             {
  804.                 format(TextoString, sizeof(TextoString), "|Lanches| %s  está comendo um x tudo.", playernome);
  805.                 SendClientMessageToAll(COR_EQUIPAR, TextoString);
  806.                 GivePlayerMoney(playerid, -60);
  807.                 SetPlayerHealth(playerid, vida + 80);
  808.             }
  809.             return 1;
  810.         }
  811.         return 1;
  812.     }
  813.     if(dialogid == DIALOG_DISFARCE)
  814.     {
  815.         if(response == 0)
  816.         {
  817.         return 1;
  818.         }
  819.         if(response >= 1)
  820.         {
  821.             if(listitem == 0)
  822.             {
  823.                 SetPlayerColor(playerid,COR_CV);
  824.                 SetPlayerSkin(playerid, 6);
  825.                 GivePlayerWeapon(playerid, 24, 300);
  826.                 SendClientMessage(playerid,COR_MSG,"Você Colocou o seu Disfarce de CV!");
  827.                 return 1;
  828.             }
  829.             if(listitem == 1)
  830.             {
  831.                 SetPlayerColor(playerid,COR_PCC);
  832.                 SetPlayerSkin(playerid, 21);
  833.                 GivePlayerWeapon(playerid, 24, 300);
  834.                 SendClientMessage(playerid,COR_MSG,"Você Colocou o seu Disfarce de PCC!");
  835.                 return 1;
  836.             }
  837.             if(listitem == 2)
  838.             {
  839.                 SetPlayerColor(playerid,COR_ADA);
  840.                 SetPlayerSkin(playerid, 12);
  841.                 GivePlayerWeapon(playerid, 24, 300);
  842.                 SendClientMessage(playerid,COR_MSG,"Você Colocou o seu Disfarce de ADA!");
  843.                 return 1;
  844.             }
  845.             if(listitem == 3)
  846.             {
  847.                 SetPlayerColor(playerid,COR_TCP);
  848.                 SetPlayerSkin(playerid, 14);
  849.                 GivePlayerWeapon(playerid, 24, 300);
  850.                 SendClientMessage(playerid,COR_MSG,"Você Colocou o seu Disfarce de TCP!");
  851.                 return 1;
  852.             }
  853.             if(listitem == 4)
  854.             {
  855.                 SetPlayerColor(playerid,COR_COP);
  856.                 SetPlayerSkin(playerid, 47);
  857.                 GivePlayerWeapon(playerid, 24, 300);
  858.                 SendClientMessage(playerid,COR_MSG,"Você Colocou o seu Disfarce de COP'S!");
  859.                 return 1;
  860.             }
  861.             return 1;
  862.         }
  863.     }
  864.     if(dialogid == DIALOG_REGISTRO)
  865.     {
  866.         if(response)
  867.         {
  868.             if(!strlen(inputtext))
  869.             {
  870.                 GetPlayerName(playerid, playernome, sizeof(playernome));
  871.                 format(TextoString,sizeof(TextoString),"     {00BFFF}BrunoBernardo Guerra Total\n{FFFFFF}***********************************************\n\n>> Conta: {00F6F6}%s{FFFFFF}\n>> Status: {AA3333}Não Registrada\n\n{FFFFFF}Coloque sua senha abaixo:",playernome);
  872.                 ShowPlayerDialog(playerid,DIALOG_REGISTRO,DIALOG_STYLE_PASSWORD,"Fazenu Seu - Registro:",TextoString,"Registrar-se","Sair");
  873.                 SendClientMessage(playerid,COR_CV,"Senha invalida, digite uma senha válida");
  874.                 return 1;
  875.             }
  876.             GetPlayerName(playerid, playernome, sizeof(playernome));
  877.             format(TextoString, sizeof(TextoString), SALVARCONTAS, playernome);
  878.             DOF2_CreateFile(TextoString);
  879.             DOF2_SetString(TextoString,"Senha",inputtext);
  880.             DOF2_SetInt(TextoString,"Dinheiro",0);
  881.             DOF2_SetInt(TextoString,"Vida", 100);
  882.             DOF2_SetInt(TextoString,"Colete", 100);
  883.             DOF2_SetInt(TextoString,"Matou",0);
  884.             DOF2_SetInt(TextoString,"Morreu",0);
  885.             DOF2_SetInt(TextoString,"Logou",0);
  886.             format(TextoString,sizeof(TextoString),"     {00BFFF}BrunoBernardo Guerra Total\n{FFFFFF}***********************************************\n\n>> Conta: {00F6F6}%s{FFFFFF}\n>> Status: {33AA33}Registrada\n\n{FFFFFF}Coloque sua senha abaixo:",playernome);
  887.             ShowPlayerDialog(playerid,DIALOG_LOGAR,DIALOG_STYLE_PASSWORD,"Fazedo Seu - Login:",TextoString,"Logar-se","Sair");
  888.             return 1;
  889.         }
  890.         else
  891.         {
  892.             SendClientMessage(playerid, COR_MSG, "Você Foi Kickado Porque Não Quis Se Registrar!!");
  893.             Kick(playerid);
  894.             return 1;
  895.         }
  896.     }
  897.     if(dialogid == DIALOG_LOGAR)
  898.     {
  899.         if(response)
  900.         {
  901.             if(!strlen(inputtext))
  902.             {
  903.                 GetPlayerName(playerid, playernome, sizeof(playernome));
  904.                 format(TextoString,sizeof(TextoString),"     {00BFFF}BrunoBernardo Guerra Total\n{FFFFFF}***********************************************\n\n>> Conta: {00F6F6}%s{FFFFFF}\n>> Status: {33AA33}Registrada\n\n{FFFFFF}Coloque sua senha abaixo:",playernome);
  905.                 ShowPlayerDialog(playerid,DIALOG_LOGAR,DIALOG_STYLE_PASSWORD,"Fazedo Seu - Login:",TextoString,"Logar-se","Sair");
  906.                 SendClientMessage(playerid,COR_CV,"Senha Incorreta !");
  907.                 return 1;
  908.             }
  909.             GetPlayerName(playerid, playernome, sizeof(playernome));
  910.             format(TextoString, sizeof(TextoString), SALVARCONTAS, playernome);
  911.             if(!strcmp(inputtext,DOF2_GetString(TextoString,"Senha"),false))
  912.             {
  913.                 SetarPlayer(playerid);
  914.                 Logou[playerid]++;
  915.                 ChatLimpo(playerid, 10);
  916.                 SendClientMessage(playerid,COR_MSG2,"Logado Com Sucesso,Agora Escolha Uma Org.");
  917.                 return 1;
  918.             }
  919.             else
  920.             {
  921.                 SendClientMessage(playerid,COR_CV,"Senha incorreta digite-a novamente");
  922.                 format(TextoString,sizeof(TextoString),"     {00BFFF}BrunoBernardo Guerra Total\n{FFFFFF}***********************************************\n\n>> Conta: {00F6F6}%s{FFFFFF}\n>> Status: {33AA33}Registrada\n\n{FFFFFF}Coloque sua senha abaixo:",playernome);
  923.                 ShowPlayerDialog(playerid,DIALOG_LOGAR,DIALOG_STYLE_PASSWORD,"Fazedo Seu - Login:",TextoString,"Logar-se","Sair");
  924.             }
  925.             return 1;
  926.         }
  927.         else
  928.         {
  929.             SendClientMessage(playerid, COR_MSG, "Você não quis se logar, por este motivo será Kickado");
  930.             Kick(playerid);
  931.             return 1;
  932.         }
  933.     }
  934.     return 1;
  935. }
  936. public OnPlayerDeath(playerid, killerid, reason)
  937. {
  938.     TextDrawHideForPlayer(playerid, relogio);
  939.     if(IsPlayerConnected(killerid))
  940.     {
  941.         Matou[killerid]++;
  942.     }
  943.     Morreu[playerid]++;
  944.     if(playerid != INVALID_PLAYER_ID) SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
  945.     if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
  946.     SendDeathMessage(killerid, playerid, reason);
  947.     if(gTeam[playerid] == CV)
  948.     {
  949.       CvAcumulado[playerid] --;
  950.       CvPerdendo[playerid] ++;
  951.       GetPlayerName(playerid, playernome, sizeof (playernome));
  952.       format(Resultado, sizeof(Resultado), "%s Morreu é Perdeu 1 Ponto Para os Comando Vermelho.", playernome);
  953.       SendClientMessageToAll(COR_CV, Resultado);
  954.     }
  955.     if(gTeam[killerid] == CV)
  956.     {
  957.       CvAcumulado[playerid] ++;
  958.       CvGanhando[playerid] ++;
  959.       GetPlayerName(killerid, playernome, MAX_PLAYER_NAME);
  960.       format(Resultado, sizeof(Resultado), "%s Matou é Ganhou 1 Ponto Para os Comando Vermelho.", playernome);
  961.       SendClientMessageToAll(COR_CV, Resultado);
  962.     }
  963.     if(gTeam[playerid] == PCC)
  964.     {
  965.       PccAcumulado[playerid] --;
  966.       PccPerdendo[playerid] ++;
  967.       GetPlayerName(playerid, playernome, sizeof (playernome));
  968.       format(Resultado, sizeof(Resultado), "%s Morreu é Perdeu 1 Ponto Para os PCC.", playernome);
  969.       SendClientMessageToAll(COR_PCC, Resultado);
  970.     }
  971.     if(gTeam[killerid] == PCC)
  972.     {
  973.       PccAcumulado[playerid] ++;
  974.       PccGanhando[playerid] ++;
  975.       GetPlayerName(killerid, playernome, MAX_PLAYER_NAME);
  976.       format(Resultado, sizeof(Resultado), "%s Matou é Ganhou 1 Ponto Para os PCC.", playernome);
  977.       SendClientMessageToAll(COR_PCC, Resultado);
  978.     }
  979.     if(gTeam[playerid] == ADA)
  980.     {
  981.       AdaAcumulado[playerid] --;
  982.       AdaPerdendo[playerid] ++;
  983.       GetPlayerName(playerid, playernome, sizeof (playernome));
  984.       format(Resultado, sizeof(Resultado), "%s Morreu é Perdeu 1 Ponto Para os ADA.", playernome);
  985.       SendClientMessageToAll(COR_ADA, Resultado);
  986.     }
  987.     if(gTeam[killerid] == ADA)
  988.     {
  989.       AdaAcumulado[playerid] ++;
  990.       AdaGanhando[playerid] ++;
  991.       GetPlayerName(killerid, playernome, MAX_PLAYER_NAME);
  992.       format(Resultado, sizeof(Resultado), "%s Matou é Ganhou 1 Ponto Para os ADA.", playernome);
  993.       SendClientMessageToAll(COR_ADA, Resultado);
  994.     }
  995.     if(gTeam[playerid] == TCP)
  996.     {
  997.       TcpAcumulado[playerid] --;
  998.       TcpPerdendo[playerid] ++;
  999.       GetPlayerName(playerid, playernome, sizeof (playernome));
  1000.       format(Resultado, sizeof(Resultado), "%s Morreu é Perdeu 1 Ponto Para os TCP.", playernome);
  1001.       SendClientMessageToAll(COR_TCP, Resultado);
  1002.     }
  1003.     if(gTeam[killerid] == TCP)
  1004.     {
  1005.       TcpAcumulado[playerid] ++;
  1006.       TcpGanhando[playerid] ++;
  1007.       GetPlayerName(killerid, playernome, MAX_PLAYER_NAME);
  1008.       format(Resultado, sizeof(Resultado), "%s Matou é Ganhou 1 Ponto Para os TCP.", playernome);
  1009.       SendClientMessageToAll(COR_TCP, Resultado);
  1010.     }
  1011.     if(gTeam[playerid] == COP)
  1012.     {
  1013.       CopAcumulado[playerid] --;
  1014.       CopPerdendo[playerid] ++;
  1015.       GetPlayerName(playerid, playernome, sizeof (playernome));
  1016.       format(Resultado, sizeof(Resultado), "%s Morreu é Perdeu 1 Ponto Para os COP'S.", playernome);
  1017.       SendClientMessageToAll(COR_COP, Resultado);
  1018.     }
  1019.     if(gTeam[killerid] == COP)
  1020.     {
  1021.       CopAcumulado[playerid] ++;
  1022.       CopGanhando[playerid] ++;
  1023.       GetPlayerName(killerid, playernome, MAX_PLAYER_NAME);
  1024.       format(Resultado, sizeof(Resultado), "%s Matou é Ganhou 1 Ponto Para os COP'S.", playernome);
  1025.       SendClientMessageToAll(COR_COP, Resultado);
  1026.     }
  1027.     return 1;
  1028. }
  1029. public OnPlayerRequestClass(playerid, classid)
  1030. {
  1031.     if((classid >= 0) && (classid <= 2))
  1032.     {
  1033.        gTeam[playerid] = CV;
  1034.        SendClientMessage(playerid, COR_CV, "==> Essa é uma skin do Comando Vermelho. <==");
  1035.        SetPlayerColor(playerid,COR_CV);
  1036.     }
  1037.     if((classid >= 3) && (classid <= 5))
  1038.     {
  1039.        gTeam[playerid] = PCC;
  1040.        SendClientMessage(playerid, COR_PCC, "==> Essa é uma skin do PCC. <==");
  1041.        SetPlayerColor(playerid,COR_PCC);
  1042.     }
  1043.     if((classid >= 6) && (classid <= 8))
  1044.     {
  1045.        gTeam[playerid] = ADA;
  1046.        SendClientMessage(playerid, COR_ADA, "==> Essa é uma skin do ADA. <==");
  1047.        SetPlayerColor(playerid,COR_ADA);
  1048.     }
  1049.     if((classid >= 9) && (classid <= 11))
  1050.     {
  1051.        gTeam[playerid] = TCP;
  1052.        SendClientMessage(playerid, COR_TCP, "==> Essa é uma skin do TCP. <==");
  1053.        SetPlayerColor(playerid,COR_TCP);
  1054.     }
  1055.     if((classid >= 12) && (classid <= 15))
  1056.     {
  1057.        gTeam[playerid] = COP;
  1058.        SendClientMessage(playerid, COR_COP, "==> Essa é uma skin dos Cop's. <==");
  1059.        SetPlayerColor(playerid,COR_COP);
  1060.     }
  1061.     SetPlayerInterior(playerid,14);
  1062.     SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
  1063.     SetPlayerFacingAngle(playerid, 270.0);
  1064.     SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
  1065.     SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
  1066.     return 1;
  1067. }
  1068. public OnGameModeInit()
  1069. {
  1070.     SetTimer("HoraServidor",1000,true);
  1071.     SetTimer("MostrarPing", 200, 1);
  1072.     SetTimer("MapaRandamonico",2000,1);
  1073.     SetTimer("ModeRandamonico",2000,1);
  1074.     SetTimer("NomeServidorRandamonico",2000,1);
  1075.     SetTimer("AnuncioRandamonico",300000,1);
  1076.     UsePlayerPedAnims();
  1077.     DisableInteriorEnterExits();
  1078.     morroterritorio = GangZoneCreate(MORRO);
  1079.     quadraterritorio = GangZoneCreate(QUADRA);
  1080.     parqueterritorio = GangZoneCreate(PARQUE);
  1081.     riachoterritorio = GangZoneCreate(RIACHO);
  1082.     industriaterritorio = GangZoneCreate(INDUSTRIA);
  1083.     aeroportoterritorio = GangZoneCreate(AEROPORTO);
  1084.     casaraoterritorio = GangZoneCreate(CASARAO);
  1085.     estacaoterritorio = GangZoneCreate(ESTACAO);
  1086.     favelaterritorio = GangZoneCreate(FAVELA);
  1087.     pistaterritorio = GangZoneCreate(PISTA);
  1088.     estadioterritorio = GangZoneCreate(ESTADIO);
  1089.     terrenoterritorio = GangZoneCreate(TERRENO);
  1090.     pierterritorio = GangZoneCreate(PIER);
  1091.     fazendinhaterritorio = GangZoneCreate(FAZENDINHA);
  1092.     docasterritorio = GangZoneCreate(DOCAS);
  1093.     linhaterritorio = GangZoneCreate(LINHA);
  1094.     mansaoterritorio = GangZoneCreate(MANSAO);
  1095.     ruralterritorio = GangZoneCreate(RURAL);
  1096.     //Equipar
  1097.     AddStaticPickup(362, 23, EQUIPCV);
  1098.     AddStaticPickup(362, 23, EQUIPPCC);
  1099.     AddStaticPickup(362, 23, EQUIPADA);
  1100.     AddStaticPickup(362, 23, EQUIPTCP);
  1101.     AddStaticPickup(362, 23, EQUIPCOPS);
  1102.     //Disfarçes
  1103.     AddStaticPickup(1314, 23, DISFARCECV);
  1104.     AddStaticPickup(1314, 23, DISFARCEPCC);
  1105.     AddStaticPickup(1314, 23, DISFARCEADA);
  1106.     AddStaticPickup(1314, 23, DISFARCETCP);
  1107.     AddStaticPickup(1314, 23, DISFARCECOPS);
  1108.     //Lanches
  1109.     AddStaticPickup(1240, 23, SORVETE);
  1110.     AddStaticPickup(1240, 23, HOTDOG);
  1111.     AddStaticPickup(1240, 23, HAMBURGUER);
  1112.     //Entradas e Saidas
  1113.     AddStaticPickup(19133, 23, ENTRADACV);
  1114.     AddStaticPickup(19133, 23, SAIDACV);
  1115.     AddStaticPickup(19133, 23, ENTRADAPCC);
  1116.     AddStaticPickup(19133, 23, SAIDAPCC);
  1117.     AddStaticPickup(19133, 23, ENTRADAADA);
  1118.     AddStaticPickup(19133, 23, SAIDAADA);
  1119.     AddStaticPickup(19133, 23, ENTRADATCP);
  1120.     AddStaticPickup(19133, 23, SAIDATCP);
  1121.     AddStaticPickup(19133, 23, ENTRADACOP);
  1122.     AddStaticPickup(19133, 23, SAIDACOP);
  1123.     //Textos 3D Entradas e Saidas
  1124.     Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,ENTRADACV,10.0,0);
  1125.     Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,SAIDACV,10.0,0);
  1126.     Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,ENTRADAPCC,10.0,0);
  1127.     Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,SAIDAPCC,10.0,0);
  1128.     Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,ENTRADAADA,10.0,0);
  1129.     Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,SAIDAADA,10.0,0);
  1130.     Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,ENTRADATCP,10.0,0);
  1131.     Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,SAIDATCP,10.0,0);
  1132.     Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,ENTRADACOP,10.0,0);
  1133.     Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,SAIDACOP,10.0,0);
  1134.     //Textos 3D
  1135.     Create3DTextLabel("Para Poder Se Equipar\nAperte 'ALT'",COR_3D,EQUIPCV,10.0,0);
  1136.     Create3DTextLabel("Para Poder Se Equipar\nAperte 'ALT'",COR_3D,EQUIPPCC,10.0,0);
  1137.     Create3DTextLabel("Para Poder Se Equipar\nAperte 'ALT'",COR_3D,EQUIPADA,10.0,0);
  1138.     Create3DTextLabel("Para Poder Se Equipar\nAperte 'ALT'",COR_3D,EQUIPTCP,10.0,0);
  1139.     Create3DTextLabel("Para Poder Se Equipar\nAperte 'ALT'",COR_3D,EQUIPCOPS,10.0,0);
  1140.     //Disfarçe 3D
  1141.     Create3DTextLabel("Para Poder Se Disfarcar\nAperte 'F'",COR_3D,DISFARCECV,10.0,0);
  1142.     Create3DTextLabel("Para Poder Se Disfarcar\nAperte 'F'",COR_3D,DISFARCEPCC,10.0,0);
  1143.     Create3DTextLabel("Para Poder Se Disfarcar\nAperte 'F'",COR_3D,DISFARCEADA,10.0,0);
  1144.     Create3DTextLabel("Para Poder Se Disfarcar\nAperte 'F'",COR_3D,DISFARCETCP,10.0,0);
  1145.     Create3DTextLabel("Para Poder Se Disfarcar\nAperte 'F'",COR_3D,DISFARCECOPS,10.0,0);
  1146.     //Lanchinhos
  1147.     Create3DTextLabel("Sorveteria{FF0000}\nAperte 'F' Para Comprar",COR_LOJA,SORVETE,20,0);
  1148.     Create3DTextLabel("HotDog{FF0000}\nAperte 'F' Para Comprar",COR_LOJA,HOTDOG,20,0);
  1149.     Create3DTextLabel("Hamburguer{FF0000}\nAperte 'F' Para Comprar",COR_LOJA,HAMBURGUER,20,0);
  1150.     //Objetos do TCP
  1151.     CreateDynamicObject(11088, 2577.1000976563, -2174.5, 5, 0, 0, 0);
  1152.     CreateDynamicObject(3415, 2611.8999023438, -2149.1000976563, -1.2000000476837, 0, 0, 270);
  1153.     CreateDynamicObject(16151, 2612.8999023438, -2148.3999023438, -0.89999997615814, 0, 0, 0);
  1154.     CreateDynamicObject(1481, 2609.6999511719, -2145.3000488281, -0.60000002384186, 0, 0, 266);
  1155.     CreateDynamicObject(3092, 2614, -2143.8999023438, -0.40000000596046, 0, 0, 0);
  1156.     CreateDynamicObject(2907, 2609.5, -2145.3000488281, -0.40000000596046, 0, 0, 0);
  1157.     CreateDynamicObject(3749, 2581.8000488281, -2111.3000488281, 6.1999998092651, 0, 0, 0);
  1158.     //Morro
  1159.     CreateDynamicObject(3593, 2186.3828125, -1008.8056640625, 62.360637664795, 0, 0, 54);
  1160.     CreateDynamicObject(3593, 2148.4406738281, -1006.7709960938, 61.818813323975, 356, 0, 27.996948242188);
  1161.     CreateDynamicObject(3594, 2163.490234375, -1023.19921875, 62.064167022705, 0, 0, 23.998046875);
  1162.     CreateDynamicObject(1358, 2173.9704589844, -1014.0213623047, 63.167877197266, 0, 0, 348);
  1163.     CreateDynamicObject(1415, 2168.3513183594, -995.83642578125, 61.964977264404, 0, 0, 348);
  1164.     CreateDynamicObject(1439, 2154.0830078125, -1019.3138427734, 61.838348388672, 0, 0, 90);
  1165.     CreateDynamicObject(2908, 2153.5290527344, -1016.1793823242, 64.109428405762, 272, 90, 304.00015258789);
  1166.     CreateDynamicObject(3092, 2153.9538574219, -1019.4876098633, 62.625789642334, 39.970703125, 357.38995361328, 1.6773681640625);
  1167.     CreateDynamicObject(3092, 2161.767578125, -987.34582519531, 69.995552062988, 0, 0, 0);
  1168.     CreateDynamicObject(3092, 2163.064453125, -987.5537109375, 69.98851776123, 0, 0, 0);
  1169.     CreateDynamicObject(3092, 2164.2004394531, -987.72448730469, 69.98851776123, 0, 0, 0);
  1170.     CreateDynamicObject(2680, 2164.2470703125, -987.69384765625, 70.777870178223, 0, 171.99993896484, 14);
  1171.     CreateDynamicObject(2680, 2163.1069335938, -987.5419921875, 70.778854370117, 0, 171.99645996094, 13.99658203125);
  1172.     CreateDynamicObject(2680, 2161.8159179688, -987.27447509766, 70.819076538086, 0, 171.99645996094, 13.99658203125);
  1173.     CreateDynamicObject(2907, 2154.2768554688, -1016.1821899414, 62.032733917236, 0, 0, 0);
  1174.     CreateDynamicObject(2905, 2153.1530761719, -1015.8941040039, 64.12345123291, 0, 0, 0);
  1175.     CreateDynamicObject(3092, 2143.3420410156, -1006.5328369141, 65.143203735352, 0, 0, 0);
  1176.     //Carros do CV
  1177.     AddStaticVehicle(560,615.3710,-1663.5734,15.8311,356.0172,3,3);
  1178.     AddStaticVehicle(567,610.0211,-1662.1558,16.0295,352.6576,3,3);
  1179.     AddStaticVehicle(540,600.1979,-1649.1570,15.9875,178.0723,3,3);
  1180.     AddStaticVehicle(482,597.0199,-1648.8760,16.4113,179.1167,3,3);
  1181.     AddStaticVehicle(559,593.9562,-1648.4827,16.0943,177.1563,3,3);
  1182.     AddStaticVehicle(480,590.8290,-1648.6510,16.3668,179.0004,3,3);
  1183.     AddStaticVehicle(581,605.8874,-1644.9723,15.8030,263.6746,3,3);
  1184.     AddStaticVehicle(581,605.9209,-1642.5664,15.8124,268.1934,3,3);
  1185.     //Carros do PCC
  1186.     AddStaticVehicle(482,997.7329,-1083.6929,23.9408,178.7374,65,65);
  1187.     AddStaticVehicle(540,1004.2126,-1083.8423,23.6880,179.5199,65,65);
  1188.     AddStaticVehicle(567,1011.6722,-1084.1124,23.7030,178.6420,65,65);
  1189.     AddStaticVehicle(560,1019.6397,-1083.3044,23.5331,180.0148,65,65);
  1190.     AddStaticVehicle(536,1027.7009,-1084.2449,23.5695,180.3610,65,65);
  1191.     AddStaticVehicle(559,1035.8451,-1083.2405,23.4847,179.9980,65,65);
  1192.     AddStaticVehicle(581,1020.4986,-1100.6868,23.4310,358.0450,65,65);
  1193.     AddStaticVehicle(581,1013.3655,-1100.8018,23.4311,354.2870,65,65);
  1194.     //Carros do ADA
  1195.     AddStaticVehicle(567,1671.6716,-2115.4041,13.4465,269.8614,79,79);
  1196.     AddStaticVehicle(567,1671.6893,-2110.9226,13.4478,269.7269,79,79);
  1197.     AddStaticVehicle(467,1662.5364,-2110.9927,13.2995,268.5868,79,79);
  1198.     AddStaticVehicle(566,1662.6038,-2115.3853,13.3628,270.6646,79,79);
  1199.     AddStaticVehicle(560,1681.2476,-2105.1899,13.2448,222.2709,79,79);
  1200.     AddStaticVehicle(492,1698.8510,-2099.3782,13.3297,179.4559,79,79);
  1201.     AddStaticVehicle(581,1680.3423,-2124.0725,13.1089,353.6133,79,79);
  1202.     AddStaticVehicle(581,1677.8013,-2122.7952,13.1086,323.6392,79,79);
  1203.     //Carros do TCP
  1204.     AddStaticVehicle(411,2610.6038,-2167.5161,-0.4917,2.1572,122,122);
  1205.     AddStaticVehicle(562,2579.2471,-2158.5156,-0.5605,358.9192,122,122);
  1206.     AddStaticVehicle(587,2576.0022,-2158.0339,-0.4919,358.8707,122,122);
  1207.     AddStaticVehicle(587,2572.6741,-2158.0842,-0.4918,357.5177,122,122);
  1208.     AddStaticVehicle(587,2569.2446,-2158.0847,-0.4918,357.6205,122,122);
  1209.     AddStaticVehicle(562,2565.3379,-2140.0593,-0.5355,1.1997,122,122);
  1210.     AddStaticVehicle(560,2561.9697,-2139.9971,-0.4865,355.6928,122,122);
  1211.     AddStaticVehicle(411,2557.8977,-2139.8088,-0.4565,0.2680,122,122);
  1212.     AddStaticVehicle(581,2612.5742,-2139.0479,-0.6246,87.3535,122,122);
  1213.     AddStaticVehicle(581,2612.5293,-2136.8337,-0.5065,86.7555,122,122);
  1214.     //Carros dos COP'S
  1215.     AddStaticVehicle(596,1553.7657,-1606.6428,13.1072,179.0926,0,1);
  1216.     AddStaticVehicle(596,1557.1361,-1606.7213,13.1076,178.8526,0,1);
  1217.     AddStaticVehicle(596,1560.5063,-1606.7974,13.1137,177.8805,0,1);
  1218.     AddStaticVehicle(596,1563.8715,-1606.6951,13.1072,179.4323,0,1);
  1219.     AddStaticVehicle(596,1567.3546,-1606.7358,13.1072,180.2486,0,1);
  1220.     AddStaticVehicle(596,1570.8767,-1606.6312,13.1072,178.9958,0,1);
  1221.     AddStaticVehicle(596,1574.6099,-1606.7150,13.1072,177.9039,0,1);
  1222.     AddStaticVehicle(596,1577.8933,-1606.8130,13.1072,177.2971,0,1);
  1223.     AddStaticVehicle(523,1572.7950,-1634.5011,13.1077,356.2514,0,1);
  1224.     AddStaticVehicle(523,1571.2872,-1634.4938,13.1182,0.0774,0,1);
  1225.     AddStaticVehicle(523,1569.8416,-1634.4673,13.1157,1.0940,0,1);
  1226.     AddStaticVehicle(523,1568.2703,-1634.5316,13.1168,1.3677,0,1);
  1227.     AddStaticVehicle(523,1566.7722,-1634.5745,13.1182,1.6249,0,1);
  1228.     AddStaticVehicle(523,1565.1265,-1634.6410,13.1147,0.3075,0,1);
  1229.     //Skin's do Comando Vermelho
  1230.     AddPlayerClass(6,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1231.     AddPlayerClass(13,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1232.     AddPlayerClass(19,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1233.     AddPlayerClass(21,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1234.     //Skin's do PCC
  1235.     AddPlayerClass(22,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1236.     AddPlayerClass(24,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1237.     AddPlayerClass(12,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1238.     AddPlayerClass(28,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1239.     //Skin's do ADA
  1240.     AddPlayerClass(29,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1241.     AddPlayerClass(30,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1242.     AddPlayerClass(13,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1243.     AddPlayerClass(42,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1244.     //Skin's do TCP
  1245.     AddPlayerClass(46,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1246.     AddPlayerClass(47,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1247.     AddPlayerClass(40,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1248.     AddPlayerClass(66,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1249.     //Skin's dos COP'S
  1250.     AddPlayerClass(281,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1251.     AddPlayerClass(282,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1252.     AddPlayerClass(283,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1253.     AddPlayerClass(283,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
  1254.     //TextDraws
  1255.     for(new i=0; i<MAX_PLAYERS; i++)
  1256.     {
  1257.         ping[i] = TextDrawCreate(340.0000, 400.0000, "Ping:150");
  1258.         TextDrawBackgroundColor(ping[i], 255);
  1259.         TextDrawFont(ping[i], 1);
  1260.         TextDrawLetterSize(ping[i], 0.209999, 1.000000);
  1261.         TextDrawColor(ping[i], -1);
  1262.         TextDrawSetOutline(ping[i], 0);
  1263.         TextDrawSetProportional(ping[i], 11);
  1264.         TextDrawSetShadow(ping[i], 1);
  1265.     }
  1266.     Bruno0 = TextDrawCreate(253.0000, 368.0000, " ");
  1267.     TextDrawBackgroundColor(Bruno0, 255);
  1268.     TextDrawFont(Bruno0, 1);
  1269.     TextDrawLetterSize(Bruno0, 0.559998, 2.599998);
  1270.     TextDrawColor(Bruno0, -7601921);
  1271.     TextDrawSetOutline(Bruno0, 1);
  1272.     TextDrawSetProportional(Bruno0, 10);
  1273.  
  1274.     Bruno1 = TextDrawCreate(253.0000, 368.0000, "~g~Bruno~y~Bernardo~b~GT");
  1275.     TextDrawBackgroundColor(Bruno1, 255);
  1276.     TextDrawFont(Bruno1, 1);
  1277.     TextDrawLetterSize(Bruno1, 0.559998, 2.599998);
  1278.     TextDrawColor(Bruno1, -7601921);
  1279.     TextDrawSetOutline(Bruno1, 1);
  1280.     TextDrawSetProportional(Bruno1, 10);
  1281.  
  1282.     Bruno2 = TextDrawCreate(262.0000, 387.0000, " www.projetos-brunotadeu.blogspot.com");
  1283.     TextDrawBackgroundColor(Bruno2, 255);
  1284.     TextDrawFont(Bruno2, 1);
  1285.     TextDrawLetterSize(Bruno2, 0.209999, 1.100000);
  1286.     TextDrawColor(Bruno2, -1);
  1287.     TextDrawSetOutline(Bruno2, 1);
  1288.     TextDrawSetProportional(Bruno2, 8);
  1289.    
  1290.     relogio = TextDrawCreate(290.0000, 400.0000,"00:00");
  1291.     TextDrawBackgroundColor(relogio, 255);
  1292.     TextDrawFont(relogio, 1);
  1293.     TextDrawLetterSize(relogio, 0.209999, 1.000000);
  1294.     TextDrawColor(relogio, -1);
  1295.     TextDrawSetOutline(relogio, 0);
  1296.     TextDrawSetProportional(relogio, 11);
  1297.     TextDrawSetShadow(relogio, 1);
  1298.    
  1299.     Logados = TextDrawCreate(315.0000, 410.0000, "_");
  1300.     TextDrawBackgroundColor(Logados, 255);
  1301.     TextDrawFont(Logados, 1);
  1302.     TextDrawLetterSize(Logados, 0.209999, 1.000000);
  1303.     TextDrawColor(Logados, -1);
  1304.     TextDrawSetOutline(Logados, 0);
  1305.     TextDrawSetProportional(Logados, 11);
  1306.     TextDrawSetShadow(Logados, 1);
  1307.    
  1308.     return 1;
  1309. }
  1310. public OnGameModeExit()
  1311. {
  1312.     DOF2_Exit();
  1313.     TextDrawHideForAll(Bruno0);
  1314.     TextDrawDestroy(Bruno0);
  1315.     TextDrawHideForAll(Bruno1);
  1316.     TextDrawDestroy(Bruno1);
  1317.     TextDrawHideForAll(Bruno2);
  1318.     TextDrawDestroy(Bruno2);
  1319.     TextDrawHideForAll(Bruno3);
  1320.     TextDrawDestroy(Bruno3);
  1321.     TextDrawHideForAll(Logados);
  1322.     TextDrawDestroy(Logados);
  1323.     print("\n");
  1324.     print("************************************");
  1325.     print("*                                  *");
  1326.     print("*      ----------------------      *");
  1327.     print("*        Servidor Desligado        *");
  1328.     print("*      ----------------------      *");
  1329.     print("*         By BrunoBernardo         *");
  1330.     print("*                                  *");
  1331.     print("************************************");
  1332.     print("\n");
  1333.     return 1;
  1334. }
  1335. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1336. {
  1337.     if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  1338.     {
  1339.         cmd_entrar(playerid, #);
  1340.         cmd_sair(playerid, #);
  1341.         cmd_disfarce(playerid, #);
  1342.     }
  1343.     if(newkeys == KEY_WALK)
  1344.     {
  1345.         cmd_pegarmeusequipamentos(playerid, #);
  1346.     }
  1347.     if((newkeys == 2) && (IsPlayerInAnyVehicle(playerid)))
  1348.     {
  1349.         cmd_tomarterritorio(playerid, #);
  1350.     }
  1351.     if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  1352.     {
  1353.         cmd_lojasorvete(playerid, #);
  1354.         cmd_lojahotdog(playerid, #);
  1355.         cmd_lojahamburguer(playerid, #);
  1356.     }
  1357.     return 1;
  1358. }
  1359. public tomandogz(playerid)
  1360. {
  1361.     if(PlayerNoTerritorio(playerid,MORRO))
  1362.     {
  1363.         if(gTeam[playerid] == CV)
  1364.         {
  1365.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1366.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Morro da ORG %s!",playernome, morrodono);
  1367.             SendClientMessageToAll(COR_CV,TextoString);
  1368.             format(morrodono,120,"Comando Vermelho");
  1369.             GangZoneFlashForAll(morroterritorio,COR_CV);
  1370.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1371.         }
  1372.         if(gTeam[playerid] == PCC)
  1373.         {
  1374.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1375.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Morro da ORG %s!",playernome, morrodono);
  1376.             SendClientMessageToAll(COR_PCC,TextoString);
  1377.             format(morrodono,120,"PCC");
  1378.             GangZoneFlashForAll(morroterritorio,COR_PCC);
  1379.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1380.         }
  1381.         if(gTeam[playerid] == ADA)
  1382.         {
  1383.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1384.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Morro da ORG %s!",playernome, morrodono);
  1385.             SendClientMessageToAll(COR_ADA,TextoString);
  1386.             format(morrodono,120,"ADA");
  1387.             GangZoneFlashForAll(morroterritorio,COR_ADA);
  1388.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1389.         }
  1390.         if(gTeam[playerid] == TCP)
  1391.         {
  1392.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1393.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Morro da ORG %s!",playernome, morrodono);
  1394.             SendClientMessageToAll(COR_TCP,TextoString);
  1395.             format(morrodono,120,"TCP");
  1396.             GangZoneFlashForAll(morroterritorio,COR_TCP);
  1397.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1398.         }
  1399.         if(gTeam[playerid] == COP)
  1400.         {
  1401.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1402.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Morro da ORG %s!",playernome, morrodono);
  1403.             SendClientMessageToAll(COR_COP,TextoString);
  1404.             format(morrodono,120,"COP");
  1405.             GangZoneFlashForAll(morroterritorio,COR_COP);
  1406.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1407.         }
  1408.     }
  1409.     else if(PlayerNoTerritorio(playerid,QUADRA))
  1410.     {
  1411.         if(gTeam[playerid] == CV)
  1412.         {
  1413.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1414.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Quadra da ORG %s!",playernome, quadradono);
  1415.             SendClientMessageToAll(COR_CV,TextoString);
  1416.             format(quadradono,120,"Comando Vermelho");
  1417.             GangZoneFlashForAll(quadraterritorio,COR_CV);
  1418.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1419.         }
  1420.         if(gTeam[playerid] == PCC)
  1421.         {
  1422.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1423.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Quadra da ORG %s!",playernome, quadradono);
  1424.             SendClientMessageToAll(COR_PCC,TextoString);
  1425.             format(quadradono,120,"PCC");
  1426.             GangZoneFlashForAll(quadraterritorio,COR_PCC);
  1427.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1428.         }
  1429.         if(gTeam[playerid] == ADA)
  1430.         {
  1431.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1432.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Quadra da ORG %s!",playernome, quadradono);
  1433.             SendClientMessageToAll(COR_ADA,TextoString);
  1434.             format(quadradono,120,"ADA");
  1435.             GangZoneFlashForAll(quadraterritorio,COR_ADA);
  1436.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1437.         }
  1438.         if(gTeam[playerid] == TCP)
  1439.         {
  1440.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1441.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Quadra da ORG %s!",playernome, quadradono);
  1442.             SendClientMessageToAll(COR_TCP,TextoString);
  1443.             format(quadradono,120,"TCP");
  1444.             GangZoneFlashForAll(quadraterritorio,COR_TCP);
  1445.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1446.         }
  1447.         if(gTeam[playerid] == COP)
  1448.         {
  1449.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1450.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Quadra da ORG %s!",playernome, quadradono);
  1451.             SendClientMessageToAll(COR_COP,TextoString);
  1452.             format(quadradono,120,"COP");
  1453.             GangZoneFlashForAll(quadraterritorio,COR_COP);
  1454.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1455.         }
  1456.     }
  1457.     else if(PlayerNoTerritorio(playerid,PARQUE))
  1458.     {
  1459.         if(gTeam[playerid] == CV)
  1460.         {
  1461.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1462.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Parque da ORG %s!",playernome, parquedono);
  1463.             SendClientMessageToAll(COR_CV,TextoString);
  1464.             format(parquedono,120,"Comando Vermelho");
  1465.             GangZoneFlashForAll(parqueterritorio,COR_CV);
  1466.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1467.         }
  1468.         if(gTeam[playerid] == PCC)
  1469.         {
  1470.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1471.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Parque da ORG %s!",playernome, parquedono);
  1472.             SendClientMessageToAll(COR_PCC,TextoString);
  1473.             format(parquedono,120,"PCC");
  1474.             GangZoneFlashForAll(parqueterritorio,COR_PCC);
  1475.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1476.         }
  1477.         if(gTeam[playerid] == ADA)
  1478.         {
  1479.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1480.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Parque da ORG %s!",playernome, parquedono);
  1481.             SendClientMessageToAll(COR_ADA,TextoString);
  1482.             format(parquedono,120,"ADA");
  1483.             GangZoneFlashForAll(parqueterritorio,COR_ADA);
  1484.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1485.         }
  1486.         if(gTeam[playerid] == TCP)
  1487.         {
  1488.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1489.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Parque da ORG %s!",playernome, parquedono);
  1490.             SendClientMessageToAll(COR_TCP,TextoString);
  1491.             format(parquedono,120,"TCP");
  1492.             GangZoneFlashForAll(parqueterritorio,COR_TCP);
  1493.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1494.         }
  1495.         if(gTeam[playerid] == COP)
  1496.         {
  1497.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1498.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Parque da ORG %s!",playernome, parquedono);
  1499.             SendClientMessageToAll(COR_COP,TextoString);
  1500.             format(parquedono,120,"COP");
  1501.             GangZoneFlashForAll(parqueterritorio,COR_COP);
  1502.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1503.         }
  1504.     }
  1505.     else if(PlayerNoTerritorio(playerid,RIACHO))
  1506.     {
  1507.         if(gTeam[playerid] == CV)
  1508.         {
  1509.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1510.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Riacho da ORG %s!",playernome, riachodono);
  1511.             SendClientMessageToAll(COR_CV,TextoString);
  1512.             format(riachodono,120,"Comando Vermelho");
  1513.             GangZoneFlashForAll(riachoterritorio,COR_CV);
  1514.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1515.         }
  1516.         if(gTeam[playerid] == PCC)
  1517.         {
  1518.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1519.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Riacho da ORG %s!",playernome, riachodono);
  1520.             SendClientMessageToAll(COR_PCC,TextoString);
  1521.             format(riachodono,120,"PCC");
  1522.             GangZoneFlashForAll(riachoterritorio,COR_PCC);
  1523.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1524.         }
  1525.         if(gTeam[playerid] == ADA)
  1526.         {
  1527.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1528.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Riacho da ORG %s!",playernome, riachodono);
  1529.             SendClientMessageToAll(COR_ADA,TextoString);
  1530.             format(riachodono,120,"ADA");
  1531.             GangZoneFlashForAll(riachoterritorio,COR_ADA);
  1532.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1533.         }
  1534.         if(gTeam[playerid] == TCP)
  1535.         {
  1536.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1537.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Riacho da ORG %s!",playernome, riachodono);
  1538.             SendClientMessageToAll(COR_TCP,TextoString);
  1539.             format(riachodono,120,"TCP");
  1540.             GangZoneFlashForAll(riachoterritorio,COR_TCP);
  1541.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1542.         }
  1543.         if(gTeam[playerid] == COP)
  1544.         {
  1545.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1546.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Riacho da ORG %s!",playernome, riachodono);
  1547.             SendClientMessageToAll(COR_COP,TextoString);
  1548.             format(riachodono,120,"COP");
  1549.             GangZoneFlashForAll(riachoterritorio,COR_COP);
  1550.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1551.         }
  1552.     }
  1553.     else if(PlayerNoTerritorio(playerid,INDUSTRIA))
  1554.     {
  1555.         if(gTeam[playerid] == CV)
  1556.         {
  1557.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1558.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Industria da ORG %s!",playernome, industriadono);
  1559.             SendClientMessageToAll(COR_CV,TextoString);
  1560.             format(industriadono,120,"Comando Vermelho");
  1561.             GangZoneFlashForAll(industriaterritorio,COR_CV);
  1562.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1563.         }
  1564.         if(gTeam[playerid] == PCC)
  1565.         {
  1566.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1567.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Industria da ORG %s!",playernome, industriadono);
  1568.             SendClientMessageToAll(COR_PCC,TextoString);
  1569.             format(industriadono,120,"PCC");
  1570.             GangZoneFlashForAll(industriaterritorio,COR_PCC);
  1571.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1572.         }
  1573.         if(gTeam[playerid] == ADA)
  1574.         {
  1575.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1576.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Industria da ORG %s!",playernome, industriadono);
  1577.             SendClientMessageToAll(COR_ADA,TextoString);
  1578.             format(industriadono,120,"ADA");
  1579.             GangZoneFlashForAll(industriaterritorio,COR_ADA);
  1580.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1581.         }
  1582.         if(gTeam[playerid] == TCP)
  1583.         {
  1584.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1585.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Industria da ORG %s!",playernome, industriadono);
  1586.             SendClientMessageToAll(COR_TCP,TextoString);
  1587.             format(industriadono,120,"TCP");
  1588.             GangZoneFlashForAll(industriaterritorio,COR_TCP);
  1589.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1590.         }
  1591.         if(gTeam[playerid] == COP)
  1592.         {
  1593.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1594.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Industria da ORG %s!",playernome, industriadono);
  1595.             SendClientMessageToAll(COR_COP,TextoString);
  1596.             format(industriadono,120,"COP");
  1597.             GangZoneFlashForAll(industriaterritorio,COR_COP);
  1598.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1599.         }
  1600.     }
  1601.     else if(PlayerNoTerritorio(playerid,AEROPORTO))
  1602.     {
  1603.         if(gTeam[playerid] == CV)
  1604.         {
  1605.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1606.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Aeroporto da ORG %s!",playernome, aeroportodono);
  1607.             SendClientMessageToAll(COR_CV,TextoString);
  1608.             format(aeroportodono,120,"Comando Vermelho");
  1609.             GangZoneFlashForAll(aeroportoterritorio,COR_CV);
  1610.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1611.         }
  1612.         if(gTeam[playerid] == PCC)
  1613.         {
  1614.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1615.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Aeroporto da ORG %s!",playernome, aeroportodono);
  1616.             SendClientMessageToAll(COR_PCC,TextoString);
  1617.             format(aeroportodono,120,"PCC");
  1618.             GangZoneFlashForAll(aeroportoterritorio,COR_PCC);
  1619.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1620.         }
  1621.         if(gTeam[playerid] == ADA)
  1622.         {
  1623.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1624.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Aeroporto da ORG %s!",playernome, aeroportodono);
  1625.             SendClientMessageToAll(COR_ADA,TextoString);
  1626.             format(aeroportodono,120,"ADA");
  1627.             GangZoneFlashForAll(aeroportoterritorio,COR_ADA);
  1628.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1629.         }
  1630.         if(gTeam[playerid] == TCP)
  1631.         {
  1632.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1633.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Aeroporto da ORG %s!",playernome, aeroportodono);
  1634.             SendClientMessageToAll(COR_TCP,TextoString);
  1635.             format(aeroportodono,120,"TCP");
  1636.             GangZoneFlashForAll(aeroportoterritorio,COR_TCP);
  1637.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1638.         }
  1639.         if(gTeam[playerid] == COP)
  1640.         {
  1641.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1642.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Aeroporto da ORG %s!",playernome, aeroportodono);
  1643.             SendClientMessageToAll(COR_COP,TextoString);
  1644.             format(aeroportodono,120,"COP");
  1645.             GangZoneFlashForAll(aeroportoterritorio,COR_COP);
  1646.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1647.         }
  1648.     }
  1649.     else if(PlayerNoTerritorio(playerid,CASARAO))
  1650.     {
  1651.         if(gTeam[playerid] == CV)
  1652.         {
  1653.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1654.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Casarao da ORG %s!",playernome, casaraodono);
  1655.             SendClientMessageToAll(COR_CV,TextoString);
  1656.             format(casaraodono,120,"Comando Vermelho");
  1657.             GangZoneFlashForAll(casaraoterritorio,COR_CV);
  1658.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1659.         }
  1660.         if(gTeam[playerid] == PCC)
  1661.         {
  1662.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1663.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Casarao da ORG %s!",playernome, casaraodono);
  1664.             SendClientMessageToAll(COR_PCC,TextoString);
  1665.             format(casaraodono,120,"PCC");
  1666.             GangZoneFlashForAll(casaraoterritorio,COR_PCC);
  1667.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1668.         }
  1669.         if(gTeam[playerid] == ADA)
  1670.         {
  1671.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1672.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Casarao da ORG %s!",playernome, casaraodono);
  1673.             SendClientMessageToAll(COR_ADA,TextoString);
  1674.             format(casaraodono,120,"ADA");
  1675.             GangZoneFlashForAll(casaraoterritorio,COR_ADA);
  1676.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1677.         }
  1678.         if(gTeam[playerid] == TCP)
  1679.         {
  1680.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1681.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Casarao da ORG %s!",playernome, casaraodono);
  1682.             SendClientMessageToAll(COR_TCP,TextoString);
  1683.             format(casaraodono,120,"TCP");
  1684.             GangZoneFlashForAll(casaraoterritorio,COR_TCP);
  1685.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1686.         }
  1687.         if(gTeam[playerid] == COP)
  1688.         {
  1689.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1690.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Casarao da ORG %s!",playernome, casaraodono);
  1691.             SendClientMessageToAll(COR_COP,TextoString);
  1692.             format(casaraodono,120,"COP");
  1693.             GangZoneFlashForAll(casaraoterritorio,COR_COP);
  1694.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1695.         }
  1696.     }
  1697.     else if(PlayerNoTerritorio(playerid,ESTACAO))
  1698.     {
  1699.         if(gTeam[playerid] == CV)
  1700.         {
  1701.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1702.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Estacao da ORG %s!",playernome, estacaodono);
  1703.             SendClientMessageToAll(COR_CV,TextoString);
  1704.             format(estacaodono,120,"Comando Vermelho");
  1705.             GangZoneFlashForAll(estacaoterritorio,COR_CV);
  1706.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1707.         }
  1708.         if(gTeam[playerid] == PCC)
  1709.         {
  1710.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1711.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Estacao da ORG %s!",playernome, estacaodono);
  1712.             SendClientMessageToAll(COR_PCC,TextoString);
  1713.             format(estacaodono,120,"PCC");
  1714.             GangZoneFlashForAll(estacaoterritorio,COR_PCC);
  1715.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1716.         }
  1717.         if(gTeam[playerid] == ADA)
  1718.         {
  1719.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1720.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Estacao da ORG %s!",playernome, estacaodono);
  1721.             SendClientMessageToAll(COR_ADA,TextoString);
  1722.             format(estacaodono,120,"ADA");
  1723.             GangZoneFlashForAll(estacaoterritorio,COR_ADA);
  1724.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1725.         }
  1726.         if(gTeam[playerid] == TCP)
  1727.         {
  1728.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1729.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Estacao da ORG %s!",playernome, estacaodono);
  1730.             SendClientMessageToAll(COR_TCP,TextoString);
  1731.             format(estacaodono,120,"TCP");
  1732.             GangZoneFlashForAll(estacaoterritorio,COR_TCP);
  1733.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1734.         }
  1735.         if(gTeam[playerid] == COP)
  1736.         {
  1737.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1738.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Estacao da ORG %s!",playernome, estacaodono);
  1739.             SendClientMessageToAll(COR_COP,TextoString);
  1740.             format(estacaodono,120,"COP");
  1741.             GangZoneFlashForAll(estacaoterritorio,COR_COP);
  1742.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1743.         }
  1744.     }
  1745.     else if(PlayerNoTerritorio(playerid,FAVELA))
  1746.     {
  1747.         if(gTeam[playerid] == CV)
  1748.         {
  1749.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1750.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Favela da ORG %s!",playernome, faveladono);
  1751.             SendClientMessageToAll(COR_CV,TextoString);
  1752.             format(faveladono,120,"Comando Vermelho");
  1753.             GangZoneFlashForAll(favelaterritorio,COR_CV);
  1754.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1755.         }
  1756.         if(gTeam[playerid] == PCC)
  1757.         {
  1758.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1759.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Favela da ORG %s!",playernome, faveladono);
  1760.             SendClientMessageToAll(COR_PCC,TextoString);
  1761.             format(faveladono,120,"PCC");
  1762.             GangZoneFlashForAll(favelaterritorio,COR_PCC);
  1763.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1764.         }
  1765.         if(gTeam[playerid] == ADA)
  1766.         {
  1767.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1768.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Favela da ORG %s!",playernome, faveladono);
  1769.             SendClientMessageToAll(COR_ADA,TextoString);
  1770.             format(faveladono,120,"ADA");
  1771.             GangZoneFlashForAll(favelaterritorio,COR_ADA);
  1772.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1773.         }
  1774.         if(gTeam[playerid] == TCP)
  1775.         {
  1776.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1777.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Favela da ORG %s!",playernome, faveladono);
  1778.             SendClientMessageToAll(COR_TCP,TextoString);
  1779.             format(faveladono,120,"TCP");
  1780.             GangZoneFlashForAll(favelaterritorio,COR_TCP);
  1781.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1782.         }
  1783.         if(gTeam[playerid] == COP)
  1784.         {
  1785.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1786.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Favela da ORG %s!",playernome, faveladono);
  1787.             SendClientMessageToAll(COR_COP,TextoString);
  1788.             format(faveladono,120,"COP");
  1789.             GangZoneFlashForAll(favelaterritorio,COR_COP);
  1790.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1791.         }
  1792.     }
  1793.     else if(PlayerNoTerritorio(playerid,PISTA))
  1794.     {
  1795.         if(gTeam[playerid] == CV)
  1796.         {
  1797.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1798.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Pista da ORG %s!",playernome, pistadono);
  1799.             SendClientMessageToAll(COR_CV,TextoString);
  1800.             format(pistadono,120,"Comando Vermelho");
  1801.             GangZoneFlashForAll(pistaterritorio,COR_CV);
  1802.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1803.         }
  1804.         if(gTeam[playerid] == PCC)
  1805.         {
  1806.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1807.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Pista da ORG %s!",playernome, pistadono);
  1808.             SendClientMessageToAll(COR_PCC,TextoString);
  1809.             format(pistadono,120,"PCC");
  1810.             GangZoneFlashForAll(pistaterritorio,COR_PCC);
  1811.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1812.         }
  1813.         if(gTeam[playerid] == ADA)
  1814.         {
  1815.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1816.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Pista da ORG %s!",playernome, pistadono);
  1817.             SendClientMessageToAll(COR_ADA,TextoString);
  1818.             format(pistadono,120,"ADA");
  1819.             GangZoneFlashForAll(pistaterritorio,COR_ADA);
  1820.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1821.         }
  1822.         if(gTeam[playerid] == TCP)
  1823.         {
  1824.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1825.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Pista da ORG %s!",playernome, pistadono);
  1826.             SendClientMessageToAll(COR_TCP,TextoString);
  1827.             format(pistadono,120,"TCP");
  1828.             GangZoneFlashForAll(pistaterritorio,COR_TCP);
  1829.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1830.         }
  1831.         if(gTeam[playerid] == COP)
  1832.         {
  1833.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1834.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Pista da ORG %s!",playernome, pistadono);
  1835.             SendClientMessageToAll(COR_COP,TextoString);
  1836.             format(pistadono,120,"COP");
  1837.             GangZoneFlashForAll(pistaterritorio,COR_COP);
  1838.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1839.         }
  1840.     }
  1841.     else if(PlayerNoTerritorio(playerid,ESTADIO))
  1842.     {
  1843.         if(gTeam[playerid] == CV)
  1844.         {
  1845.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1846.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Estadio da ORG %s!",playernome, estadiodono);
  1847.             SendClientMessageToAll(COR_CV,TextoString);
  1848.             format(estadiodono,120,"Comando Vermelho");
  1849.             GangZoneFlashForAll(estadioterritorio,COR_CV);
  1850.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1851.         }
  1852.         if(gTeam[playerid] == PCC)
  1853.         {
  1854.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1855.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Estadio da ORG %s!",playernome, estadiodono);
  1856.             SendClientMessageToAll(COR_PCC,TextoString);
  1857.             format(estadiodono,120,"PCC");
  1858.             GangZoneFlashForAll(estadioterritorio,COR_PCC);
  1859.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1860.         }
  1861.         if(gTeam[playerid] == ADA)
  1862.         {
  1863.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1864.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Estadio da ORG %s!",playernome, estadiodono);
  1865.             SendClientMessageToAll(COR_ADA,TextoString);
  1866.             format(estadiodono,120,"ADA");
  1867.             GangZoneFlashForAll(estadioterritorio,COR_ADA);
  1868.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1869.         }
  1870.         if(gTeam[playerid] == TCP)
  1871.         {
  1872.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1873.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Estadio da ORG %s!",playernome, estadiodono);
  1874.             SendClientMessageToAll(COR_TCP,TextoString);
  1875.             format(estadiodono,120,"TCP");
  1876.             GangZoneFlashForAll(estadioterritorio,COR_TCP);
  1877.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1878.         }
  1879.         if(gTeam[playerid] == COP)
  1880.         {
  1881.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1882.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Estadio da ORG %s!",playernome, estadiodono);
  1883.             SendClientMessageToAll(COR_COP,TextoString);
  1884.             format(estadiodono,120,"COP");
  1885.             GangZoneFlashForAll(estadioterritorio,COR_COP);
  1886.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1887.         }
  1888.     }
  1889.     else if(PlayerNoTerritorio(playerid,TERRENO))
  1890.     {
  1891.         if(gTeam[playerid] == CV)
  1892.         {
  1893.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1894.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Terreno Baudio da ORG %s!",playernome, terrenodono);
  1895.             SendClientMessageToAll(COR_CV,TextoString);
  1896.             format(terrenodono,120,"Comando Vermelho");
  1897.             GangZoneFlashForAll(terrenoterritorio,COR_CV);
  1898.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1899.         }
  1900.         if(gTeam[playerid] == PCC)
  1901.         {
  1902.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1903.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Terreno Baudio da ORG %s!",playernome, terrenodono);
  1904.             SendClientMessageToAll(COR_PCC,TextoString);
  1905.             format(terrenodono,120,"PCC");
  1906.             GangZoneFlashForAll(terrenoterritorio,COR_PCC);
  1907.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1908.         }
  1909.         if(gTeam[playerid] == ADA)
  1910.         {
  1911.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1912.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Terreno Baudio da ORG %s!",playernome, terrenodono);
  1913.             SendClientMessageToAll(COR_ADA,TextoString);
  1914.             format(terrenodono,120,"ADA");
  1915.             GangZoneFlashForAll(terrenoterritorio,COR_ADA);
  1916.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1917.         }
  1918.         if(gTeam[playerid] == TCP)
  1919.         {
  1920.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1921.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Terreno Baudio da ORG %s!",playernome, terrenodono);
  1922.             SendClientMessageToAll(COR_TCP,TextoString);
  1923.             format(terrenodono,120,"TCP");
  1924.             GangZoneFlashForAll(terrenoterritorio,COR_TCP);
  1925.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1926.         }
  1927.         if(gTeam[playerid] == COP)
  1928.         {
  1929.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1930.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Terreno Baudio da ORG %s!",playernome, terrenodono);
  1931.             SendClientMessageToAll(COR_COP,TextoString);
  1932.             format(terrenodono,120,"COP");
  1933.             GangZoneFlashForAll(terrenoterritorio,COR_COP);
  1934.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1935.         }
  1936.     }
  1937.     else if(PlayerNoTerritorio(playerid,PIER))
  1938.     {
  1939.         if(gTeam[playerid] == CV)
  1940.         {
  1941.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1942.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Pier Da Praia da ORG %s!",playernome, pierdono);
  1943.             SendClientMessageToAll(COR_CV,TextoString);
  1944.             format(pierdono,120,"Comando Vermelho");
  1945.             GangZoneFlashForAll(pierterritorio,COR_CV);
  1946.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1947.         }
  1948.         if(gTeam[playerid] == PCC)
  1949.         {
  1950.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1951.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Pier Da Praia da ORG %s!",playernome, pierdono);
  1952.             SendClientMessageToAll(COR_PCC,TextoString);
  1953.             format(pierdono,120,"PCC");
  1954.             GangZoneFlashForAll(pierterritorio,COR_PCC);
  1955.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  1956.         }
  1957.         if(gTeam[playerid] == ADA)
  1958.         {
  1959.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1960.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Pier Da Praia da ORG %s!",playernome, pierdono);
  1961.             SendClientMessageToAll(COR_ADA,TextoString);
  1962.             format(pierdono,120,"ADA");
  1963.             GangZoneFlashForAll(pierterritorio,COR_ADA);
  1964.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  1965.         }
  1966.         if(gTeam[playerid] == TCP)
  1967.         {
  1968.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1969.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Pier Da Praia da ORG %s!",playernome, pierdono);
  1970.             SendClientMessageToAll(COR_TCP,TextoString);
  1971.             format(pierdono,120,"TCP");
  1972.             GangZoneFlashForAll(pierterritorio,COR_TCP);
  1973.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  1974.         }
  1975.         if(gTeam[playerid] == COP)
  1976.         {
  1977.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1978.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'Sestão tomando o controle do Pier Da Praia da ORG %s!",playernome, pierdono);
  1979.             SendClientMessageToAll(COR_COP,TextoString);
  1980.             format(pierdono,120,"COP");
  1981.             GangZoneFlashForAll(pierterritorio,COR_COP);
  1982.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  1983.         }
  1984.     }
  1985.     else if(PlayerNoTerritorio(playerid,FAZENDINHA))
  1986.     {
  1987.         if(gTeam[playerid] == CV)
  1988.         {
  1989.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1990.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Fazendinha da ORG %s!",playernome, fazendinhadono);
  1991.             SendClientMessageToAll(COR_CV,TextoString);
  1992.             format(fazendinhadono,120,"Comando Vermelho");
  1993.             GangZoneFlashForAll(fazendinhaterritorio,COR_CV);
  1994.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  1995.         }
  1996.         if(gTeam[playerid] == PCC)
  1997.         {
  1998.             GetPlayerName(playerid, playernome, sizeof(playernome));
  1999.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Fazendinha da ORG %s!",playernome, fazendinhadono);
  2000.             SendClientMessageToAll(COR_PCC,TextoString);
  2001.             format(fazendinhadono,120,"PCC");
  2002.             GangZoneFlashForAll(fazendinhaterritorio,COR_PCC);
  2003.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  2004.         }
  2005.         if(gTeam[playerid] == ADA)
  2006.         {
  2007.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2008.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Fazendinha da ORG %s!",playernome, fazendinhadono);
  2009.             SendClientMessageToAll(COR_ADA,TextoString);
  2010.             format(fazendinhadono,120,"ADA");
  2011.             GangZoneFlashForAll(fazendinhaterritorio,COR_ADA);
  2012.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  2013.         }
  2014.         if(gTeam[playerid] == TCP)
  2015.         {
  2016.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2017.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Fazendinha da ORG %s!",playernome, fazendinhadono);
  2018.             SendClientMessageToAll(COR_TCP,TextoString);
  2019.             format(fazendinhadono,120,"TCP");
  2020.             GangZoneFlashForAll(fazendinhaterritorio,COR_TCP);
  2021.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  2022.         }
  2023.         if(gTeam[playerid] == COP)
  2024.         {
  2025.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2026.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Fazendinha da ORG %s!",playernome, fazendinhadono);
  2027.             SendClientMessageToAll(COR_COP,TextoString);
  2028.             format(fazendinhadono,120,"COP");
  2029.             GangZoneFlashForAll(fazendinhaterritorio,COR_COP);
  2030.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  2031.         }
  2032.     }
  2033.     else if(PlayerNoTerritorio(playerid,DOCAS))
  2034.     {
  2035.         if(gTeam[playerid] == CV)
  2036.         {
  2037.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2038.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle das Docas da ORG %s!",playernome, docasdono);
  2039.             SendClientMessageToAll(COR_CV,TextoString);
  2040.             format(docasdono,120,"Comando Vermelho");
  2041.             GangZoneFlashForAll(docasterritorio,COR_CV);
  2042.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  2043.         }
  2044.         if(gTeam[playerid] == PCC)
  2045.         {
  2046.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2047.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle das Docas da ORG %s!",playernome, docasdono);
  2048.             SendClientMessageToAll(COR_PCC,TextoString);
  2049.             format(docasdono,120,"PCC");
  2050.             GangZoneFlashForAll(docasterritorio,COR_PCC);
  2051.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  2052.         }
  2053.         if(gTeam[playerid] == ADA)
  2054.         {
  2055.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2056.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle das Docas da ORG %s!",playernome, docasdono);
  2057.             SendClientMessageToAll(COR_ADA,TextoString);
  2058.             format(docasdono,120,"ADA");
  2059.             GangZoneFlashForAll(docasterritorio,COR_ADA);
  2060.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  2061.         }
  2062.         if(gTeam[playerid] == TCP)
  2063.         {
  2064.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2065.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle das Docas da ORG %s!",playernome, docasdono);
  2066.             SendClientMessageToAll(COR_TCP,TextoString);
  2067.             format(docasdono,120,"TCP");
  2068.             GangZoneFlashForAll(docasterritorio,COR_TCP);
  2069.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  2070.         }
  2071.         if(gTeam[playerid] == COP)
  2072.         {
  2073.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2074.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle das Docas da ORG %s!",playernome, docasdono);
  2075.             SendClientMessageToAll(COR_COP,TextoString);
  2076.             format(docasdono,120,"COP");
  2077.             GangZoneFlashForAll(docasterritorio,COR_COP);
  2078.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  2079.         }
  2080.     }
  2081.     else if(PlayerNoTerritorio(playerid,LINHA))
  2082.     {
  2083.         if(gTeam[playerid] == CV)
  2084.         {
  2085.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2086.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Estrada De Ferro da ORG %s!",playernome, linhadono);
  2087.             SendClientMessageToAll(COR_CV,TextoString);
  2088.             format(linhadono,120,"Comando Vermelho");
  2089.             GangZoneFlashForAll(linhaterritorio,COR_CV);
  2090.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  2091.         }
  2092.         if(gTeam[playerid] == PCC)
  2093.         {
  2094.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2095.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Estrada De Ferro da ORG %s!",playernome, linhadono);
  2096.             SendClientMessageToAll(COR_PCC,TextoString);
  2097.             format(linhadono,120,"PCC");
  2098.             GangZoneFlashForAll(linhaterritorio,COR_PCC);
  2099.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  2100.         }
  2101.         if(gTeam[playerid] == ADA)
  2102.         {
  2103.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2104.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Estrada De Ferro da ORG %s!",playernome, linhadono);
  2105.             SendClientMessageToAll(COR_ADA,TextoString);
  2106.             format(linhadono,120,"ADA");
  2107.             GangZoneFlashForAll(linhaterritorio,COR_ADA);
  2108.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  2109.         }
  2110.         if(gTeam[playerid] == TCP)
  2111.         {
  2112.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2113.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Estrada De Ferro da ORG %s!",playernome, linhadono);
  2114.             SendClientMessageToAll(COR_TCP,TextoString);
  2115.             format(linhadono,120,"TCP");
  2116.             GangZoneFlashForAll(linhaterritorio,COR_TCP);
  2117.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  2118.         }
  2119.         if(gTeam[playerid] == COP)
  2120.         {
  2121.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2122.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Estrada De Ferro da ORG %s!",playernome, linhadono);
  2123.             SendClientMessageToAll(COR_COP,TextoString);
  2124.             format(linhadono,120,"COP");
  2125.             GangZoneFlashForAll(linhaterritorio,COR_COP);
  2126.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  2127.         }
  2128.     }
  2129.     else if(PlayerNoTerritorio(playerid,MANSAO))
  2130.     {
  2131.         if(gTeam[playerid] == CV)
  2132.         {
  2133.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2134.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle das Mansões da ORG %s!",playernome, mansaodono);
  2135.             SendClientMessageToAll(COR_CV,TextoString);
  2136.             format(mansaodono,120,"Comando Vermelho");
  2137.             GangZoneFlashForAll(mansaoterritorio,COR_CV);
  2138.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  2139.         }
  2140.         if(gTeam[playerid] == PCC)
  2141.         {
  2142.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2143.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle das Mansões da ORG %s!",playernome, mansaodono);
  2144.             SendClientMessageToAll(COR_PCC,TextoString);
  2145.             format(mansaodono,120,"PCC");
  2146.             GangZoneFlashForAll(mansaoterritorio,COR_PCC);
  2147.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  2148.         }
  2149.         if(gTeam[playerid] == ADA)
  2150.         {
  2151.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2152.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle das Mansões da ORG %s!",playernome, mansaodono);
  2153.             SendClientMessageToAll(COR_ADA,TextoString);
  2154.             format(mansaodono,120,"ADA");
  2155.             GangZoneFlashForAll(mansaoterritorio,COR_ADA);
  2156.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  2157.         }
  2158.         if(gTeam[playerid] == TCP)
  2159.         {
  2160.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2161.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle das Mansões da ORG %s!",playernome, mansaodono);
  2162.             SendClientMessageToAll(COR_TCP,TextoString);
  2163.             format(mansaodono,120,"TCP");
  2164.             GangZoneFlashForAll(mansaoterritorio,COR_TCP);
  2165.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  2166.         }
  2167.         if(gTeam[playerid] == COP)
  2168.         {
  2169.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2170.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle das Mansões da ORG %s!",playernome, mansaodono);
  2171.             SendClientMessageToAll(COR_COP,TextoString);
  2172.             format(mansaodono,120,"COP");
  2173.             GangZoneFlashForAll(mansaoterritorio,COR_COP);
  2174.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  2175.         }
  2176.     }
  2177.     else if(PlayerNoTerritorio(playerid,RURAL))
  2178.     {
  2179.         if(gTeam[playerid] == CV)
  2180.         {
  2181.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2182.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Zona Rural da ORG %s!",playernome, ruraldono);
  2183.             SendClientMessageToAll(COR_CV,TextoString);
  2184.             format(ruraldono,120,"Comando Vermelho");
  2185.             GangZoneFlashForAll(ruralterritorio,COR_CV);
  2186.             SetTimerEx("cvtomou", 30000, 0,"e",playerid);
  2187.         }
  2188.         if(gTeam[playerid] == PCC)
  2189.         {
  2190.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2191.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Zona Rural da ORG %s!",playernome, ruraldono);
  2192.             SendClientMessageToAll(COR_PCC,TextoString);
  2193.             format(ruraldono,120,"PCC");
  2194.             GangZoneFlashForAll(ruralterritorio,COR_PCC);
  2195.             SetTimerEx("pcctomou", 30000, 0,"e",playerid);
  2196.         }
  2197.         if(gTeam[playerid] == ADA)
  2198.         {
  2199.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2200.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Zona Rural da ORG %s!",playernome, ruraldono);
  2201.             SendClientMessageToAll(COR_ADA,TextoString);
  2202.             format(ruraldono,120,"ADA");
  2203.             GangZoneFlashForAll(ruralterritorio,COR_ADA);
  2204.             SetTimerEx("adatomou", 30000, 0,"e",playerid);
  2205.         }
  2206.         if(gTeam[playerid] == TCP)
  2207.         {
  2208.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2209.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Zona Rural da ORG %s!",playernome, ruraldono);
  2210.             SendClientMessageToAll(COR_TCP,TextoString);
  2211.             format(ruraldono,120,"TCP");
  2212.             GangZoneFlashForAll(ruralterritorio,COR_TCP);
  2213.             SetTimerEx("tcptomou", 30000, 0,"e",playerid);
  2214.         }
  2215.         if(gTeam[playerid] == COP)
  2216.         {
  2217.             GetPlayerName(playerid, playernome, sizeof(playernome));
  2218.             format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Zona Rural da ORG %s!",playernome, ruraldono);
  2219.             SendClientMessageToAll(COR_COP,TextoString);
  2220.             format(ruraldono,120,"COP");
  2221.             GangZoneFlashForAll(ruralterritorio,COR_COP);
  2222.             SetTimerEx("coptomou", 30000, 0,"e",playerid);
  2223.         }
  2224.     }
  2225.     return 1;
  2226. }
  2227. public cvtomou(playerid)
  2228. {
  2229.     if(PlayerNoTerritorio(playerid,MORRO))
  2230.     {
  2231.         GangZoneStopFlashForAll(morroterritorio);
  2232.         GangZoneHideForAll(morroterritorio);
  2233.         GangZoneShowForAll(morroterritorio,COR_CV);
  2234.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2235.     }
  2236.     else if(PlayerNoTerritorio(playerid,QUADRA))
  2237.     {
  2238.         GangZoneStopFlashForAll(quadraterritorio);
  2239.         GangZoneHideForAll(quadraterritorio);
  2240.         GangZoneShowForAll(quadraterritorio,COR_CV);
  2241.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2242.     }
  2243.     else if(PlayerNoTerritorio(playerid,PARQUE))
  2244.     {
  2245.         GangZoneStopFlashForAll(parqueterritorio);
  2246.         GangZoneHideForAll(parqueterritorio);
  2247.         GangZoneShowForAll(parqueterritorio,COR_CV);
  2248.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2249.     }
  2250.     else if(PlayerNoTerritorio(playerid,RIACHO))
  2251.     {
  2252.         GangZoneStopFlashForAll(riachoterritorio);
  2253.         GangZoneHideForAll(riachoterritorio);
  2254.         GangZoneShowForAll(riachoterritorio,COR_CV);
  2255.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2256.     }
  2257.     else if(PlayerNoTerritorio(playerid,INDUSTRIA))
  2258.     {
  2259.         GangZoneStopFlashForAll(industriaterritorio);
  2260.         GangZoneHideForAll(industriaterritorio);
  2261.         GangZoneShowForAll(industriaterritorio,COR_CV);
  2262.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2263.     }
  2264.     else if(PlayerNoTerritorio(playerid,AEROPORTO))
  2265.     {
  2266.         GangZoneStopFlashForAll(aeroportoterritorio);
  2267.         GangZoneHideForAll(aeroportoterritorio);
  2268.         GangZoneShowForAll(aeroportoterritorio,COR_CV);
  2269.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2270.     }
  2271.     else if(PlayerNoTerritorio(playerid,CASARAO))
  2272.     {
  2273.         GangZoneStopFlashForAll(casaraoterritorio);
  2274.         GangZoneHideForAll(casaraoterritorio);
  2275.         GangZoneShowForAll(casaraoterritorio,COR_CV);
  2276.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2277.     }
  2278.     else if(PlayerNoTerritorio(playerid,ESTACAO))
  2279.     {
  2280.         GangZoneStopFlashForAll(estacaoterritorio);
  2281.         GangZoneHideForAll(estacaoterritorio);
  2282.         GangZoneShowForAll(estacaoterritorio,COR_CV);
  2283.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2284.     }
  2285.     else if(PlayerNoTerritorio(playerid,FAVELA))
  2286.     {
  2287.         GangZoneStopFlashForAll(favelaterritorio);
  2288.         GangZoneHideForAll(favelaterritorio);
  2289.         GangZoneShowForAll(favelaterritorio,COR_CV);
  2290.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2291.     }
  2292.     else if(PlayerNoTerritorio(playerid,PISTA))
  2293.     {
  2294.         GangZoneStopFlashForAll(pistaterritorio);
  2295.         GangZoneHideForAll(pistaterritorio);
  2296.         GangZoneShowForAll(pistaterritorio,COR_CV);
  2297.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2298.     }
  2299.     else if(PlayerNoTerritorio(playerid,ESTADIO))
  2300.     {
  2301.         GangZoneStopFlashForAll(estadioterritorio);
  2302.         GangZoneHideForAll(estadioterritorio);
  2303.         GangZoneShowForAll(estadioterritorio,COR_CV);
  2304.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2305.     }
  2306.     else if(PlayerNoTerritorio(playerid,TERRENO))
  2307.     {
  2308.         GangZoneStopFlashForAll(terrenoterritorio);
  2309.         GangZoneHideForAll(terrenoterritorio);
  2310.         GangZoneShowForAll(terrenoterritorio,COR_CV);
  2311.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2312.     }
  2313.     else if(PlayerNoTerritorio(playerid,PIER))
  2314.     {
  2315.         GangZoneStopFlashForAll(pierterritorio);
  2316.         GangZoneHideForAll(pierterritorio);
  2317.         GangZoneShowForAll(pierterritorio,COR_CV);
  2318.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2319.     }
  2320.     else if(PlayerNoTerritorio(playerid,FAZENDINHA))
  2321.     {
  2322.         GangZoneStopFlashForAll(fazendinhaterritorio);
  2323.         GangZoneHideForAll(fazendinhaterritorio);
  2324.         GangZoneShowForAll(fazendinhaterritorio,COR_CV);
  2325.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2326.     }
  2327.     else if(PlayerNoTerritorio(playerid,DOCAS))
  2328.     {
  2329.         GangZoneStopFlashForAll(docasterritorio);
  2330.         GangZoneHideForAll(docasterritorio);
  2331.         GangZoneShowForAll(docasterritorio,COR_CV);
  2332.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2333.     }
  2334.     else if(PlayerNoTerritorio(playerid,LINHA))
  2335.     {
  2336.         GangZoneStopFlashForAll(linhaterritorio);
  2337.         GangZoneHideForAll(linhaterritorio);
  2338.         GangZoneShowForAll(linhaterritorio,COR_CV);
  2339.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2340.     }
  2341.     else if(PlayerNoTerritorio(playerid,MANSAO))
  2342.     {
  2343.         GangZoneStopFlashForAll(mansaoterritorio);
  2344.         GangZoneHideForAll(mansaoterritorio);
  2345.         GangZoneShowForAll(mansaoterritorio,COR_CV);
  2346.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2347.     }
  2348.     else if(PlayerNoTerritorio(playerid,RURAL))
  2349.     {
  2350.         GangZoneStopFlashForAll(ruralterritorio);
  2351.         GangZoneHideForAll(ruralterritorio);
  2352.         GangZoneShowForAll(ruralterritorio,COR_CV);
  2353.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2354.     }
  2355.     return 1;
  2356. }
  2357. public pcctomou(playerid)
  2358. {
  2359.     if(PlayerNoTerritorio(playerid,MORRO))
  2360.     {
  2361.         GangZoneStopFlashForAll(morroterritorio);
  2362.         GangZoneHideForAll(morroterritorio);
  2363.         GangZoneShowForAll(morroterritorio,COR_PCC);
  2364.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2365.     }
  2366.     else if(PlayerNoTerritorio(playerid,QUADRA))
  2367.     {
  2368.         GangZoneStopFlashForAll(quadraterritorio);
  2369.         GangZoneHideForAll(quadraterritorio);
  2370.         GangZoneShowForAll(quadraterritorio,COR_PCC);
  2371.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2372.     }
  2373.     else if(PlayerNoTerritorio(playerid,PARQUE))
  2374.     {
  2375.         GangZoneStopFlashForAll(parqueterritorio);
  2376.         GangZoneHideForAll(parqueterritorio);
  2377.         GangZoneShowForAll(parqueterritorio,COR_PCC);
  2378.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2379.     }
  2380.     else if(PlayerNoTerritorio(playerid,RIACHO))
  2381.     {
  2382.         GangZoneStopFlashForAll(riachoterritorio);
  2383.         GangZoneHideForAll(riachoterritorio);
  2384.         GangZoneShowForAll(riachoterritorio,COR_PCC);
  2385.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2386.     }
  2387.     else if(PlayerNoTerritorio(playerid,INDUSTRIA))
  2388.     {
  2389.         GangZoneStopFlashForAll(industriaterritorio);
  2390.         GangZoneHideForAll(industriaterritorio);
  2391.         GangZoneShowForAll(industriaterritorio,COR_PCC);
  2392.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2393.     }
  2394.     else if(PlayerNoTerritorio(playerid,AEROPORTO))
  2395.     {
  2396.         GangZoneStopFlashForAll(aeroportoterritorio);
  2397.         GangZoneHideForAll(aeroportoterritorio);
  2398.         GangZoneShowForAll(aeroportoterritorio,COR_PCC);
  2399.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2400.     }
  2401.     else if(PlayerNoTerritorio(playerid,CASARAO))
  2402.     {
  2403.         GangZoneStopFlashForAll(casaraoterritorio);
  2404.         GangZoneHideForAll(casaraoterritorio);
  2405.         GangZoneShowForAll(casaraoterritorio,COR_PCC);
  2406.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2407.     }
  2408.     else if(PlayerNoTerritorio(playerid,ESTACAO))
  2409.     {
  2410.         GangZoneStopFlashForAll(estacaoterritorio);
  2411.         GangZoneHideForAll(estacaoterritorio);
  2412.         GangZoneShowForAll(estacaoterritorio,COR_PCC);
  2413.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2414.     }
  2415.     else if(PlayerNoTerritorio(playerid,FAVELA))
  2416.     {
  2417.         GangZoneStopFlashForAll(favelaterritorio);
  2418.         GangZoneHideForAll(favelaterritorio);
  2419.         GangZoneShowForAll(favelaterritorio,COR_PCC);
  2420.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2421.     }
  2422.     else if(PlayerNoTerritorio(playerid,PISTA))
  2423.     {
  2424.         GangZoneStopFlashForAll(pistaterritorio);
  2425.         GangZoneHideForAll(pistaterritorio);
  2426.         GangZoneShowForAll(pistaterritorio,COR_PCC);
  2427.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2428.     }
  2429.     else if(PlayerNoTerritorio(playerid,ESTADIO))
  2430.     {
  2431.         GangZoneStopFlashForAll(estadioterritorio);
  2432.         GangZoneHideForAll(estadioterritorio);
  2433.         GangZoneShowForAll(estadioterritorio,COR_PCC);
  2434.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2435.     }
  2436.     else if(PlayerNoTerritorio(playerid,TERRENO))
  2437.     {
  2438.         GangZoneStopFlashForAll(terrenoterritorio);
  2439.         GangZoneHideForAll(terrenoterritorio);
  2440.         GangZoneShowForAll(terrenoterritorio,COR_PCC);
  2441.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2442.     }
  2443.     else if(PlayerNoTerritorio(playerid,PIER))
  2444.     {
  2445.         GangZoneStopFlashForAll(pierterritorio);
  2446.         GangZoneHideForAll(pierterritorio);
  2447.         GangZoneShowForAll(pierterritorio,COR_PCC);
  2448.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2449.     }
  2450.     else if(PlayerNoTerritorio(playerid,FAZENDINHA))
  2451.     {
  2452.         GangZoneStopFlashForAll(fazendinhaterritorio);
  2453.         GangZoneHideForAll(fazendinhaterritorio);
  2454.         GangZoneShowForAll(fazendinhaterritorio,COR_PCC);
  2455.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2456.     }
  2457.     else if(PlayerNoTerritorio(playerid,DOCAS))
  2458.     {
  2459.         GangZoneStopFlashForAll(docasterritorio);
  2460.         GangZoneHideForAll(docasterritorio);
  2461.         GangZoneShowForAll(docasterritorio,COR_PCC);
  2462.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2463.     }
  2464.     else if(PlayerNoTerritorio(playerid,LINHA))
  2465.     {
  2466.         GangZoneStopFlashForAll(linhaterritorio);
  2467.         GangZoneHideForAll(linhaterritorio);
  2468.         GangZoneShowForAll(linhaterritorio,COR_PCC);
  2469.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2470.     }
  2471.     else if(PlayerNoTerritorio(playerid,MANSAO))
  2472.     {
  2473.         GangZoneStopFlashForAll(mansaoterritorio);
  2474.         GangZoneHideForAll(mansaoterritorio);
  2475.         GangZoneShowForAll(mansaoterritorio,COR_PCC);
  2476.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2477.     }
  2478.     else if(PlayerNoTerritorio(playerid,RURAL))
  2479.     {
  2480.         GangZoneStopFlashForAll(ruralterritorio);
  2481.         GangZoneHideForAll(ruralterritorio);
  2482.         GangZoneShowForAll(ruralterritorio,COR_PCC);
  2483.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2484.     }
  2485.     return 1;
  2486. }
  2487. public adatomou(playerid)
  2488. {
  2489.     if(PlayerNoTerritorio(playerid,MORRO))
  2490.     {
  2491.         GangZoneStopFlashForAll(morroterritorio);
  2492.         GangZoneHideForAll(morroterritorio);
  2493.         GangZoneShowForAll(morroterritorio,COR_ADA);
  2494.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2495.     }
  2496.     else if(PlayerNoTerritorio(playerid,QUADRA))
  2497.     {
  2498.         GangZoneStopFlashForAll(quadraterritorio);
  2499.         GangZoneHideForAll(quadraterritorio);
  2500.         GangZoneShowForAll(quadraterritorio,COR_ADA);
  2501.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2502.     }
  2503.     else if(PlayerNoTerritorio(playerid,PARQUE))
  2504.     {
  2505.         GangZoneStopFlashForAll(parqueterritorio);
  2506.         GangZoneHideForAll(parqueterritorio);
  2507.         GangZoneShowForAll(parqueterritorio,COR_ADA);
  2508.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2509.     }
  2510.     else if(PlayerNoTerritorio(playerid,RIACHO))
  2511.     {
  2512.         GangZoneStopFlashForAll(riachoterritorio);
  2513.         GangZoneHideForAll(riachoterritorio);
  2514.         GangZoneShowForAll(riachoterritorio,COR_ADA);
  2515.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2516.     }
  2517.     else if(PlayerNoTerritorio(playerid,INDUSTRIA))
  2518.     {
  2519.         GangZoneStopFlashForAll(industriaterritorio);
  2520.         GangZoneHideForAll(industriaterritorio);
  2521.         GangZoneShowForAll(industriaterritorio,COR_ADA);
  2522.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2523.     }
  2524.     else if(PlayerNoTerritorio(playerid,AEROPORTO))
  2525.     {
  2526.         GangZoneStopFlashForAll(aeroportoterritorio);
  2527.         GangZoneHideForAll(aeroportoterritorio);
  2528.         GangZoneShowForAll(aeroportoterritorio,COR_ADA);
  2529.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2530.     }
  2531.     else if(PlayerNoTerritorio(playerid,CASARAO))
  2532.     {
  2533.         GangZoneStopFlashForAll(casaraoterritorio);
  2534.         GangZoneHideForAll(casaraoterritorio);
  2535.         GangZoneShowForAll(casaraoterritorio,COR_ADA);
  2536.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2537.     }
  2538.     else if(PlayerNoTerritorio(playerid,ESTACAO))
  2539.     {
  2540.         GangZoneStopFlashForAll(estacaoterritorio);
  2541.         GangZoneHideForAll(estacaoterritorio);
  2542.         GangZoneShowForAll(estacaoterritorio,COR_ADA);
  2543.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2544.     }
  2545.     else if(PlayerNoTerritorio(playerid,FAVELA))
  2546.     {
  2547.         GangZoneStopFlashForAll(favelaterritorio);
  2548.         GangZoneHideForAll(favelaterritorio);
  2549.         GangZoneShowForAll(favelaterritorio,COR_ADA);
  2550.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2551.     }
  2552.     else if(PlayerNoTerritorio(playerid,PISTA))
  2553.     {
  2554.         GangZoneStopFlashForAll(pistaterritorio);
  2555.         GangZoneHideForAll(pistaterritorio);
  2556.         GangZoneShowForAll(pistaterritorio,COR_ADA);
  2557.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2558.     }
  2559.     else if(PlayerNoTerritorio(playerid,ESTADIO))
  2560.     {
  2561.         GangZoneStopFlashForAll(estadioterritorio);
  2562.         GangZoneHideForAll(estadioterritorio);
  2563.         GangZoneShowForAll(estadioterritorio,COR_ADA);
  2564.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2565.     }
  2566.     else if(PlayerNoTerritorio(playerid,TERRENO))
  2567.     {
  2568.         GangZoneStopFlashForAll(terrenoterritorio);
  2569.         GangZoneHideForAll(terrenoterritorio);
  2570.         GangZoneShowForAll(terrenoterritorio,COR_ADA);
  2571.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2572.     }
  2573.     else if(PlayerNoTerritorio(playerid,PIER))
  2574.     {
  2575.         GangZoneStopFlashForAll(pierterritorio);
  2576.         GangZoneHideForAll(pierterritorio);
  2577.         GangZoneShowForAll(pierterritorio,COR_ADA);
  2578.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2579.     }
  2580.     else if(PlayerNoTerritorio(playerid,FAZENDINHA))
  2581.     {
  2582.         GangZoneStopFlashForAll(fazendinhaterritorio);
  2583.         GangZoneHideForAll(fazendinhaterritorio);
  2584.         GangZoneShowForAll(fazendinhaterritorio,COR_ADA);
  2585.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2586.     }
  2587.     else if(PlayerNoTerritorio(playerid,DOCAS))
  2588.     {
  2589.         GangZoneStopFlashForAll(docasterritorio);
  2590.         GangZoneHideForAll(docasterritorio);
  2591.         GangZoneShowForAll(docasterritorio,COR_ADA);
  2592.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2593.     }
  2594.     else if(PlayerNoTerritorio(playerid,LINHA))
  2595.     {
  2596.         GangZoneStopFlashForAll(linhaterritorio);
  2597.         GangZoneHideForAll(linhaterritorio);
  2598.         GangZoneShowForAll(linhaterritorio,COR_ADA);
  2599.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2600.     }
  2601.     else if(PlayerNoTerritorio(playerid,MANSAO))
  2602.     {
  2603.         GangZoneStopFlashForAll(mansaoterritorio);
  2604.         GangZoneHideForAll(mansaoterritorio);
  2605.         GangZoneShowForAll(mansaoterritorio,COR_ADA);
  2606.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2607.     }
  2608.     else if(PlayerNoTerritorio(playerid,RURAL))
  2609.     {
  2610.         GangZoneStopFlashForAll(ruralterritorio);
  2611.         GangZoneHideForAll(ruralterritorio);
  2612.         GangZoneShowForAll(ruralterritorio,COR_ADA);
  2613.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2614.     }
  2615.     return 1;
  2616. }
  2617. public tcptomou(playerid)
  2618. {
  2619.     if(PlayerNoTerritorio(playerid,MORRO))
  2620.     {
  2621.         GangZoneStopFlashForAll(morroterritorio);
  2622.         GangZoneHideForAll(morroterritorio);
  2623.         GangZoneShowForAll(morroterritorio,COR_TCP);
  2624.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2625.     }
  2626.     else if(PlayerNoTerritorio(playerid,QUADRA))
  2627.     {
  2628.         GangZoneStopFlashForAll(quadraterritorio);
  2629.         GangZoneHideForAll(quadraterritorio);
  2630.         GangZoneShowForAll(quadraterritorio,COR_TCP);
  2631.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2632.     }
  2633.     else if(PlayerNoTerritorio(playerid,PARQUE))
  2634.     {
  2635.         GangZoneStopFlashForAll(parqueterritorio);
  2636.         GangZoneHideForAll(parqueterritorio);
  2637.         GangZoneShowForAll(parqueterritorio,COR_TCP);
  2638.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2639.     }
  2640.     else if(PlayerNoTerritorio(playerid,RIACHO))
  2641.     {
  2642.         GangZoneStopFlashForAll(riachoterritorio);
  2643.         GangZoneHideForAll(riachoterritorio);
  2644.         GangZoneShowForAll(riachoterritorio,COR_TCP);
  2645.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2646.     }
  2647.     else if(PlayerNoTerritorio(playerid,INDUSTRIA))
  2648.     {
  2649.         GangZoneStopFlashForAll(industriaterritorio);
  2650.         GangZoneHideForAll(industriaterritorio);
  2651.         GangZoneShowForAll(industriaterritorio,COR_TCP);
  2652.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2653.     }
  2654.     else if(PlayerNoTerritorio(playerid,AEROPORTO))
  2655.     {
  2656.         GangZoneStopFlashForAll(aeroportoterritorio);
  2657.         GangZoneHideForAll(aeroportoterritorio);
  2658.         GangZoneShowForAll(aeroportoterritorio,COR_TCP);
  2659.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2660.     }
  2661.     else if(PlayerNoTerritorio(playerid,CASARAO))
  2662.     {
  2663.         GangZoneStopFlashForAll(casaraoterritorio);
  2664.         GangZoneHideForAll(casaraoterritorio);
  2665.         GangZoneShowForAll(casaraoterritorio,COR_TCP);
  2666.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2667.     }
  2668.     else if(PlayerNoTerritorio(playerid,ESTACAO))
  2669.     {
  2670.         GangZoneStopFlashForAll(estacaoterritorio);
  2671.         GangZoneHideForAll(estacaoterritorio);
  2672.         GangZoneShowForAll(estacaoterritorio,COR_TCP);
  2673.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2674.     }
  2675.     else if(PlayerNoTerritorio(playerid,FAVELA))
  2676.     {
  2677.         GangZoneStopFlashForAll(favelaterritorio);
  2678.         GangZoneHideForAll(favelaterritorio);
  2679.         GangZoneShowForAll(favelaterritorio,COR_TCP);
  2680.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2681.     }
  2682.     else if(PlayerNoTerritorio(playerid,PISTA))
  2683.     {
  2684.         GangZoneStopFlashForAll(pistaterritorio);
  2685.         GangZoneHideForAll(pistaterritorio);
  2686.         GangZoneShowForAll(pistaterritorio,COR_TCP);
  2687.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2688.     }
  2689.     else if(PlayerNoTerritorio(playerid,ESTADIO))
  2690.     {
  2691.         GangZoneStopFlashForAll(estadioterritorio);
  2692.         GangZoneHideForAll(estadioterritorio);
  2693.         GangZoneShowForAll(estadioterritorio,COR_TCP);
  2694.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2695.     }
  2696.     else if(PlayerNoTerritorio(playerid,TERRENO))
  2697.     {
  2698.         GangZoneStopFlashForAll(terrenoterritorio);
  2699.         GangZoneHideForAll(terrenoterritorio);
  2700.         GangZoneShowForAll(terrenoterritorio,COR_TCP);
  2701.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2702.     }
  2703.     else if(PlayerNoTerritorio(playerid,PIER))
  2704.     {
  2705.         GangZoneStopFlashForAll(pierterritorio);
  2706.         GangZoneHideForAll(pierterritorio);
  2707.         GangZoneShowForAll(pierterritorio,COR_TCP);
  2708.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2709.     }
  2710.     else if(PlayerNoTerritorio(playerid,FAZENDINHA))
  2711.     {
  2712.         GangZoneStopFlashForAll(fazendinhaterritorio);
  2713.         GangZoneHideForAll(fazendinhaterritorio);
  2714.         GangZoneShowForAll(fazendinhaterritorio,COR_TCP);
  2715.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2716.     }
  2717.     else if(PlayerNoTerritorio(playerid,DOCAS))
  2718.     {
  2719.         GangZoneStopFlashForAll(docasterritorio);
  2720.         GangZoneHideForAll(docasterritorio);
  2721.         GangZoneShowForAll(docasterritorio,COR_TCP);
  2722.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2723.     }
  2724.     else if(PlayerNoTerritorio(playerid,LINHA))
  2725.     {
  2726.         GangZoneStopFlashForAll(linhaterritorio);
  2727.         GangZoneHideForAll(linhaterritorio);
  2728.         GangZoneShowForAll(linhaterritorio,COR_TCP);
  2729.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2730.     }
  2731.     else if(PlayerNoTerritorio(playerid,MANSAO))
  2732.     {
  2733.         GangZoneStopFlashForAll(mansaoterritorio);
  2734.         GangZoneHideForAll(mansaoterritorio);
  2735.         GangZoneShowForAll(mansaoterritorio,COR_TCP);
  2736.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2737.     }
  2738.     else if(PlayerNoTerritorio(playerid,RURAL))
  2739.     {
  2740.         GangZoneStopFlashForAll(ruralterritorio);
  2741.         GangZoneHideForAll(ruralterritorio);
  2742.         GangZoneShowForAll(ruralterritorio,COR_TCP);
  2743.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2744.     }
  2745.     return 1;
  2746. }
  2747. public coptomou(playerid)
  2748. {
  2749.     if(PlayerNoTerritorio(playerid,MORRO))
  2750.     {
  2751.         GangZoneStopFlashForAll(morroterritorio);
  2752.         GangZoneHideForAll(morroterritorio);
  2753.         GangZoneShowForAll(morroterritorio,COR_COP);
  2754.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2755.     }
  2756.     else if(PlayerNoTerritorio(playerid,QUADRA))
  2757.     {
  2758.         GangZoneStopFlashForAll(quadraterritorio);
  2759.         GangZoneHideForAll(quadraterritorio);
  2760.         GangZoneShowForAll(quadraterritorio,COR_COP);
  2761.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2762.     }
  2763.     else if(PlayerNoTerritorio(playerid,PARQUE))
  2764.     {
  2765.         GangZoneStopFlashForAll(parqueterritorio);
  2766.         GangZoneHideForAll(parqueterritorio);
  2767.         GangZoneShowForAll(parqueterritorio,COR_COP);
  2768.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2769.     }
  2770.     else if(PlayerNoTerritorio(playerid,RIACHO))
  2771.     {
  2772.         GangZoneStopFlashForAll(riachoterritorio);
  2773.         GangZoneHideForAll(riachoterritorio);
  2774.         GangZoneShowForAll(riachoterritorio,COR_COP);
  2775.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2776.     }
  2777.     else if(PlayerNoTerritorio(playerid,INDUSTRIA))
  2778.     {
  2779.         GangZoneStopFlashForAll(industriaterritorio);
  2780.         GangZoneHideForAll(industriaterritorio);
  2781.         GangZoneShowForAll(industriaterritorio,COR_COP);
  2782.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2783.     }
  2784.     else if(PlayerNoTerritorio(playerid,AEROPORTO))
  2785.     {
  2786.         GangZoneStopFlashForAll(aeroportoterritorio);
  2787.         GangZoneHideForAll(aeroportoterritorio);
  2788.         GangZoneShowForAll(aeroportoterritorio,COR_COP);
  2789.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2790.     }
  2791.     else if(PlayerNoTerritorio(playerid,CASARAO))
  2792.     {
  2793.         GangZoneStopFlashForAll(casaraoterritorio);
  2794.         GangZoneHideForAll(casaraoterritorio);
  2795.         GangZoneShowForAll(casaraoterritorio,COR_COP);
  2796.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2797.     }
  2798.     else if(PlayerNoTerritorio(playerid,ESTACAO))
  2799.     {
  2800.         GangZoneStopFlashForAll(estacaoterritorio);
  2801.         GangZoneHideForAll(estacaoterritorio);
  2802.         GangZoneShowForAll(estacaoterritorio,COR_COP);
  2803.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2804.     }
  2805.     else if(PlayerNoTerritorio(playerid,FAVELA))
  2806.     {
  2807.         GangZoneStopFlashForAll(favelaterritorio);
  2808.         GangZoneHideForAll(favelaterritorio);
  2809.         GangZoneShowForAll(favelaterritorio,COR_COP);
  2810.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2811.     }
  2812.     else if(PlayerNoTerritorio(playerid,PISTA))
  2813.     {
  2814.         GangZoneStopFlashForAll(pistaterritorio);
  2815.         GangZoneHideForAll(pistaterritorio);
  2816.         GangZoneShowForAll(pistaterritorio,COR_COP);
  2817.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2818.     }
  2819.     else if(PlayerNoTerritorio(playerid,ESTADIO))
  2820.     {
  2821.         GangZoneStopFlashForAll(estadioterritorio);
  2822.         GangZoneHideForAll(estadioterritorio);
  2823.         GangZoneShowForAll(estadioterritorio,COR_COP);
  2824.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2825.     }
  2826.     else if(PlayerNoTerritorio(playerid,TERRENO))
  2827.     {
  2828.         GangZoneStopFlashForAll(terrenoterritorio);
  2829.         GangZoneHideForAll(terrenoterritorio);
  2830.         GangZoneShowForAll(terrenoterritorio,COR_COP);
  2831.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2832.     }
  2833.     else if(PlayerNoTerritorio(playerid,PIER))
  2834.     {
  2835.         GangZoneStopFlashForAll(pierterritorio);
  2836.         GangZoneHideForAll(pierterritorio);
  2837.         GangZoneShowForAll(pierterritorio,COR_COP);
  2838.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2839.     }
  2840.     else if(PlayerNoTerritorio(playerid,FAZENDINHA))
  2841.     {
  2842.         GangZoneStopFlashForAll(fazendinhaterritorio);
  2843.         GangZoneHideForAll(fazendinhaterritorio);
  2844.         GangZoneShowForAll(fazendinhaterritorio,COR_COP);
  2845.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2846.     }
  2847.     else if(PlayerNoTerritorio(playerid,DOCAS))
  2848.     {
  2849.         GangZoneStopFlashForAll(docasterritorio);
  2850.         GangZoneHideForAll(docasterritorio);
  2851.         GangZoneShowForAll(docasterritorio,COR_COP);
  2852.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2853.     }
  2854.     else if(PlayerNoTerritorio(playerid,LINHA))
  2855.     {
  2856.         GangZoneStopFlashForAll(linhaterritorio);
  2857.         GangZoneHideForAll(linhaterritorio);
  2858.         GangZoneShowForAll(linhaterritorio,COR_COP);
  2859.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2860.     }
  2861.     else if(PlayerNoTerritorio(playerid,MANSAO))
  2862.     {
  2863.         GangZoneStopFlashForAll(mansaoterritorio);
  2864.         GangZoneHideForAll(mansaoterritorio);
  2865.         GangZoneShowForAll(mansaoterritorio,COR_COP);
  2866.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2867.     }
  2868.     else if(PlayerNoTerritorio(playerid,RURAL))
  2869.     {
  2870.         GangZoneStopFlashForAll(ruralterritorio);
  2871.         GangZoneHideForAll(ruralterritorio);
  2872.         GangZoneShowForAll(ruralterritorio,COR_COP);
  2873.         SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
  2874.     }
  2875.     return 1;
  2876. }
  2877. stock PlayerNoTerritorio(playerid, Float:xmin, Float:ymin, Float:xmax, Float:ymax)
  2878. {
  2879.     new Float:x, Float:y, Float:z;
  2880.     GetPlayerPos(playerid, x, y, z);
  2881.     if(x >= xmin && y >= ymin && xmax <= xmax && y <= ymax) return true;
  2882.     return false;
  2883. }
  2884. public ChatLimpo(playerid, lines)
  2885. {
  2886.     if(IsPlayerConnected(playerid))
  2887.     {
  2888.         for(new i=0; i<lines; i++)
  2889.         {
  2890.             SendClientMessage(playerid, COR_MSG2, " ");
  2891.         }
  2892.     }
  2893.     return 1;
  2894. }
  2895. public MapaRandamonico()
  2896. {
  2897.     new random1 = random(sizeof(NomesMapa));
  2898.     format(TextoString, sizeof(TextoString), "mapname %s", NomesMapa[random1] );
  2899.     SendRconCommand(TextoString);
  2900.     return 1;
  2901. }
  2902. public ModeRandamonico()
  2903. {
  2904.     new random1 = random(sizeof(NomesMode));
  2905.     format(TextoString, sizeof(TextoString), "gamemodetext %s", NomesMode[random1] );
  2906.     SendRconCommand(TextoString);
  2907.     return 1;
  2908. }
  2909. public NomeServidorRandamonico()
  2910. {
  2911.     new random1 = random(sizeof(NomeDoServidor));
  2912.     format(TextoString, sizeof(TextoString), "hostname %s", NomeDoServidor[random1] );
  2913.     SendRconCommand(TextoString);
  2914.     return 1;
  2915. }
  2916. public AnuncioRandamonico()
  2917. {
  2918.     new random1 = random(sizeof(Anuncios));
  2919.     new random2 = random(sizeof(CoresAnuncios));
  2920.     format(TextoString, sizeof(TextoString), "%s", Anuncios[random1]);
  2921.     SendClientMessageToAll(CoresAnuncios[random2],TextoString);
  2922.     return 1;
  2923. }
  2924. public OnPlayerStateChange(playerid, newstate, oldstate)
  2925. {
  2926.     new carros = GetPlayerVehicleID(playerid);
  2927.     if(newstate == PLAYER_STATE_DRIVER)
  2928.     {
  2929.         if(CarrosCv(carros))
  2930.         {
  2931.             if(PlayerCv(playerid)) { }
  2932.             else {
  2933.             RemovePlayerFromVehicle(playerid);
  2934.             SendClientMessage(playerid, COR_MSG2, "Você não pode usar um veiculo do Comando Vermelho!"); }
  2935.         }
  2936.         else if(CarrosPcc(carros))
  2937.         {
  2938.             if(PlayerPcc(playerid)) { }
  2939.             else {
  2940.             RemovePlayerFromVehicle(playerid);
  2941.             SendClientMessage(playerid, COR_MSG2, "Você não pode usar um veiculo do PCC!"); }
  2942.         }
  2943.         else if(CarrosAda(carros))
  2944.         {
  2945.             if(PlayerAda(playerid)) { }
  2946.             else {
  2947.             RemovePlayerFromVehicle(playerid);
  2948.             SendClientMessage(playerid, COR_MSG2, "Você não pode usar um veiculo do ADA!"); }
  2949.         }
  2950.         else if(CarrosTcp(carros))
  2951.         {
  2952.             if(PlayerTcp(playerid)) { }
  2953.             else {
  2954.             RemovePlayerFromVehicle(playerid);
  2955.             SendClientMessage(playerid, COR_MSG2, "Você não pode usar um veiculo do TCP!"); }
  2956.         }
  2957.         else if(CarrosCop(carros))
  2958.         {
  2959.             if(PlayerCop(playerid)) { }
  2960.             else {
  2961.             RemovePlayerFromVehicle(playerid);
  2962.             SendClientMessage(playerid, COR_MSG2, "Você não pode usar um veiculo dos Cop's!"); }
  2963.         }
  2964.     }
  2965.     return 1;
  2966. }
  2967. public PlayerCv(playerid)
  2968. {
  2969.     if(IsPlayerConnected(playerid))
  2970.     {
  2971.         if(gTeam[playerid] == CV)
  2972.         {
  2973.             return 1;
  2974.         }
  2975.     }
  2976.     return 0;
  2977. }
  2978.  
  2979. public CarrosCv(carid)
  2980. {
  2981.     if((carid >= CARROCV1) && (carid <= CARROCV2))
  2982.     {
  2983.         return 1;
  2984.     }
  2985.     return 0;
  2986. }
  2987. public PlayerPcc(playerid)
  2988. {
  2989.     if(IsPlayerConnected(playerid))
  2990.     {
  2991.         if(gTeam[playerid] == PCC)
  2992.         {
  2993.             return 1;
  2994.         }
  2995.     }
  2996.     return 0;
  2997. }
  2998.  
  2999. public CarrosPcc(carid)
  3000. {
  3001.     if((carid >= CARROPCC1) && (carid <= CARROPCC2))
  3002.     {
  3003.         return 1;
  3004.     }
  3005.     return 0;
  3006. }
  3007. public PlayerAda(playerid)
  3008. {
  3009.     if(IsPlayerConnected(playerid))
  3010.     {
  3011.         if(gTeam[playerid] == ADA)
  3012.         {
  3013.             return 1;
  3014.         }
  3015.     }
  3016.     return 0;
  3017. }
  3018.  
  3019. public CarrosAda(carid)
  3020. {
  3021.     if((carid >= CARROADA1) && (carid <= CARROADA2))
  3022.     {
  3023.         return 1;
  3024.     }
  3025.     return 0;
  3026. }
  3027. public PlayerTcp(playerid)
  3028. {
  3029.     if(IsPlayerConnected(playerid))
  3030.     {
  3031.         if(gTeam[playerid] == TCP)
  3032.         {
  3033.             return 1;
  3034.         }
  3035.     }
  3036.     return 0;
  3037. }
  3038.  
  3039. public CarrosTcp(carid)
  3040. {
  3041.     if((carid >= CARROTCP1) && (carid <= CARROTCP2))
  3042.     {
  3043.         return 1;
  3044.     }
  3045.     return 0;
  3046. }
  3047. public PlayerCop(playerid)
  3048. {
  3049.     if(IsPlayerConnected(playerid))
  3050.     {
  3051.         if(gTeam[playerid] == COP)
  3052.         {
  3053.             return 1;
  3054.         }
  3055.     }
  3056.     return 0;
  3057. }
  3058.  
  3059. public CarrosCop(carid)
  3060. {
  3061.     if((carid >= CARROCOP1) && (carid <= CARROCOP2))
  3062.     {
  3063.         return 1;
  3064.     }
  3065.     return 0;
  3066. }
  3067. public HoraServidor()
  3068. {
  3069.     new hour, minute;
  3070.     gettime(hour, minute);
  3071.     format(TextoString,32,"%02d:%02d",hour,minute);
  3072.     TextDrawSetString(relogio, TextoString);
  3073.     SetWorldTime(hour);
  3074.     new x=0;
  3075.     while(x!=MAX_PLAYERS)
  3076.     {
  3077.        if(IsPlayerConnected(x) && GetPlayerState(x) != PLAYER_STATE_NONE)
  3078.        {
  3079.          SetPlayerTime(x,hour,minute);
  3080.        }
  3081.        x++;
  3082.     }
  3083. }
  3084. public MostrarPing()
  3085. {
  3086.     for(new i=0; i<MAX_PLAYERS; i++)
  3087.     {
  3088.         TextDrawShowForPlayer(i, ping[i]);
  3089.         format(TextoString,sizeof(TextoString),"Ping: %i" ,GetPlayerPing(i));
  3090.         TextDrawSetString(ping[i], TextoString);
  3091.     }
  3092. }
  3093. stock PlayersConectados()
  3094. {
  3095.     new OnLine;
  3096.     for(new i, g = GetMaxPlayers(); i < g; i++)
  3097.         if(IsPlayerConnected(i))
  3098.             OnLine++;
  3099.     return OnLine;
  3100. }
  3101. SalvarPlayer(playerid)
  3102. {
  3103.     new Float:Vida;
  3104.     new Float:Colete;
  3105.     GetPlayerHealth(playerid, Vida);
  3106.     GetPlayerArmour(playerid, Colete);
  3107.     GetPlayerName(playerid, playernome, sizeof(playernome));
  3108.     format(TextoString, sizeof(TextoString), SALVARCONTAS, playernome);
  3109.     DOF2_SetInt(TextoString,"Dinheiro", GetPlayerMoney(playerid));
  3110.     DOF2_SetFloat(TextoString,"Vida", Vida);
  3111.     DOF2_SetFloat(TextoString,"Colete", Colete);
  3112.     DOF2_SetInt(TextoString,"Matou", Matou[playerid]);
  3113.     DOF2_SetInt(TextoString,"Morreu", Morreu[playerid]);
  3114.     DOF2_SetInt(TextoString,"Logou", Logou[playerid]);
  3115.     return 1;
  3116. }
  3117. SetarPlayer(playerid)
  3118. {
  3119.     GetPlayerName(playerid, playernome, sizeof(playernome));
  3120.     format(TextoString, sizeof(TextoString), SALVARCONTAS, playernome);
  3121.     GivePlayerMoney(playerid, DOF2_GetInt(TextoString,"Dinheiro"));
  3122.     SetPlayerHealth(playerid, DOF2_GetInt(TextoString,"Vida"));
  3123.     SetPlayerArmour(playerid, DOF2_GetInt(TextoString,"Colete"));
  3124.     Matou[playerid] = DOF2_GetInt(TextoString, "Matou");
  3125.     Morreu[playerid] = DOF2_GetInt(TextoString, "Morreu");
  3126.     Logou[playerid] = DOF2_GetInt(TextoString, "Logou");
  3127.     return 1;
  3128. }
  3129. Status(playerid)
  3130. {
  3131.     GetPlayerName(playerid, playernome, sizeof(playernome));
  3132.     SendClientMessage(playerid, COR_MSG, "================================================");
  3133.     format(TextoString, sizeof(TextoString),"Status De %s",playernome);
  3134.     SendClientMessage(playerid, COR_MSG2,TextoString);
  3135.     format(TextoString, sizeof(TextoString),"Dinheiro: %d", GetPlayerMoney(playerid));
  3136.     SendClientMessage(playerid, COR_MSG2,TextoString);
  3137.     format(TextoString, sizeof(TextoString),"Matou: %d",Matou[playerid]);
  3138.     SendClientMessage(playerid, COR_MSG2,TextoString);
  3139.     format(TextoString, sizeof(TextoString),"Morreu: %d",Morreu[playerid]);
  3140.     SendClientMessage(playerid, COR_MSG2,TextoString);
  3141.     format(TextoString, sizeof(TextoString),"Você Já Logou %d Vezes Neste Servidor",Logou[playerid]);
  3142.     SendClientMessage(playerid, COR_MSG2,TextoString);
  3143.     SendClientMessage(playerid, COR_MSG, "================================================");
  3144.     return 1;
  3145. }
  3146. stock AntiDeAMX()
  3147. {
  3148.     new a[][] =
  3149.     {
  3150.         "Unarmed (Fist)",
  3151.         "Brass K"
  3152.     };
  3153.     #pragma unused a
  3154. }
  3155. /*
  3156.  
  3157.    GameMode Feito Por BrunoBernardo(BrunoTadeu) PorFavor Nao Retire Os Creditos
  3158.           Qualquer Erro Ou Duvida Por Favor Entre Em Contato
  3159.                             Em Breve Atualizaçoes
  3160. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement