Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- GameMode Feito Por BrunoBernardo(BrunoTadeu) PorFavor Nao Retire Os Creditos
- Qualquer Erro Ou Duvida Por Favor Entre Em Contato
- Em Breve Atualizaçoes */
- //Includes
- #include <a_samp>
- #include <zcmd>
- #include <streamer>
- #include <DOF2>
- //Salvar Contas
- #define SALVARCONTAS "Registrados/%s.ini"
- //Numero de cada org
- #define CV 1
- #define PCC 2
- #define ADA 3
- #define TCP 4
- #define COP 5
- //Coordenadas Territorios
- #define MORRO 2117.333, -1069.962, 2261.841, -959.4252
- #define QUADRA 2212.0024, -1487.6130, 2340.5911, -1382.3148
- #define PARQUE 1866.346, -1259.454, 2052.685, -1137.074
- #define RIACHO 706.481, -1591.064, 782.5377, -1417.363
- #define INDUSTRIA 2105.925, -2297.709, 2315.081, -2092.427
- #define AEROPORTO 1368.174, -2380.612, 1592.542, -2218.755
- #define CASARAO 1098.173, -2084.531, 1299.723, -2005.577
- #define ESTACAO 1687.613, -1958.204, 1813.106, -1859.51
- #define FAVELA 2398.743, -1077.857, 2588.885, -916.0001
- #define PISTA 1858.74, -1452.893, 1976.628, -1354.199
- #define ESTADIO 2637.148437, -1888.911621, 2829.148437, -1656.911621
- #define TERRENO 1195.086914, -1289.666992, 1339.086914, -1153.666992
- #define PIER 338.122528, -2093.307128, 410.122528, -1917.307128
- #define FAZENDINHA 988.868652, -407.460083, 1084.868652, -279.460083
- #define DOCAS 2666.996337, -2574.054443, 2802.996337, -2326.054443
- #define LINHA 1998.128662, -676.726684, 2150.128662, -524.726684
- #define MANSAO 227.422027, -1225.652099, 371.422027, -1113.652099
- #define RURAL 429.011718, -862.343750, 589.011718, -710.343750
- //Coordenadas dos Equipar
- #define EQUIPCV 619.4691,-1631.1891,16.6680
- #define EQUIPPCC 1017.6931,-1100.8049,23.8349
- #define EQUIPADA 1674.1227,-2121.7297,14.1460
- #define EQUIPTCP 2610.2988,-2149.8779,-0.1922
- #define EQUIPCOPS 1579.8540,-1635.2819,13.5610
- //Coordenadas dos Disfarçes
- #define DISFARCECV 619.0667,-1626.3339,16.7621
- #define DISFARCEPCC 1004.2588,-1102.7578,23.8281
- #define DISFARCEADA 1671.6729,-2119.6582,13.5469
- #define DISFARCETCP 2608.7842,-2146.4167,-0.2188
- #define DISFARCECOPS 1578.1912,-1634.7853,13.5624
- //Barracas de Lanches
- #define SORVETE 1863.6661,-1396.4680,13.4797
- #define HOTDOG 2151.8064,-1013.4453,62.7985
- #define HAMBURGUER 2266.3564,-1431.9099,24.0000
- //Entradas e Saidas HQs
- #define ENTRADACV 614.7441,-1638.1099,16.4733
- #define SAIDACV 2194.6973,-1204.0468,1049.0234
- #define ENTRADAPCC 1008.1033,-1101.6897,23.8349
- #define SAIDAPCC 364.3205,-74.1893,1001.5078
- #define ENTRADAADA 1674.9597,-2123.2195,14.1460
- #define SAIDAADA 2365.2273,-1134.0299,1050.8750
- #define ENTRADATCP 2580.7283,-2162.3169,0.6433
- #define SAIDATCP 318.6884,1114.6753,1083.8828
- #define ENTRADACOP 1555.3207,-1675.4637,16.1953
- #define SAIDACOP 288.7287,168.5377,1007.1719
- //Carros
- #define CARROCV1 1
- #define CARROCV2 8
- #define CARROPCC1 9
- #define CARROPCC2 16
- #define CARROADA1 17
- #define CARROADA2 24
- #define CARROTCP1 25
- #define CARROTCP2 34
- #define CARROCOP1 35
- #define CARROCOP2 48
- //Dialogs
- #define DIALOG_SUICIDIO 1
- #define DIALOG_CREDITOS 2
- #define DIALOG_AJUDA 3
- #define DIALOG_RANK 4
- #define DIALOG_EQUIPAR 5
- #define DIALOG_EFEITOS 6
- #define DIALOG_BARRACA1 7
- #define DIALOG_BARRACA2 8
- #define DIALOG_BARRACA3 9
- #define DIALOG_DISFARCE 10
- #define DIALOG_REGISTRO 11
- #define DIALOG_LOGAR 12
- //Cores Usadas
- #define COR_CV 0xAA333399
- #define COR_PCC 0x00669999
- #define COR_ADA 0xFF830099
- #define COR_TCP 0x33AA3399
- #define COR_COP 0x807FFE99
- #define COR_MSG 0xA2B5CD99
- #define COR_MSG2 0x00BFFF99
- #define COR_TR 0xFFCCFF99
- #define COR_3D 0xFF000099
- #define COR_EQUIPAR 0x00BFFF99
- #define COR_LOJA 0x00F6F699
- //Facções BR
- static gTeam[MAX_PLAYERS];
- //New's do total acumulado
- new CvAcumulado[MAX_PLAYERS];
- new PccAcumulado[MAX_PLAYERS];
- new AdaAcumulado[MAX_PLAYERS];
- new TcpAcumulado[MAX_PLAYERS];
- new CopAcumulado[MAX_PLAYERS];
- //New's do ganhando
- new CvGanhando[MAX_PLAYERS];
- new PccGanhando[MAX_PLAYERS];
- new AdaGanhando[MAX_PLAYERS];
- new TcpGanhando[MAX_PLAYERS];
- new CopGanhando[MAX_PLAYERS];
- //New's do perdendo
- new CvPerdendo[MAX_PLAYERS];
- new AdaPerdendo[MAX_PLAYERS];
- new PccPerdendo[MAX_PLAYERS];
- new TcpPerdendo[MAX_PLAYERS];
- new CopPerdendo[MAX_PLAYERS];
- new Resultado[128];
- new playernome[MAX_PLAYER_NAME];
- new TextoString[256];
- new Matou[MAX_PLAYERS];
- new Morreu[MAX_PLAYERS];
- new Logou[MAX_PLAYERS];
- //TextDrawns
- new Text:Bruno0;
- new Text:Bruno1;
- new Text:Bruno2;
- new Text:Bruno3;
- new Text:relogio;
- new Text:Logados;
- new Text:ping[MAX_PLAYERS];
- //Tomando Territorio
- new morroterritorio;
- new quadraterritorio;
- new parqueterritorio;
- new riachoterritorio;
- new industriaterritorio;
- new aeroportoterritorio;
- new casaraoterritorio;
- new estacaoterritorio;
- new favelaterritorio;
- new pistaterritorio;
- new estadioterritorio;
- new terrenoterritorio;
- new pierterritorio;
- new fazendinhaterritorio;
- new docasterritorio;
- new linhaterritorio;
- new mansaoterritorio;
- new ruralterritorio;
- new morrodono[120];
- new quadradono[120];
- new parquedono[120];
- new riachodono[120];
- new industriadono[120];
- new aeroportodono[120];
- new casaraodono[120];
- new estacaodono[120];
- new faveladono[120];
- new pistadono[120];
- new estadiodono[120];
- new terrenodono[120];
- new pierdono[120];
- new fazendinhadono[120];
- new docasdono[120];
- new linhadono[120];
- new mansaodono[120];
- new ruraldono[120];
- forward tomandogz(playerid);
- forward cvtomou(playerid);
- forward pcctomou(playerid);
- forward adatomou(playerid);
- forward tcptomou(playerid);
- forward coptomou(playerid);
- forward PlayerCv(playerid);
- forward CarrosCv(carid);
- forward PlayerPcc(playerid);
- forward CarrosPcc(carid);
- forward PlayerAda(playerid);
- forward CarrosAda(carid);
- forward PlayerTcp(playerid);
- forward CarrosTcp(carid);
- forward PlayerCop(playerid);
- forward CarrosCop(carid);
- forward HoraServidor();
- forward MostrarPing(playerid);
- forward ChatLimpo(playerid, lines);
- forward MapaRandamonico();
- forward ModeRandamonico();
- forward NomeServidorRandamonico();
- forward AnuncioRandamonico();
- new NomesMapa[3][256] =
- {
- "Los Santos",
- "Bruno Tadeu",
- "Bruno Bernardo"
- };
- new NomesMode[3][256] =
- {
- "Guerra Total",
- "BB GT",
- "BT GT"
- };
- new NomeDoServidor[2][256] =
- {
- "~x~ |BR| Guerra Total ©ORIGINAL ~x~",
- "~x~ Click aqui e jogue conosco ~x~"
- };
- new Anuncios[5][256] =
- {
- "|AVISOS| --:> Vistem www.Projetos-BrunoTadeu.blogspot.com.",
- "|AVISOS| --:> GameMode em desenvolvimento fiquem atentos as atualizações.",
- "|AVISOS| --:> Não retire os creditos do GM.",
- "|AVISOS| --:> GameMode criado por Bruno Bernardo ou Bruno Tadeu.",
- "|AVISOS| --:> Respeite as regras de nosso servidor."
- };
- new CoresAnuncios[] =
- {
- COR_CV,
- COR_ADA,
- COR_PCC,
- COR_COP,
- COR_TCP,
- COR_MSG,
- COR_MSG2,
- COR_TR,
- COR_3D,
- COR_EQUIPAR
- };
- main()
- {
- print("\n");
- print("************************************");
- print("* *");
- print("* ---------------------- *");
- print("* Guerra Total War v2.0 *");
- print("* ---------------------- *");
- print("* By BrunoBernardo *");
- print("* *");
- print("************************************");
- print("\n");
- }
- public OnPlayerConnect(playerid)
- {
- GangZoneShowForPlayer(playerid, morroterritorio, COR_TR);
- GangZoneShowForPlayer(playerid, quadraterritorio, COR_TR);
- GangZoneShowForPlayer(playerid, parqueterritorio, COR_TR);
- GangZoneShowForPlayer(playerid, riachoterritorio, COR_TR);
- GangZoneShowForPlayer(playerid, industriaterritorio, COR_TR);
- GangZoneShowForPlayer(playerid, aeroportoterritorio, COR_TR);
- GangZoneShowForPlayer(playerid, casaraoterritorio, COR_TR);
- GangZoneShowForPlayer(playerid, estacaoterritorio, COR_TR);
- GangZoneShowForPlayer(playerid, favelaterritorio, COR_TR);
- GangZoneShowForPlayer(playerid, pistaterritorio, COR_TR);
- GangZoneShowForPlayer(playerid, estadioterritorio, COR_TR);
- GangZoneShowForPlayer(playerid, terrenoterritorio, COR_TR);
- GangZoneShowForPlayer(playerid, pierterritorio, COR_TR);
- GangZoneShowForPlayer(playerid, fazendinhaterritorio, COR_TR);
- GangZoneShowForPlayer(playerid, docasterritorio, COR_TR);
- GangZoneShowForPlayer(playerid, linhaterritorio, COR_TR);
- GangZoneShowForPlayer(playerid, mansaoterritorio, COR_TR);
- GangZoneShowForPlayer(playerid, ruralterritorio, COR_TR);
- ChatLimpo(playerid, 10);
- SendClientMessage(playerid, COR_TCP, "Seja Bem Vindo Ao Guerra Total.");
- SendClientMessage(playerid, COR_TCP, "Por Favor Respeite Nossas Regras e Divulgue Nosso IP.");
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString, sizeof(TextoString), SALVARCONTAS, playernome);
- if(!DOF2_FileExists(TextoString))
- {
- 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);
- ShowPlayerDialog(playerid,DIALOG_REGISTRO,DIALOG_STYLE_PASSWORD,"Fazedo Seu - Registro:",TextoString,"Registrar-se","Sair");
- }
- else
- {
- 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);
- ShowPlayerDialog(playerid,DIALOG_LOGAR,DIALOG_STYLE_PASSWORD,"Fazedo Seu - Login:",TextoString,"Logar-se","Sair");
- }
- format(TextoString, sizeof(TextoString), "%s Entrou no Servidor!", playernome);
- SendClientMessageToAll(COR_MSG, TextoString);
- return 1;
- }
- public OnPlayerDisconnect(playerid)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString, sizeof(TextoString), "%s Saiu do Servidor! ", playernome);
- SendClientMessageToAll(COR_CV, TextoString);
- SalvarPlayer(playerid);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- TextDrawShowForPlayer(playerid, Bruno0);
- TextDrawShowForPlayer(playerid, Bruno1);
- TextDrawShowForPlayer(playerid, Bruno2);
- TextDrawShowForPlayer(playerid, Bruno3);
- TextDrawShowForPlayer(playerid, relogio);
- format(TextoString, 15, "%d/50",PlayersConectados());
- TextDrawSetString(Logados, TextoString);
- TextDrawShowForPlayer(playerid, Logados);
- ChatLimpo(playerid, 10);
- SendClientMessage(playerid, COR_MSG, ".•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.");
- SendClientMessage(playerid, COR_MSG, ".•.•.•.•. {FFFFFF}[Creditos] - Bruno Bernardo ou Bruno Tadeu ");
- SendClientMessage(playerid, COR_MSG, ".•.•.•.•. {FFFFFF}[Blog] - www.Projetos-BrunoTadeu.blogspot.com.br ");
- SendClientMessage(playerid, COR_MSG, ".•.•.•.•. {FFFFFF}[OBS] - PorFavor não retire os creditos ");
- SendClientMessage(playerid, COR_MSG, ".•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.•.");
- GivePlayerMoney(playerid, 1000);
- if(gTeam[playerid] == CV)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerColor(playerid, COR_CV);
- SetPlayerPos(playerid, 620.2620,-1630.9288,16.6196);
- SetPlayerHealth(playerid, 50);
- }
- if(gTeam[playerid] == PCC)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerColor(playerid, COR_PCC);
- SetPlayerPos(playerid, 1000.9489,-1102.6538,23.8281);
- SetPlayerHealth(playerid, 50);
- }
- if(gTeam[playerid] == ADA)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerColor(playerid, COR_ADA);
- SetPlayerPos(playerid, 1675.9711,-2120.0515,13.5469);
- SetPlayerHealth(playerid, 50);
- }
- if(gTeam[playerid] == TCP)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerColor(playerid, COR_TCP);
- SetPlayerPos(playerid, 2586.1199,-2161.5107,-0.2188);
- SetPlayerHealth(playerid, 50);
- }
- if(gTeam[playerid] == COP)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerColor(playerid, COR_COP);
- SetPlayerPos(playerid, 1579.5371,-1635.9513,13.5602);
- SetPlayerHealth(playerid, 50);
- }
- return 1;
- }
- CMD:entrar(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- //HQ CV Entrada
- if(IsPlayerInRangeOfPoint(playerid, 3.0, ENTRADACV))
- {
- GameTextForPlayer(playerid, "~r~HQ CV",5000,1);
- SetPlayerInterior(playerid,6);
- SetPlayerPos(playerid, SAIDACV);
- }
- //HQ PCC Entrada
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, ENTRADAPCC))
- {
- GameTextForPlayer(playerid, "~g~HQ PCC",5000,1);
- SetPlayerInterior(playerid,10);
- SetPlayerPos(playerid, SAIDAPCC);
- }
- //HQ ADA Entrada
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, ENTRADAADA))
- {
- GameTextForPlayer(playerid, "~b~HQ ADA",5000,1);
- SetPlayerInterior(playerid,8);
- SetPlayerPos(playerid, SAIDAADA);
- }
- //HQ TCP Entrada
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, ENTRADATCP))
- {
- GameTextForPlayer(playerid, "~p~HQ TCP",5000,1);
- SetPlayerInterior(playerid,5);
- SetPlayerPos(playerid, SAIDATCP);
- }
- //HQ COP Entrada
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, ENTRADACOP))
- {
- GameTextForPlayer(playerid, "~p~Departamento COP",5000,1);
- SetPlayerInterior(playerid,3);
- SetPlayerPos(playerid, SAIDACOP);
- }
- }
- }
- CMD:sair(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- //HQ CV Saida
- if(IsPlayerInRangeOfPoint(playerid, 3.0, SAIDACV))
- {
- GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, ENTRADACV);
- }
- //HQ PCC Saida
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, SAIDAPCC))
- {
- GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, ENTRADAPCC);
- }
- //HQ ADA Saida
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, SAIDAADA))
- {
- GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, ENTRADAADA);
- }
- //HQ TCP Saida
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, SAIDATCP))
- {
- GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, ENTRADATCP);
- }
- //HQ COP Saida
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, SAIDACOP))
- {
- GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid, ENTRADACOP);
- }
- }
- }
- CMD:tomarterritorio(playerid, params[])
- {
- if(PlayerNoTerritorio(playerid,MORRO) || PlayerNoTerritorio(playerid,QUADRA) || PlayerNoTerritorio(playerid,PARQUE) || PlayerNoTerritorio(playerid,RIACHO) || PlayerNoTerritorio(playerid,INDUSTRIA) || PlayerNoTerritorio(playerid,AEROPORTO) ||
- PlayerNoTerritorio(playerid,CASARAO) || PlayerNoTerritorio(playerid,ESTACAO) || PlayerNoTerritorio(playerid,FAVELA) || PlayerNoTerritorio(playerid,PISTA) || PlayerNoTerritorio(playerid,ESTADIO) || PlayerNoTerritorio(playerid,TERRENO) ||
- PlayerNoTerritorio(playerid,PIER) || PlayerNoTerritorio(playerid,FAZENDINHA) || PlayerNoTerritorio(playerid,DOCAS) || PlayerNoTerritorio(playerid,LINHA) || PlayerNoTerritorio(playerid,MANSAO) || PlayerNoTerritorio(playerid,RURAL))
- {
- if(gTeam[playerid] == CV || gTeam[playerid] == PCC || gTeam[playerid] == ADA || gTeam[playerid] == TCP || gTeam[playerid] == COP)
- {
- SendClientMessage(playerid, COR_MSG,"Você deve ficar na área por 30 segundos, os cops e as outras facções já foram avisados! Cuidado!");
- SetTimerEx("tomandogz", 1000, 0,"e",playerid);
- return 1;
- }
- }
- return SendClientMessage(playerid, COR_MSG,"Você não está em um território");
- }
- CMD:suicidar(playerid, params[])
- {
- ShowPlayerDialog(playerid, DIALOG_SUICIDIO, DIALOG_STYLE_MSGBOX, "Suicidio","Você Acaba De Se Matar", "Fechar", "");
- SetPlayerHealth(playerid, 0);
- return 1;
- }
- CMD:creditos(playerid, params[])
- {
- ShowPlayerDialog(playerid, DIALOG_CREDITOS, DIALOG_STYLE_MSGBOX, "Creditos","GameMode Criador Por:\n\nBrunoBernardo (Bruno Tadeu)\n\nPor Favor Nao Retire Os Creditos", "Fechar", "");
- return 1;
- }
- CMD:ajuda(playerid, params[])
- {
- ShowPlayerDialog(playerid, DIALOG_AJUDA, DIALOG_STYLE_MSGBOX, "Ajuda","/creditos\n\n/rank\n\n/suicidar", "Fechar", "");
- return 1;
- }
- CMD:status(playerid, params[])
- {
- Status(playerid);
- GetPlayerName(playerid, playernome, sizeof (playernome));
- format(TextoString, sizeof(TextoString), "|| %s » Esta olhando seu status. {00BFFF}/status", playernome);
- SendClientMessageToAll(COR_MSG, TextoString);
- return 1;
- }
- CMD:disfarce(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, DISFARCECV) || IsPlayerInRangeOfPoint(playerid, 3.0, DISFARCEPCC) || IsPlayerInRangeOfPoint(playerid, 3.0, DISFARCEADA)
- || IsPlayerInRangeOfPoint(playerid, 3.0, DISFARCETCP) || IsPlayerInRangeOfPoint(playerid, 3.0, DISFARCECOPS))
- {
- 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");
- }
- return 1;
- }
- CMD:rank(playerid, params[])
- {
- new Ranks[500];
- format(Ranks, sizeof(Ranks), "%s\nO Comando Vermelho Matou %d Pessoas - Morreu %d Vezes. TOTAL: %d\n", Ranks, CvGanhando, CvPerdendo, CvAcumulado);
- format(Ranks, sizeof(Ranks), "%s\nO PCC Matou %d Pessoas - Morreu %d Vezes. TOTAL: %d\n", Ranks, PccGanhando, PccPerdendo, PccAcumulado);
- format(Ranks, sizeof(Ranks), "%s\nO ADA Matou %d Pessoas - Morreu %d Vezes. TOTAL: %d\n", Ranks, AdaGanhando, AdaPerdendo, AdaAcumulado);
- format(Ranks, sizeof(Ranks), "%s\nO TCP Matou %d Pessoas - Morreu %d Vezes. TOTAL: %d\n",Ranks, TcpGanhando, TcpPerdendo, TcpAcumulado);
- format(Ranks, sizeof(Ranks), "%s\nOs COP'S Matou %d Pessoas - Morreu %d Vezes. TOTAL: %d\n",Ranks,CopGanhando, CopPerdendo, CopAcumulado);
- ShowPlayerDialog(playerid, DIALOG_RANK, DIALOG_STYLE_MSGBOX, "Rank", Ranks, "Fechar", " ");
- return 1;
- }
- CMD:pegarmeusequipamentos(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, EQUIPCV) || IsPlayerInRangeOfPoint(playerid, 3.0, EQUIPPCC) || IsPlayerInRangeOfPoint(playerid, 3.0, EQUIPADA)
- || IsPlayerInRangeOfPoint(playerid, 3.0, EQUIPTCP) || IsPlayerInRangeOfPoint(playerid, 3.0, EQUIPCOPS))
- {
- ShowPlayerDialog(playerid, DIALOG_EQUIPAR, DIALOG_STYLE_LIST, "Equipamentos","Pegar Kit 1\nPegar Kit 2\nPegar Kit 3", "Selecionar", "Cancelar");
- }
- return 1;
- }
- CMD:efeitos(playerid, params[])
- {
- 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");
- return 1;
- }
- CMD:lojasorvete(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, SORVETE))
- {
- 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");
- }
- }
- CMD:lojahotdog(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, HOTDOG))
- {
- 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");
- }
- }
- CMD:lojahamburguer(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, HAMBURGUER))
- {
- 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");
- }
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_EQUIPAR)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 1, 100);
- GivePlayerWeapon(playerid, 24, 100);
- GivePlayerWeapon(playerid, 6, 100);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 50);
- GetPlayerName(playerid, playernome, sizeof (playernome));
- format(TextoString, sizeof(TextoString), "|| %s » Se equipou com o Kit 1.", playernome);
- SendClientMessageToAll(COR_EQUIPAR, TextoString);
- GameTextForPlayer(playerid,"~g~Equipado Com Sucesso", 5000, 1);
- }
- if(listitem == 1)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 1, 100);
- GivePlayerWeapon(playerid, 24, 100);
- GivePlayerWeapon(playerid, 6, 100);
- GivePlayerWeapon(playerid, 29, 100);
- GivePlayerWeapon(playerid, 25, 100);
- GivePlayerWeapon(playerid, 18, 10);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 80);
- GetPlayerName(playerid, playernome, sizeof (playernome));
- format(TextoString, sizeof(TextoString), "|| %s » Se equipou com o Kit 2.", playernome);
- SendClientMessageToAll(COR_EQUIPAR, TextoString);
- GameTextForPlayer(playerid,"~g~Equipado Com Sucesso", 5000, 1);
- }
- if(listitem == 2)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 1, 100);
- GivePlayerWeapon(playerid, 24, 100);
- GivePlayerWeapon(playerid, 6, 100);
- GivePlayerWeapon(playerid, 18, 10);
- GivePlayerWeapon(playerid, 29, 100);
- GivePlayerWeapon(playerid, 25, 100);
- GivePlayerWeapon(playerid, 30, 100);
- GivePlayerWeapon(playerid, 34, 100);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100);
- GetPlayerName(playerid, playernome, sizeof (playernome));
- format(TextoString, sizeof(TextoString), "|| %s » Se equipou com o Kit 3.", playernome);
- SendClientMessageToAll(COR_EQUIPAR, TextoString);
- GameTextForPlayer(playerid,"~g~Equipado Com Sucesso", 5000, 1);
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_EFEITOS)
- {
- if(response)
- {
- if(listitem == 0)
- {
- 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
- SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
- }
- if(listitem == 1)
- {
- 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
- SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
- }
- if(listitem == 2)
- {
- 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
- SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
- }
- if(listitem == 3)
- {
- 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
- SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
- }
- if(listitem == 4)
- {
- 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
- SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
- }
- if(listitem == 5)
- {
- 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
- SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
- }
- if(listitem == 6)
- {
- 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
- SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
- }
- if(listitem == 7)
- {
- SetPlayerAttachedObject(playerid,1,19065,15,-0.025,-0.04,0.23,0,0,270,2,2,2); // Toca de Natal
- SendClientMessage(playerid,COR_CV,"Efeito Ativado Com Sucesso!");
- }
- if(listitem == 8)
- {
- 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
- 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
- SendClientMessage(playerid,COR_CV,"Efeitos Ativados Com Sucesso!");
- }
- if(listitem == 9)
- {
- 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
- 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
- SendClientMessage(playerid,COR_CV,"Efeitos Ativados Com Sucesso!");
- }
- if(listitem == 10)
- {
- 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
- 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
- SendClientMessage(playerid,COR_CV,"Efeitos Ativados Com Sucesso!");
- }
- if(listitem == 11)
- {
- SetPlayerAttachedObject(playerid,1,19065,15,-0.025,-0.04,0.23,0,0,270,2,2,2); // Toca de Natal
- 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
- SendClientMessage(playerid,COR_CV,"Efeitos Ativados Com Sucesso!");
- }
- if(listitem == 12)
- {
- RemovePlayerAttachedObject(playerid,1); // Remoçao dos Efeitos
- RemovePlayerAttachedObject(playerid,2); // Remoçao dos Efeitos2
- SendClientMessage(playerid,COR_CV,"Efeito(s) Removido(s) Com Sucesso!");
- }
- }
- return 1;
- }
- if(dialogid == DIALOG_BARRACA1)
- {
- new Float:vida;
- GetPlayerName(playerid, playernome, sizeof(playernome));
- GetPlayerHealth(playerid, vida);
- if(!response) return 1;
- if (GetPlayerMoney(playerid) <= 0)
- {
- GameTextForPlayer(playerid, "~r~Você não possui dinheiro suficiente", 5000, 1);
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- format(TextoString, sizeof(TextoString), "|Lanches| %s está tomando um sorvete de palito.", playernome);
- SendClientMessageToAll(COR_EQUIPAR, TextoString);
- GivePlayerMoney(playerid, -10);
- SetPlayerHealth(playerid, vida + 20);
- }
- if(listitem == 1)
- {
- format(TextoString, sizeof(TextoString), "|Lanches| %s está tomando um sorvete de copinho.", playernome);
- SendClientMessageToAll(COR_EQUIPAR, TextoString);
- GivePlayerMoney(playerid, -15);
- SetPlayerHealth(playerid, vida + 50);
- }
- if(listitem == 2)
- {
- format(TextoString, sizeof(TextoString), "|Lanches| %s está tomando um sorvete de casquinha.", playernome);
- SendClientMessageToAll(COR_EQUIPAR, TextoString);
- GivePlayerMoney(playerid, -20);
- SetPlayerHealth(playerid, vida + 80);
- }
- if(listitem == 3)
- {
- format(TextoString, sizeof(TextoString), "|Lanches| %s está tomando um sorvete na taça.", playernome);
- SendClientMessageToAll(COR_EQUIPAR, TextoString);
- GivePlayerMoney(playerid, -8);
- SetPlayerHealth(playerid, vida + 35);
- }
- if(listitem == 4)
- {
- format(TextoString, sizeof(TextoString), "|Lanches| %s está bebendo uma água com gás.", playernome);
- SendClientMessageToAll(COR_EQUIPAR, TextoString);
- GivePlayerMoney(playerid, -5);
- SetPlayerHealth(playerid, vida + 25);
- ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
- }
- if(listitem == 5)
- {
- format(TextoString, sizeof(TextoString), "|Lanches| %s está bebendo um refrigerante.", playernome);
- SendClientMessageToAll(COR_EQUIPAR, TextoString);
- GivePlayerMoney(playerid, -5);
- SetPlayerHealth(playerid, vida + 10);
- ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,1,1,0,1);
- }
- return 1;
- }
- return 1;
- }
- if(dialogid == DIALOG_BARRACA2)
- {
- new Float:vida;
- GetPlayerName(playerid, playernome, sizeof(playernome));
- GetPlayerHealth(playerid, vida);
- if(!response) return 1;
- if (GetPlayerMoney(playerid) <= 0)
- {
- GameTextForPlayer(playerid, "~r~Você não possui dinheiro suficiente", 5000, 1);
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- format(TextoString, sizeof(TextoString), "|Lanches| %s está comendo um hotdog comum.", playernome);
- SendClientMessageToAll(COR_EQUIPAR, TextoString);
- GivePlayerMoney(playerid, -20);
- SetPlayerHealth(playerid, vida + 30);
- }
- if(listitem == 1)
- {
- format(TextoString, sizeof(TextoString), "|Lanches| %s está comendo um hotdog de 2 salsichas.", playernome);
- SendClientMessageToAll(COR_EQUIPAR, TextoString);
- GivePlayerMoney(playerid, -25);
- SetPlayerHealth(playerid, vida + 40);
- }
- if(listitem == 2)
- {
- format(TextoString, sizeof(TextoString), "|Lanches| %s está comendo um hotdog completo.", playernome);
- SendClientMessageToAll(COR_EQUIPAR, TextoString);
- GivePlayerMoney(playerid, -30);
- SetPlayerHealth(playerid, vida + 90);
- }
- if(listitem == 3)
- {
- format(TextoString, sizeof(TextoString), "|Lanches| %s está comendo uma promoção.", playernome);
- SendClientMessageToAll(COR_EQUIPAR, TextoString);
- GivePlayerMoney(playerid, -20);
- SetPlayerHealth(playerid, vida + 40);
- }
- return 1;
- }
- return 1;
- }
- if(dialogid == DIALOG_BARRACA3)
- {
- new Float:vida;
- GetPlayerName(playerid, playernome, sizeof(playernome));
- GetPlayerHealth(playerid, vida);
- if(!response) return 1;
- if (GetPlayerMoney(playerid) <= 0)
- {
- GameTextForPlayer(playerid, "~r~Você não possui dinheiro suficiente", 5000, 1);
- return 1;
- }
- if(response)
- {
- if(listitem == 0)
- {
- format(TextoString, sizeof(TextoString), "|Lanches| %s está comendo um hamburguer simples.", playernome);
- SendClientMessageToAll(COR_EQUIPAR, TextoString);
- GivePlayerMoney(playerid, -40);
- SetPlayerHealth(playerid, vida + 40);
- }
- if(listitem == 1)
- {
- format(TextoString, sizeof(TextoString), "|Lanches| %s está comendo um x bacon.", playernome);
- SendClientMessageToAll(COR_EQUIPAR, TextoString);
- GivePlayerMoney(playerid, -45);
- SetPlayerHealth(playerid, vida + 50);
- }
- if(listitem == 2)
- {
- format(TextoString, sizeof(TextoString), "|Lanches| %s está comendo um egg x salada.", playernome);
- SendClientMessageToAll(COR_EQUIPAR, TextoString);
- GivePlayerMoney(playerid, -50);
- SetPlayerHealth(playerid, vida + 60);
- }
- if(listitem == 3)
- {
- format(TextoString, sizeof(TextoString), "|Lanches| %s está comendo um x tudo.", playernome);
- SendClientMessageToAll(COR_EQUIPAR, TextoString);
- GivePlayerMoney(playerid, -60);
- SetPlayerHealth(playerid, vida + 80);
- }
- return 1;
- }
- return 1;
- }
- if(dialogid == DIALOG_DISFARCE)
- {
- if(response == 0)
- {
- return 1;
- }
- if(response >= 1)
- {
- if(listitem == 0)
- {
- SetPlayerColor(playerid,COR_CV);
- SetPlayerSkin(playerid, 6);
- GivePlayerWeapon(playerid, 24, 300);
- SendClientMessage(playerid,COR_MSG,"Você Colocou o seu Disfarce de CV!");
- return 1;
- }
- if(listitem == 1)
- {
- SetPlayerColor(playerid,COR_PCC);
- SetPlayerSkin(playerid, 21);
- GivePlayerWeapon(playerid, 24, 300);
- SendClientMessage(playerid,COR_MSG,"Você Colocou o seu Disfarce de PCC!");
- return 1;
- }
- if(listitem == 2)
- {
- SetPlayerColor(playerid,COR_ADA);
- SetPlayerSkin(playerid, 12);
- GivePlayerWeapon(playerid, 24, 300);
- SendClientMessage(playerid,COR_MSG,"Você Colocou o seu Disfarce de ADA!");
- return 1;
- }
- if(listitem == 3)
- {
- SetPlayerColor(playerid,COR_TCP);
- SetPlayerSkin(playerid, 14);
- GivePlayerWeapon(playerid, 24, 300);
- SendClientMessage(playerid,COR_MSG,"Você Colocou o seu Disfarce de TCP!");
- return 1;
- }
- if(listitem == 4)
- {
- SetPlayerColor(playerid,COR_COP);
- SetPlayerSkin(playerid, 47);
- GivePlayerWeapon(playerid, 24, 300);
- SendClientMessage(playerid,COR_MSG,"Você Colocou o seu Disfarce de COP'S!");
- return 1;
- }
- return 1;
- }
- }
- if(dialogid == DIALOG_REGISTRO)
- {
- if(response)
- {
- if(!strlen(inputtext))
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- 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);
- ShowPlayerDialog(playerid,DIALOG_REGISTRO,DIALOG_STYLE_PASSWORD,"Fazenu Seu - Registro:",TextoString,"Registrar-se","Sair");
- SendClientMessage(playerid,COR_CV,"Senha invalida, digite uma senha válida");
- return 1;
- }
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString, sizeof(TextoString), SALVARCONTAS, playernome);
- DOF2_CreateFile(TextoString);
- DOF2_SetString(TextoString,"Senha",inputtext);
- DOF2_SetInt(TextoString,"Dinheiro",0);
- DOF2_SetInt(TextoString,"Vida", 100);
- DOF2_SetInt(TextoString,"Colete", 100);
- DOF2_SetInt(TextoString,"Matou",0);
- DOF2_SetInt(TextoString,"Morreu",0);
- DOF2_SetInt(TextoString,"Logou",0);
- 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);
- ShowPlayerDialog(playerid,DIALOG_LOGAR,DIALOG_STYLE_PASSWORD,"Fazedo Seu - Login:",TextoString,"Logar-se","Sair");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_MSG, "Você Foi Kickado Porque Não Quis Se Registrar!!");
- Kick(playerid);
- return 1;
- }
- }
- if(dialogid == DIALOG_LOGAR)
- {
- if(response)
- {
- if(!strlen(inputtext))
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- 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);
- ShowPlayerDialog(playerid,DIALOG_LOGAR,DIALOG_STYLE_PASSWORD,"Fazedo Seu - Login:",TextoString,"Logar-se","Sair");
- SendClientMessage(playerid,COR_CV,"Senha Incorreta !");
- return 1;
- }
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString, sizeof(TextoString), SALVARCONTAS, playernome);
- if(!strcmp(inputtext,DOF2_GetString(TextoString,"Senha"),false))
- {
- SetarPlayer(playerid);
- Logou[playerid]++;
- ChatLimpo(playerid, 10);
- SendClientMessage(playerid,COR_MSG2,"Logado Com Sucesso,Agora Escolha Uma Org.");
- return 1;
- }
- else
- {
- SendClientMessage(playerid,COR_CV,"Senha incorreta digite-a novamente");
- 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);
- ShowPlayerDialog(playerid,DIALOG_LOGAR,DIALOG_STYLE_PASSWORD,"Fazedo Seu - Login:",TextoString,"Logar-se","Sair");
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COR_MSG, "Você não quis se logar, por este motivo será Kickado");
- Kick(playerid);
- return 1;
- }
- }
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- TextDrawHideForPlayer(playerid, relogio);
- if(IsPlayerConnected(killerid))
- {
- Matou[killerid]++;
- }
- Morreu[playerid]++;
- if(playerid != INVALID_PLAYER_ID) SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
- if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
- SendDeathMessage(killerid, playerid, reason);
- if(gTeam[playerid] == CV)
- {
- CvAcumulado[playerid] --;
- CvPerdendo[playerid] ++;
- GetPlayerName(playerid, playernome, sizeof (playernome));
- format(Resultado, sizeof(Resultado), "%s Morreu é Perdeu 1 Ponto Para os Comando Vermelho.", playernome);
- SendClientMessageToAll(COR_CV, Resultado);
- }
- if(gTeam[killerid] == CV)
- {
- CvAcumulado[playerid] ++;
- CvGanhando[playerid] ++;
- GetPlayerName(killerid, playernome, MAX_PLAYER_NAME);
- format(Resultado, sizeof(Resultado), "%s Matou é Ganhou 1 Ponto Para os Comando Vermelho.", playernome);
- SendClientMessageToAll(COR_CV, Resultado);
- }
- if(gTeam[playerid] == PCC)
- {
- PccAcumulado[playerid] --;
- PccPerdendo[playerid] ++;
- GetPlayerName(playerid, playernome, sizeof (playernome));
- format(Resultado, sizeof(Resultado), "%s Morreu é Perdeu 1 Ponto Para os PCC.", playernome);
- SendClientMessageToAll(COR_PCC, Resultado);
- }
- if(gTeam[killerid] == PCC)
- {
- PccAcumulado[playerid] ++;
- PccGanhando[playerid] ++;
- GetPlayerName(killerid, playernome, MAX_PLAYER_NAME);
- format(Resultado, sizeof(Resultado), "%s Matou é Ganhou 1 Ponto Para os PCC.", playernome);
- SendClientMessageToAll(COR_PCC, Resultado);
- }
- if(gTeam[playerid] == ADA)
- {
- AdaAcumulado[playerid] --;
- AdaPerdendo[playerid] ++;
- GetPlayerName(playerid, playernome, sizeof (playernome));
- format(Resultado, sizeof(Resultado), "%s Morreu é Perdeu 1 Ponto Para os ADA.", playernome);
- SendClientMessageToAll(COR_ADA, Resultado);
- }
- if(gTeam[killerid] == ADA)
- {
- AdaAcumulado[playerid] ++;
- AdaGanhando[playerid] ++;
- GetPlayerName(killerid, playernome, MAX_PLAYER_NAME);
- format(Resultado, sizeof(Resultado), "%s Matou é Ganhou 1 Ponto Para os ADA.", playernome);
- SendClientMessageToAll(COR_ADA, Resultado);
- }
- if(gTeam[playerid] == TCP)
- {
- TcpAcumulado[playerid] --;
- TcpPerdendo[playerid] ++;
- GetPlayerName(playerid, playernome, sizeof (playernome));
- format(Resultado, sizeof(Resultado), "%s Morreu é Perdeu 1 Ponto Para os TCP.", playernome);
- SendClientMessageToAll(COR_TCP, Resultado);
- }
- if(gTeam[killerid] == TCP)
- {
- TcpAcumulado[playerid] ++;
- TcpGanhando[playerid] ++;
- GetPlayerName(killerid, playernome, MAX_PLAYER_NAME);
- format(Resultado, sizeof(Resultado), "%s Matou é Ganhou 1 Ponto Para os TCP.", playernome);
- SendClientMessageToAll(COR_TCP, Resultado);
- }
- if(gTeam[playerid] == COP)
- {
- CopAcumulado[playerid] --;
- CopPerdendo[playerid] ++;
- GetPlayerName(playerid, playernome, sizeof (playernome));
- format(Resultado, sizeof(Resultado), "%s Morreu é Perdeu 1 Ponto Para os COP'S.", playernome);
- SendClientMessageToAll(COR_COP, Resultado);
- }
- if(gTeam[killerid] == COP)
- {
- CopAcumulado[playerid] ++;
- CopGanhando[playerid] ++;
- GetPlayerName(killerid, playernome, MAX_PLAYER_NAME);
- format(Resultado, sizeof(Resultado), "%s Matou é Ganhou 1 Ponto Para os COP'S.", playernome);
- SendClientMessageToAll(COR_COP, Resultado);
- }
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- if((classid >= 0) && (classid <= 2))
- {
- gTeam[playerid] = CV;
- SendClientMessage(playerid, COR_CV, "==> Essa é uma skin do Comando Vermelho. <==");
- SetPlayerColor(playerid,COR_CV);
- }
- if((classid >= 3) && (classid <= 5))
- {
- gTeam[playerid] = PCC;
- SendClientMessage(playerid, COR_PCC, "==> Essa é uma skin do PCC. <==");
- SetPlayerColor(playerid,COR_PCC);
- }
- if((classid >= 6) && (classid <= 8))
- {
- gTeam[playerid] = ADA;
- SendClientMessage(playerid, COR_ADA, "==> Essa é uma skin do ADA. <==");
- SetPlayerColor(playerid,COR_ADA);
- }
- if((classid >= 9) && (classid <= 11))
- {
- gTeam[playerid] = TCP;
- SendClientMessage(playerid, COR_TCP, "==> Essa é uma skin do TCP. <==");
- SetPlayerColor(playerid,COR_TCP);
- }
- if((classid >= 12) && (classid <= 15))
- {
- gTeam[playerid] = COP;
- SendClientMessage(playerid, COR_COP, "==> Essa é uma skin dos Cop's. <==");
- SetPlayerColor(playerid,COR_COP);
- }
- SetPlayerInterior(playerid,14);
- SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
- SetPlayerFacingAngle(playerid, 270.0);
- SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
- SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
- return 1;
- }
- public OnGameModeInit()
- {
- SetTimer("HoraServidor",1000,true);
- SetTimer("MostrarPing", 200, 1);
- SetTimer("MapaRandamonico",2000,1);
- SetTimer("ModeRandamonico",2000,1);
- SetTimer("NomeServidorRandamonico",2000,1);
- SetTimer("AnuncioRandamonico",300000,1);
- UsePlayerPedAnims();
- DisableInteriorEnterExits();
- morroterritorio = GangZoneCreate(MORRO);
- quadraterritorio = GangZoneCreate(QUADRA);
- parqueterritorio = GangZoneCreate(PARQUE);
- riachoterritorio = GangZoneCreate(RIACHO);
- industriaterritorio = GangZoneCreate(INDUSTRIA);
- aeroportoterritorio = GangZoneCreate(AEROPORTO);
- casaraoterritorio = GangZoneCreate(CASARAO);
- estacaoterritorio = GangZoneCreate(ESTACAO);
- favelaterritorio = GangZoneCreate(FAVELA);
- pistaterritorio = GangZoneCreate(PISTA);
- estadioterritorio = GangZoneCreate(ESTADIO);
- terrenoterritorio = GangZoneCreate(TERRENO);
- pierterritorio = GangZoneCreate(PIER);
- fazendinhaterritorio = GangZoneCreate(FAZENDINHA);
- docasterritorio = GangZoneCreate(DOCAS);
- linhaterritorio = GangZoneCreate(LINHA);
- mansaoterritorio = GangZoneCreate(MANSAO);
- ruralterritorio = GangZoneCreate(RURAL);
- //Equipar
- AddStaticPickup(362, 23, EQUIPCV);
- AddStaticPickup(362, 23, EQUIPPCC);
- AddStaticPickup(362, 23, EQUIPADA);
- AddStaticPickup(362, 23, EQUIPTCP);
- AddStaticPickup(362, 23, EQUIPCOPS);
- //Disfarçes
- AddStaticPickup(1314, 23, DISFARCECV);
- AddStaticPickup(1314, 23, DISFARCEPCC);
- AddStaticPickup(1314, 23, DISFARCEADA);
- AddStaticPickup(1314, 23, DISFARCETCP);
- AddStaticPickup(1314, 23, DISFARCECOPS);
- //Lanches
- AddStaticPickup(1240, 23, SORVETE);
- AddStaticPickup(1240, 23, HOTDOG);
- AddStaticPickup(1240, 23, HAMBURGUER);
- //Entradas e Saidas
- AddStaticPickup(19133, 23, ENTRADACV);
- AddStaticPickup(19133, 23, SAIDACV);
- AddStaticPickup(19133, 23, ENTRADAPCC);
- AddStaticPickup(19133, 23, SAIDAPCC);
- AddStaticPickup(19133, 23, ENTRADAADA);
- AddStaticPickup(19133, 23, SAIDAADA);
- AddStaticPickup(19133, 23, ENTRADATCP);
- AddStaticPickup(19133, 23, SAIDATCP);
- AddStaticPickup(19133, 23, ENTRADACOP);
- AddStaticPickup(19133, 23, SAIDACOP);
- //Textos 3D Entradas e Saidas
- Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,ENTRADACV,10.0,0);
- Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,SAIDACV,10.0,0);
- Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,ENTRADAPCC,10.0,0);
- Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,SAIDAPCC,10.0,0);
- Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,ENTRADAADA,10.0,0);
- Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,SAIDAADA,10.0,0);
- Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,ENTRADATCP,10.0,0);
- Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,SAIDATCP,10.0,0);
- Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,ENTRADACOP,10.0,0);
- Create3DTextLabel("Para Entrar\nAperte 'F'",COR_3D,SAIDACOP,10.0,0);
- //Textos 3D
- Create3DTextLabel("Para Poder Se Equipar\nAperte 'ALT'",COR_3D,EQUIPCV,10.0,0);
- Create3DTextLabel("Para Poder Se Equipar\nAperte 'ALT'",COR_3D,EQUIPPCC,10.0,0);
- Create3DTextLabel("Para Poder Se Equipar\nAperte 'ALT'",COR_3D,EQUIPADA,10.0,0);
- Create3DTextLabel("Para Poder Se Equipar\nAperte 'ALT'",COR_3D,EQUIPTCP,10.0,0);
- Create3DTextLabel("Para Poder Se Equipar\nAperte 'ALT'",COR_3D,EQUIPCOPS,10.0,0);
- //Disfarçe 3D
- Create3DTextLabel("Para Poder Se Disfarcar\nAperte 'F'",COR_3D,DISFARCECV,10.0,0);
- Create3DTextLabel("Para Poder Se Disfarcar\nAperte 'F'",COR_3D,DISFARCEPCC,10.0,0);
- Create3DTextLabel("Para Poder Se Disfarcar\nAperte 'F'",COR_3D,DISFARCEADA,10.0,0);
- Create3DTextLabel("Para Poder Se Disfarcar\nAperte 'F'",COR_3D,DISFARCETCP,10.0,0);
- Create3DTextLabel("Para Poder Se Disfarcar\nAperte 'F'",COR_3D,DISFARCECOPS,10.0,0);
- //Lanchinhos
- Create3DTextLabel("Sorveteria{FF0000}\nAperte 'F' Para Comprar",COR_LOJA,SORVETE,20,0);
- Create3DTextLabel("HotDog{FF0000}\nAperte 'F' Para Comprar",COR_LOJA,HOTDOG,20,0);
- Create3DTextLabel("Hamburguer{FF0000}\nAperte 'F' Para Comprar",COR_LOJA,HAMBURGUER,20,0);
- //Objetos do TCP
- CreateDynamicObject(11088, 2577.1000976563, -2174.5, 5, 0, 0, 0);
- CreateDynamicObject(3415, 2611.8999023438, -2149.1000976563, -1.2000000476837, 0, 0, 270);
- CreateDynamicObject(16151, 2612.8999023438, -2148.3999023438, -0.89999997615814, 0, 0, 0);
- CreateDynamicObject(1481, 2609.6999511719, -2145.3000488281, -0.60000002384186, 0, 0, 266);
- CreateDynamicObject(3092, 2614, -2143.8999023438, -0.40000000596046, 0, 0, 0);
- CreateDynamicObject(2907, 2609.5, -2145.3000488281, -0.40000000596046, 0, 0, 0);
- CreateDynamicObject(3749, 2581.8000488281, -2111.3000488281, 6.1999998092651, 0, 0, 0);
- //Morro
- CreateDynamicObject(3593, 2186.3828125, -1008.8056640625, 62.360637664795, 0, 0, 54);
- CreateDynamicObject(3593, 2148.4406738281, -1006.7709960938, 61.818813323975, 356, 0, 27.996948242188);
- CreateDynamicObject(3594, 2163.490234375, -1023.19921875, 62.064167022705, 0, 0, 23.998046875);
- CreateDynamicObject(1358, 2173.9704589844, -1014.0213623047, 63.167877197266, 0, 0, 348);
- CreateDynamicObject(1415, 2168.3513183594, -995.83642578125, 61.964977264404, 0, 0, 348);
- CreateDynamicObject(1439, 2154.0830078125, -1019.3138427734, 61.838348388672, 0, 0, 90);
- CreateDynamicObject(2908, 2153.5290527344, -1016.1793823242, 64.109428405762, 272, 90, 304.00015258789);
- CreateDynamicObject(3092, 2153.9538574219, -1019.4876098633, 62.625789642334, 39.970703125, 357.38995361328, 1.6773681640625);
- CreateDynamicObject(3092, 2161.767578125, -987.34582519531, 69.995552062988, 0, 0, 0);
- CreateDynamicObject(3092, 2163.064453125, -987.5537109375, 69.98851776123, 0, 0, 0);
- CreateDynamicObject(3092, 2164.2004394531, -987.72448730469, 69.98851776123, 0, 0, 0);
- CreateDynamicObject(2680, 2164.2470703125, -987.69384765625, 70.777870178223, 0, 171.99993896484, 14);
- CreateDynamicObject(2680, 2163.1069335938, -987.5419921875, 70.778854370117, 0, 171.99645996094, 13.99658203125);
- CreateDynamicObject(2680, 2161.8159179688, -987.27447509766, 70.819076538086, 0, 171.99645996094, 13.99658203125);
- CreateDynamicObject(2907, 2154.2768554688, -1016.1821899414, 62.032733917236, 0, 0, 0);
- CreateDynamicObject(2905, 2153.1530761719, -1015.8941040039, 64.12345123291, 0, 0, 0);
- CreateDynamicObject(3092, 2143.3420410156, -1006.5328369141, 65.143203735352, 0, 0, 0);
- //Carros do CV
- AddStaticVehicle(560,615.3710,-1663.5734,15.8311,356.0172,3,3);
- AddStaticVehicle(567,610.0211,-1662.1558,16.0295,352.6576,3,3);
- AddStaticVehicle(540,600.1979,-1649.1570,15.9875,178.0723,3,3);
- AddStaticVehicle(482,597.0199,-1648.8760,16.4113,179.1167,3,3);
- AddStaticVehicle(559,593.9562,-1648.4827,16.0943,177.1563,3,3);
- AddStaticVehicle(480,590.8290,-1648.6510,16.3668,179.0004,3,3);
- AddStaticVehicle(581,605.8874,-1644.9723,15.8030,263.6746,3,3);
- AddStaticVehicle(581,605.9209,-1642.5664,15.8124,268.1934,3,3);
- //Carros do PCC
- AddStaticVehicle(482,997.7329,-1083.6929,23.9408,178.7374,65,65);
- AddStaticVehicle(540,1004.2126,-1083.8423,23.6880,179.5199,65,65);
- AddStaticVehicle(567,1011.6722,-1084.1124,23.7030,178.6420,65,65);
- AddStaticVehicle(560,1019.6397,-1083.3044,23.5331,180.0148,65,65);
- AddStaticVehicle(536,1027.7009,-1084.2449,23.5695,180.3610,65,65);
- AddStaticVehicle(559,1035.8451,-1083.2405,23.4847,179.9980,65,65);
- AddStaticVehicle(581,1020.4986,-1100.6868,23.4310,358.0450,65,65);
- AddStaticVehicle(581,1013.3655,-1100.8018,23.4311,354.2870,65,65);
- //Carros do ADA
- AddStaticVehicle(567,1671.6716,-2115.4041,13.4465,269.8614,79,79);
- AddStaticVehicle(567,1671.6893,-2110.9226,13.4478,269.7269,79,79);
- AddStaticVehicle(467,1662.5364,-2110.9927,13.2995,268.5868,79,79);
- AddStaticVehicle(566,1662.6038,-2115.3853,13.3628,270.6646,79,79);
- AddStaticVehicle(560,1681.2476,-2105.1899,13.2448,222.2709,79,79);
- AddStaticVehicle(492,1698.8510,-2099.3782,13.3297,179.4559,79,79);
- AddStaticVehicle(581,1680.3423,-2124.0725,13.1089,353.6133,79,79);
- AddStaticVehicle(581,1677.8013,-2122.7952,13.1086,323.6392,79,79);
- //Carros do TCP
- AddStaticVehicle(411,2610.6038,-2167.5161,-0.4917,2.1572,122,122);
- AddStaticVehicle(562,2579.2471,-2158.5156,-0.5605,358.9192,122,122);
- AddStaticVehicle(587,2576.0022,-2158.0339,-0.4919,358.8707,122,122);
- AddStaticVehicle(587,2572.6741,-2158.0842,-0.4918,357.5177,122,122);
- AddStaticVehicle(587,2569.2446,-2158.0847,-0.4918,357.6205,122,122);
- AddStaticVehicle(562,2565.3379,-2140.0593,-0.5355,1.1997,122,122);
- AddStaticVehicle(560,2561.9697,-2139.9971,-0.4865,355.6928,122,122);
- AddStaticVehicle(411,2557.8977,-2139.8088,-0.4565,0.2680,122,122);
- AddStaticVehicle(581,2612.5742,-2139.0479,-0.6246,87.3535,122,122);
- AddStaticVehicle(581,2612.5293,-2136.8337,-0.5065,86.7555,122,122);
- //Carros dos COP'S
- AddStaticVehicle(596,1553.7657,-1606.6428,13.1072,179.0926,0,1);
- AddStaticVehicle(596,1557.1361,-1606.7213,13.1076,178.8526,0,1);
- AddStaticVehicle(596,1560.5063,-1606.7974,13.1137,177.8805,0,1);
- AddStaticVehicle(596,1563.8715,-1606.6951,13.1072,179.4323,0,1);
- AddStaticVehicle(596,1567.3546,-1606.7358,13.1072,180.2486,0,1);
- AddStaticVehicle(596,1570.8767,-1606.6312,13.1072,178.9958,0,1);
- AddStaticVehicle(596,1574.6099,-1606.7150,13.1072,177.9039,0,1);
- AddStaticVehicle(596,1577.8933,-1606.8130,13.1072,177.2971,0,1);
- AddStaticVehicle(523,1572.7950,-1634.5011,13.1077,356.2514,0,1);
- AddStaticVehicle(523,1571.2872,-1634.4938,13.1182,0.0774,0,1);
- AddStaticVehicle(523,1569.8416,-1634.4673,13.1157,1.0940,0,1);
- AddStaticVehicle(523,1568.2703,-1634.5316,13.1168,1.3677,0,1);
- AddStaticVehicle(523,1566.7722,-1634.5745,13.1182,1.6249,0,1);
- AddStaticVehicle(523,1565.1265,-1634.6410,13.1147,0.3075,0,1);
- //Skin's do Comando Vermelho
- AddPlayerClass(6,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(13,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(19,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(21,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- //Skin's do PCC
- AddPlayerClass(22,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(24,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(12,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(28,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- //Skin's do ADA
- AddPlayerClass(29,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(30,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(13,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(42,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- //Skin's do TCP
- AddPlayerClass(46,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(47,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(40,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(66,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- //Skin's dos COP'S
- AddPlayerClass(281,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(282,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(283,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- AddPlayerClass(283,1784.6327,-1749.9993,13.5487,270.1425,0,0,0,0,-1,-1);
- //TextDraws
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- ping[i] = TextDrawCreate(340.0000, 400.0000, "Ping:150");
- TextDrawBackgroundColor(ping[i], 255);
- TextDrawFont(ping[i], 1);
- TextDrawLetterSize(ping[i], 0.209999, 1.000000);
- TextDrawColor(ping[i], -1);
- TextDrawSetOutline(ping[i], 0);
- TextDrawSetProportional(ping[i], 11);
- TextDrawSetShadow(ping[i], 1);
- }
- Bruno0 = TextDrawCreate(253.0000, 368.0000, " ");
- TextDrawBackgroundColor(Bruno0, 255);
- TextDrawFont(Bruno0, 1);
- TextDrawLetterSize(Bruno0, 0.559998, 2.599998);
- TextDrawColor(Bruno0, -7601921);
- TextDrawSetOutline(Bruno0, 1);
- TextDrawSetProportional(Bruno0, 10);
- Bruno1 = TextDrawCreate(253.0000, 368.0000, "~g~Bruno~y~Bernardo~b~GT");
- TextDrawBackgroundColor(Bruno1, 255);
- TextDrawFont(Bruno1, 1);
- TextDrawLetterSize(Bruno1, 0.559998, 2.599998);
- TextDrawColor(Bruno1, -7601921);
- TextDrawSetOutline(Bruno1, 1);
- TextDrawSetProportional(Bruno1, 10);
- Bruno2 = TextDrawCreate(262.0000, 387.0000, " www.projetos-brunotadeu.blogspot.com");
- TextDrawBackgroundColor(Bruno2, 255);
- TextDrawFont(Bruno2, 1);
- TextDrawLetterSize(Bruno2, 0.209999, 1.100000);
- TextDrawColor(Bruno2, -1);
- TextDrawSetOutline(Bruno2, 1);
- TextDrawSetProportional(Bruno2, 8);
- relogio = TextDrawCreate(290.0000, 400.0000,"00:00");
- TextDrawBackgroundColor(relogio, 255);
- TextDrawFont(relogio, 1);
- TextDrawLetterSize(relogio, 0.209999, 1.000000);
- TextDrawColor(relogio, -1);
- TextDrawSetOutline(relogio, 0);
- TextDrawSetProportional(relogio, 11);
- TextDrawSetShadow(relogio, 1);
- Logados = TextDrawCreate(315.0000, 410.0000, "_");
- TextDrawBackgroundColor(Logados, 255);
- TextDrawFont(Logados, 1);
- TextDrawLetterSize(Logados, 0.209999, 1.000000);
- TextDrawColor(Logados, -1);
- TextDrawSetOutline(Logados, 0);
- TextDrawSetProportional(Logados, 11);
- TextDrawSetShadow(Logados, 1);
- return 1;
- }
- public OnGameModeExit()
- {
- DOF2_Exit();
- TextDrawHideForAll(Bruno0);
- TextDrawDestroy(Bruno0);
- TextDrawHideForAll(Bruno1);
- TextDrawDestroy(Bruno1);
- TextDrawHideForAll(Bruno2);
- TextDrawDestroy(Bruno2);
- TextDrawHideForAll(Bruno3);
- TextDrawDestroy(Bruno3);
- TextDrawHideForAll(Logados);
- TextDrawDestroy(Logados);
- print("\n");
- print("************************************");
- print("* *");
- print("* ---------------------- *");
- print("* Servidor Desligado *");
- print("* ---------------------- *");
- print("* By BrunoBernardo *");
- print("* *");
- print("************************************");
- print("\n");
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- cmd_entrar(playerid, #);
- cmd_sair(playerid, #);
- cmd_disfarce(playerid, #);
- }
- if(newkeys == KEY_WALK)
- {
- cmd_pegarmeusequipamentos(playerid, #);
- }
- if((newkeys == 2) && (IsPlayerInAnyVehicle(playerid)))
- {
- cmd_tomarterritorio(playerid, #);
- }
- if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- cmd_lojasorvete(playerid, #);
- cmd_lojahotdog(playerid, #);
- cmd_lojahamburguer(playerid, #);
- }
- return 1;
- }
- public tomandogz(playerid)
- {
- if(PlayerNoTerritorio(playerid,MORRO))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Morro da ORG %s!",playernome, morrodono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(morrodono,120,"Comando Vermelho");
- GangZoneFlashForAll(morroterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Morro da ORG %s!",playernome, morrodono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(morrodono,120,"PCC");
- GangZoneFlashForAll(morroterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Morro da ORG %s!",playernome, morrodono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(morrodono,120,"ADA");
- GangZoneFlashForAll(morroterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Morro da ORG %s!",playernome, morrodono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(morrodono,120,"TCP");
- GangZoneFlashForAll(morroterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Morro da ORG %s!",playernome, morrodono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(morrodono,120,"COP");
- GangZoneFlashForAll(morroterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- else if(PlayerNoTerritorio(playerid,QUADRA))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Quadra da ORG %s!",playernome, quadradono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(quadradono,120,"Comando Vermelho");
- GangZoneFlashForAll(quadraterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Quadra da ORG %s!",playernome, quadradono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(quadradono,120,"PCC");
- GangZoneFlashForAll(quadraterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Quadra da ORG %s!",playernome, quadradono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(quadradono,120,"ADA");
- GangZoneFlashForAll(quadraterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Quadra da ORG %s!",playernome, quadradono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(quadradono,120,"TCP");
- GangZoneFlashForAll(quadraterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Quadra da ORG %s!",playernome, quadradono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(quadradono,120,"COP");
- GangZoneFlashForAll(quadraterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- else if(PlayerNoTerritorio(playerid,PARQUE))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Parque da ORG %s!",playernome, parquedono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(parquedono,120,"Comando Vermelho");
- GangZoneFlashForAll(parqueterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Parque da ORG %s!",playernome, parquedono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(parquedono,120,"PCC");
- GangZoneFlashForAll(parqueterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Parque da ORG %s!",playernome, parquedono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(parquedono,120,"ADA");
- GangZoneFlashForAll(parqueterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Parque da ORG %s!",playernome, parquedono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(parquedono,120,"TCP");
- GangZoneFlashForAll(parqueterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Parque da ORG %s!",playernome, parquedono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(parquedono,120,"COP");
- GangZoneFlashForAll(parqueterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- else if(PlayerNoTerritorio(playerid,RIACHO))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Riacho da ORG %s!",playernome, riachodono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(riachodono,120,"Comando Vermelho");
- GangZoneFlashForAll(riachoterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Riacho da ORG %s!",playernome, riachodono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(riachodono,120,"PCC");
- GangZoneFlashForAll(riachoterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Riacho da ORG %s!",playernome, riachodono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(riachodono,120,"ADA");
- GangZoneFlashForAll(riachoterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Riacho da ORG %s!",playernome, riachodono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(riachodono,120,"TCP");
- GangZoneFlashForAll(riachoterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Riacho da ORG %s!",playernome, riachodono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(riachodono,120,"COP");
- GangZoneFlashForAll(riachoterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- else if(PlayerNoTerritorio(playerid,INDUSTRIA))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Industria da ORG %s!",playernome, industriadono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(industriadono,120,"Comando Vermelho");
- GangZoneFlashForAll(industriaterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Industria da ORG %s!",playernome, industriadono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(industriadono,120,"PCC");
- GangZoneFlashForAll(industriaterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Industria da ORG %s!",playernome, industriadono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(industriadono,120,"ADA");
- GangZoneFlashForAll(industriaterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Industria da ORG %s!",playernome, industriadono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(industriadono,120,"TCP");
- GangZoneFlashForAll(industriaterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Industria da ORG %s!",playernome, industriadono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(industriadono,120,"COP");
- GangZoneFlashForAll(industriaterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- else if(PlayerNoTerritorio(playerid,AEROPORTO))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Aeroporto da ORG %s!",playernome, aeroportodono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(aeroportodono,120,"Comando Vermelho");
- GangZoneFlashForAll(aeroportoterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Aeroporto da ORG %s!",playernome, aeroportodono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(aeroportodono,120,"PCC");
- GangZoneFlashForAll(aeroportoterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Aeroporto da ORG %s!",playernome, aeroportodono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(aeroportodono,120,"ADA");
- GangZoneFlashForAll(aeroportoterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Aeroporto da ORG %s!",playernome, aeroportodono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(aeroportodono,120,"TCP");
- GangZoneFlashForAll(aeroportoterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Aeroporto da ORG %s!",playernome, aeroportodono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(aeroportodono,120,"COP");
- GangZoneFlashForAll(aeroportoterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- else if(PlayerNoTerritorio(playerid,CASARAO))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Casarao da ORG %s!",playernome, casaraodono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(casaraodono,120,"Comando Vermelho");
- GangZoneFlashForAll(casaraoterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Casarao da ORG %s!",playernome, casaraodono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(casaraodono,120,"PCC");
- GangZoneFlashForAll(casaraoterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Casarao da ORG %s!",playernome, casaraodono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(casaraodono,120,"ADA");
- GangZoneFlashForAll(casaraoterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Casarao da ORG %s!",playernome, casaraodono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(casaraodono,120,"TCP");
- GangZoneFlashForAll(casaraoterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Casarao da ORG %s!",playernome, casaraodono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(casaraodono,120,"COP");
- GangZoneFlashForAll(casaraoterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- else if(PlayerNoTerritorio(playerid,ESTACAO))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Estacao da ORG %s!",playernome, estacaodono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(estacaodono,120,"Comando Vermelho");
- GangZoneFlashForAll(estacaoterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Estacao da ORG %s!",playernome, estacaodono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(estacaodono,120,"PCC");
- GangZoneFlashForAll(estacaoterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Estacao da ORG %s!",playernome, estacaodono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(estacaodono,120,"ADA");
- GangZoneFlashForAll(estacaoterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Estacao da ORG %s!",playernome, estacaodono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(estacaodono,120,"TCP");
- GangZoneFlashForAll(estacaoterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Estacao da ORG %s!",playernome, estacaodono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(estacaodono,120,"COP");
- GangZoneFlashForAll(estacaoterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- else if(PlayerNoTerritorio(playerid,FAVELA))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Favela da ORG %s!",playernome, faveladono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(faveladono,120,"Comando Vermelho");
- GangZoneFlashForAll(favelaterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Favela da ORG %s!",playernome, faveladono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(faveladono,120,"PCC");
- GangZoneFlashForAll(favelaterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Favela da ORG %s!",playernome, faveladono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(faveladono,120,"ADA");
- GangZoneFlashForAll(favelaterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Favela da ORG %s!",playernome, faveladono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(faveladono,120,"TCP");
- GangZoneFlashForAll(favelaterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Favela da ORG %s!",playernome, faveladono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(faveladono,120,"COP");
- GangZoneFlashForAll(favelaterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- else if(PlayerNoTerritorio(playerid,PISTA))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Pista da ORG %s!",playernome, pistadono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(pistadono,120,"Comando Vermelho");
- GangZoneFlashForAll(pistaterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Pista da ORG %s!",playernome, pistadono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(pistadono,120,"PCC");
- GangZoneFlashForAll(pistaterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Pista da ORG %s!",playernome, pistadono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(pistadono,120,"ADA");
- GangZoneFlashForAll(pistaterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Pista da ORG %s!",playernome, pistadono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(pistadono,120,"TCP");
- GangZoneFlashForAll(pistaterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Pista da ORG %s!",playernome, pistadono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(pistadono,120,"COP");
- GangZoneFlashForAll(pistaterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- else if(PlayerNoTerritorio(playerid,ESTADIO))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Estadio da ORG %s!",playernome, estadiodono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(estadiodono,120,"Comando Vermelho");
- GangZoneFlashForAll(estadioterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Estadio da ORG %s!",playernome, estadiodono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(estadiodono,120,"PCC");
- GangZoneFlashForAll(estadioterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Estadio da ORG %s!",playernome, estadiodono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(estadiodono,120,"ADA");
- GangZoneFlashForAll(estadioterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Estadio da ORG %s!",playernome, estadiodono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(estadiodono,120,"TCP");
- GangZoneFlashForAll(estadioterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Estadio da ORG %s!",playernome, estadiodono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(estadiodono,120,"COP");
- GangZoneFlashForAll(estadioterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- else if(PlayerNoTerritorio(playerid,TERRENO))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Terreno Baudio da ORG %s!",playernome, terrenodono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(terrenodono,120,"Comando Vermelho");
- GangZoneFlashForAll(terrenoterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Terreno Baudio da ORG %s!",playernome, terrenodono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(terrenodono,120,"PCC");
- GangZoneFlashForAll(terrenoterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Terreno Baudio da ORG %s!",playernome, terrenodono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(terrenodono,120,"ADA");
- GangZoneFlashForAll(terrenoterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Terreno Baudio da ORG %s!",playernome, terrenodono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(terrenodono,120,"TCP");
- GangZoneFlashForAll(terrenoterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Terreno Baudio da ORG %s!",playernome, terrenodono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(terrenodono,120,"COP");
- GangZoneFlashForAll(terrenoterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- else if(PlayerNoTerritorio(playerid,PIER))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Pier Da Praia da ORG %s!",playernome, pierdono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(pierdono,120,"Comando Vermelho");
- GangZoneFlashForAll(pierterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Pier Da Praia da ORG %s!",playernome, pierdono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(pierdono,120,"PCC");
- GangZoneFlashForAll(pierterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Pier Da Praia da ORG %s!",playernome, pierdono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(pierdono,120,"ADA");
- GangZoneFlashForAll(pierterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Pier Da Praia da ORG %s!",playernome, pierdono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(pierdono,120,"TCP");
- GangZoneFlashForAll(pierterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'Sestão tomando o controle do Pier Da Praia da ORG %s!",playernome, pierdono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(pierdono,120,"COP");
- GangZoneFlashForAll(pierterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- else if(PlayerNoTerritorio(playerid,FAZENDINHA))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle do Fazendinha da ORG %s!",playernome, fazendinhadono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(fazendinhadono,120,"Comando Vermelho");
- GangZoneFlashForAll(fazendinhaterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle do Fazendinha da ORG %s!",playernome, fazendinhadono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(fazendinhadono,120,"PCC");
- GangZoneFlashForAll(fazendinhaterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle do Fazendinha da ORG %s!",playernome, fazendinhadono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(fazendinhadono,120,"ADA");
- GangZoneFlashForAll(fazendinhaterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle do Fazendinha da ORG %s!",playernome, fazendinhadono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(fazendinhadono,120,"TCP");
- GangZoneFlashForAll(fazendinhaterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle do Fazendinha da ORG %s!",playernome, fazendinhadono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(fazendinhadono,120,"COP");
- GangZoneFlashForAll(fazendinhaterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- else if(PlayerNoTerritorio(playerid,DOCAS))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle das Docas da ORG %s!",playernome, docasdono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(docasdono,120,"Comando Vermelho");
- GangZoneFlashForAll(docasterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle das Docas da ORG %s!",playernome, docasdono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(docasdono,120,"PCC");
- GangZoneFlashForAll(docasterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle das Docas da ORG %s!",playernome, docasdono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(docasdono,120,"ADA");
- GangZoneFlashForAll(docasterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle das Docas da ORG %s!",playernome, docasdono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(docasdono,120,"TCP");
- GangZoneFlashForAll(docasterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle das Docas da ORG %s!",playernome, docasdono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(docasdono,120,"COP");
- GangZoneFlashForAll(docasterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- else if(PlayerNoTerritorio(playerid,LINHA))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Estrada De Ferro da ORG %s!",playernome, linhadono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(linhadono,120,"Comando Vermelho");
- GangZoneFlashForAll(linhaterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Estrada De Ferro da ORG %s!",playernome, linhadono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(linhadono,120,"PCC");
- GangZoneFlashForAll(linhaterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Estrada De Ferro da ORG %s!",playernome, linhadono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(linhadono,120,"ADA");
- GangZoneFlashForAll(linhaterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Estrada De Ferro da ORG %s!",playernome, linhadono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(linhadono,120,"TCP");
- GangZoneFlashForAll(linhaterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Estrada De Ferro da ORG %s!",playernome, linhadono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(linhadono,120,"COP");
- GangZoneFlashForAll(linhaterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- else if(PlayerNoTerritorio(playerid,MANSAO))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle das Mansões da ORG %s!",playernome, mansaodono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(mansaodono,120,"Comando Vermelho");
- GangZoneFlashForAll(mansaoterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle das Mansões da ORG %s!",playernome, mansaodono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(mansaodono,120,"PCC");
- GangZoneFlashForAll(mansaoterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle das Mansões da ORG %s!",playernome, mansaodono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(mansaodono,120,"ADA");
- GangZoneFlashForAll(mansaoterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle das Mansões da ORG %s!",playernome, mansaodono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(mansaodono,120,"TCP");
- GangZoneFlashForAll(mansaoterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle das Mansões da ORG %s!",playernome, mansaodono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(mansaodono,120,"COP");
- GangZoneFlashForAll(mansaoterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- else if(PlayerNoTerritorio(playerid,RURAL))
- {
- if(gTeam[playerid] == CV)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o Comando Vermelho estão tomando o controle da Zona Rural da ORG %s!",playernome, ruraldono);
- SendClientMessageToAll(COR_CV,TextoString);
- format(ruraldono,120,"Comando Vermelho");
- GangZoneFlashForAll(ruralterritorio,COR_CV);
- SetTimerEx("cvtomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == PCC)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o PCC estão tomando o controle da Zona Rural da ORG %s!",playernome, ruraldono);
- SendClientMessageToAll(COR_PCC,TextoString);
- format(ruraldono,120,"PCC");
- GangZoneFlashForAll(ruralterritorio,COR_PCC);
- SetTimerEx("pcctomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == ADA)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o ADA estão tomando o controle da Zona Rural da ORG %s!",playernome, ruraldono);
- SendClientMessageToAll(COR_ADA,TextoString);
- format(ruraldono,120,"ADA");
- GangZoneFlashForAll(ruralterritorio,COR_ADA);
- SetTimerEx("adatomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == TCP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e o TCP estão tomando o controle da Zona Rural da ORG %s!",playernome, ruraldono);
- SendClientMessageToAll(COR_TCP,TextoString);
- format(ruraldono,120,"TCP");
- GangZoneFlashForAll(ruralterritorio,COR_TCP);
- SetTimerEx("tcptomou", 30000, 0,"e",playerid);
- }
- if(gTeam[playerid] == COP)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString,sizeof(TextoString),"|GUERRAS| %s e os COP'S estão tomando o controle da Zona Rural da ORG %s!",playernome, ruraldono);
- SendClientMessageToAll(COR_COP,TextoString);
- format(ruraldono,120,"COP");
- GangZoneFlashForAll(ruralterritorio,COR_COP);
- SetTimerEx("coptomou", 30000, 0,"e",playerid);
- }
- }
- return 1;
- }
- public cvtomou(playerid)
- {
- if(PlayerNoTerritorio(playerid,MORRO))
- {
- GangZoneStopFlashForAll(morroterritorio);
- GangZoneHideForAll(morroterritorio);
- GangZoneShowForAll(morroterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,QUADRA))
- {
- GangZoneStopFlashForAll(quadraterritorio);
- GangZoneHideForAll(quadraterritorio);
- GangZoneShowForAll(quadraterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,PARQUE))
- {
- GangZoneStopFlashForAll(parqueterritorio);
- GangZoneHideForAll(parqueterritorio);
- GangZoneShowForAll(parqueterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,RIACHO))
- {
- GangZoneStopFlashForAll(riachoterritorio);
- GangZoneHideForAll(riachoterritorio);
- GangZoneShowForAll(riachoterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,INDUSTRIA))
- {
- GangZoneStopFlashForAll(industriaterritorio);
- GangZoneHideForAll(industriaterritorio);
- GangZoneShowForAll(industriaterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,AEROPORTO))
- {
- GangZoneStopFlashForAll(aeroportoterritorio);
- GangZoneHideForAll(aeroportoterritorio);
- GangZoneShowForAll(aeroportoterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,CASARAO))
- {
- GangZoneStopFlashForAll(casaraoterritorio);
- GangZoneHideForAll(casaraoterritorio);
- GangZoneShowForAll(casaraoterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,ESTACAO))
- {
- GangZoneStopFlashForAll(estacaoterritorio);
- GangZoneHideForAll(estacaoterritorio);
- GangZoneShowForAll(estacaoterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,FAVELA))
- {
- GangZoneStopFlashForAll(favelaterritorio);
- GangZoneHideForAll(favelaterritorio);
- GangZoneShowForAll(favelaterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,PISTA))
- {
- GangZoneStopFlashForAll(pistaterritorio);
- GangZoneHideForAll(pistaterritorio);
- GangZoneShowForAll(pistaterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,ESTADIO))
- {
- GangZoneStopFlashForAll(estadioterritorio);
- GangZoneHideForAll(estadioterritorio);
- GangZoneShowForAll(estadioterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,TERRENO))
- {
- GangZoneStopFlashForAll(terrenoterritorio);
- GangZoneHideForAll(terrenoterritorio);
- GangZoneShowForAll(terrenoterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,PIER))
- {
- GangZoneStopFlashForAll(pierterritorio);
- GangZoneHideForAll(pierterritorio);
- GangZoneShowForAll(pierterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,FAZENDINHA))
- {
- GangZoneStopFlashForAll(fazendinhaterritorio);
- GangZoneHideForAll(fazendinhaterritorio);
- GangZoneShowForAll(fazendinhaterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,DOCAS))
- {
- GangZoneStopFlashForAll(docasterritorio);
- GangZoneHideForAll(docasterritorio);
- GangZoneShowForAll(docasterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,LINHA))
- {
- GangZoneStopFlashForAll(linhaterritorio);
- GangZoneHideForAll(linhaterritorio);
- GangZoneShowForAll(linhaterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,MANSAO))
- {
- GangZoneStopFlashForAll(mansaoterritorio);
- GangZoneHideForAll(mansaoterritorio);
- GangZoneShowForAll(mansaoterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,RURAL))
- {
- GangZoneStopFlashForAll(ruralterritorio);
- GangZoneHideForAll(ruralterritorio);
- GangZoneShowForAll(ruralterritorio,COR_CV);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- return 1;
- }
- public pcctomou(playerid)
- {
- if(PlayerNoTerritorio(playerid,MORRO))
- {
- GangZoneStopFlashForAll(morroterritorio);
- GangZoneHideForAll(morroterritorio);
- GangZoneShowForAll(morroterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,QUADRA))
- {
- GangZoneStopFlashForAll(quadraterritorio);
- GangZoneHideForAll(quadraterritorio);
- GangZoneShowForAll(quadraterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,PARQUE))
- {
- GangZoneStopFlashForAll(parqueterritorio);
- GangZoneHideForAll(parqueterritorio);
- GangZoneShowForAll(parqueterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,RIACHO))
- {
- GangZoneStopFlashForAll(riachoterritorio);
- GangZoneHideForAll(riachoterritorio);
- GangZoneShowForAll(riachoterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,INDUSTRIA))
- {
- GangZoneStopFlashForAll(industriaterritorio);
- GangZoneHideForAll(industriaterritorio);
- GangZoneShowForAll(industriaterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,AEROPORTO))
- {
- GangZoneStopFlashForAll(aeroportoterritorio);
- GangZoneHideForAll(aeroportoterritorio);
- GangZoneShowForAll(aeroportoterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,CASARAO))
- {
- GangZoneStopFlashForAll(casaraoterritorio);
- GangZoneHideForAll(casaraoterritorio);
- GangZoneShowForAll(casaraoterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,ESTACAO))
- {
- GangZoneStopFlashForAll(estacaoterritorio);
- GangZoneHideForAll(estacaoterritorio);
- GangZoneShowForAll(estacaoterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,FAVELA))
- {
- GangZoneStopFlashForAll(favelaterritorio);
- GangZoneHideForAll(favelaterritorio);
- GangZoneShowForAll(favelaterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,PISTA))
- {
- GangZoneStopFlashForAll(pistaterritorio);
- GangZoneHideForAll(pistaterritorio);
- GangZoneShowForAll(pistaterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,ESTADIO))
- {
- GangZoneStopFlashForAll(estadioterritorio);
- GangZoneHideForAll(estadioterritorio);
- GangZoneShowForAll(estadioterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,TERRENO))
- {
- GangZoneStopFlashForAll(terrenoterritorio);
- GangZoneHideForAll(terrenoterritorio);
- GangZoneShowForAll(terrenoterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,PIER))
- {
- GangZoneStopFlashForAll(pierterritorio);
- GangZoneHideForAll(pierterritorio);
- GangZoneShowForAll(pierterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,FAZENDINHA))
- {
- GangZoneStopFlashForAll(fazendinhaterritorio);
- GangZoneHideForAll(fazendinhaterritorio);
- GangZoneShowForAll(fazendinhaterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,DOCAS))
- {
- GangZoneStopFlashForAll(docasterritorio);
- GangZoneHideForAll(docasterritorio);
- GangZoneShowForAll(docasterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,LINHA))
- {
- GangZoneStopFlashForAll(linhaterritorio);
- GangZoneHideForAll(linhaterritorio);
- GangZoneShowForAll(linhaterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,MANSAO))
- {
- GangZoneStopFlashForAll(mansaoterritorio);
- GangZoneHideForAll(mansaoterritorio);
- GangZoneShowForAll(mansaoterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,RURAL))
- {
- GangZoneStopFlashForAll(ruralterritorio);
- GangZoneHideForAll(ruralterritorio);
- GangZoneShowForAll(ruralterritorio,COR_PCC);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- return 1;
- }
- public adatomou(playerid)
- {
- if(PlayerNoTerritorio(playerid,MORRO))
- {
- GangZoneStopFlashForAll(morroterritorio);
- GangZoneHideForAll(morroterritorio);
- GangZoneShowForAll(morroterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,QUADRA))
- {
- GangZoneStopFlashForAll(quadraterritorio);
- GangZoneHideForAll(quadraterritorio);
- GangZoneShowForAll(quadraterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,PARQUE))
- {
- GangZoneStopFlashForAll(parqueterritorio);
- GangZoneHideForAll(parqueterritorio);
- GangZoneShowForAll(parqueterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,RIACHO))
- {
- GangZoneStopFlashForAll(riachoterritorio);
- GangZoneHideForAll(riachoterritorio);
- GangZoneShowForAll(riachoterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,INDUSTRIA))
- {
- GangZoneStopFlashForAll(industriaterritorio);
- GangZoneHideForAll(industriaterritorio);
- GangZoneShowForAll(industriaterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,AEROPORTO))
- {
- GangZoneStopFlashForAll(aeroportoterritorio);
- GangZoneHideForAll(aeroportoterritorio);
- GangZoneShowForAll(aeroportoterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,CASARAO))
- {
- GangZoneStopFlashForAll(casaraoterritorio);
- GangZoneHideForAll(casaraoterritorio);
- GangZoneShowForAll(casaraoterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,ESTACAO))
- {
- GangZoneStopFlashForAll(estacaoterritorio);
- GangZoneHideForAll(estacaoterritorio);
- GangZoneShowForAll(estacaoterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,FAVELA))
- {
- GangZoneStopFlashForAll(favelaterritorio);
- GangZoneHideForAll(favelaterritorio);
- GangZoneShowForAll(favelaterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,PISTA))
- {
- GangZoneStopFlashForAll(pistaterritorio);
- GangZoneHideForAll(pistaterritorio);
- GangZoneShowForAll(pistaterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,ESTADIO))
- {
- GangZoneStopFlashForAll(estadioterritorio);
- GangZoneHideForAll(estadioterritorio);
- GangZoneShowForAll(estadioterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,TERRENO))
- {
- GangZoneStopFlashForAll(terrenoterritorio);
- GangZoneHideForAll(terrenoterritorio);
- GangZoneShowForAll(terrenoterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,PIER))
- {
- GangZoneStopFlashForAll(pierterritorio);
- GangZoneHideForAll(pierterritorio);
- GangZoneShowForAll(pierterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,FAZENDINHA))
- {
- GangZoneStopFlashForAll(fazendinhaterritorio);
- GangZoneHideForAll(fazendinhaterritorio);
- GangZoneShowForAll(fazendinhaterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,DOCAS))
- {
- GangZoneStopFlashForAll(docasterritorio);
- GangZoneHideForAll(docasterritorio);
- GangZoneShowForAll(docasterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,LINHA))
- {
- GangZoneStopFlashForAll(linhaterritorio);
- GangZoneHideForAll(linhaterritorio);
- GangZoneShowForAll(linhaterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,MANSAO))
- {
- GangZoneStopFlashForAll(mansaoterritorio);
- GangZoneHideForAll(mansaoterritorio);
- GangZoneShowForAll(mansaoterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,RURAL))
- {
- GangZoneStopFlashForAll(ruralterritorio);
- GangZoneHideForAll(ruralterritorio);
- GangZoneShowForAll(ruralterritorio,COR_ADA);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- return 1;
- }
- public tcptomou(playerid)
- {
- if(PlayerNoTerritorio(playerid,MORRO))
- {
- GangZoneStopFlashForAll(morroterritorio);
- GangZoneHideForAll(morroterritorio);
- GangZoneShowForAll(morroterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,QUADRA))
- {
- GangZoneStopFlashForAll(quadraterritorio);
- GangZoneHideForAll(quadraterritorio);
- GangZoneShowForAll(quadraterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,PARQUE))
- {
- GangZoneStopFlashForAll(parqueterritorio);
- GangZoneHideForAll(parqueterritorio);
- GangZoneShowForAll(parqueterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,RIACHO))
- {
- GangZoneStopFlashForAll(riachoterritorio);
- GangZoneHideForAll(riachoterritorio);
- GangZoneShowForAll(riachoterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,INDUSTRIA))
- {
- GangZoneStopFlashForAll(industriaterritorio);
- GangZoneHideForAll(industriaterritorio);
- GangZoneShowForAll(industriaterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,AEROPORTO))
- {
- GangZoneStopFlashForAll(aeroportoterritorio);
- GangZoneHideForAll(aeroportoterritorio);
- GangZoneShowForAll(aeroportoterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,CASARAO))
- {
- GangZoneStopFlashForAll(casaraoterritorio);
- GangZoneHideForAll(casaraoterritorio);
- GangZoneShowForAll(casaraoterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,ESTACAO))
- {
- GangZoneStopFlashForAll(estacaoterritorio);
- GangZoneHideForAll(estacaoterritorio);
- GangZoneShowForAll(estacaoterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,FAVELA))
- {
- GangZoneStopFlashForAll(favelaterritorio);
- GangZoneHideForAll(favelaterritorio);
- GangZoneShowForAll(favelaterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,PISTA))
- {
- GangZoneStopFlashForAll(pistaterritorio);
- GangZoneHideForAll(pistaterritorio);
- GangZoneShowForAll(pistaterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,ESTADIO))
- {
- GangZoneStopFlashForAll(estadioterritorio);
- GangZoneHideForAll(estadioterritorio);
- GangZoneShowForAll(estadioterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,TERRENO))
- {
- GangZoneStopFlashForAll(terrenoterritorio);
- GangZoneHideForAll(terrenoterritorio);
- GangZoneShowForAll(terrenoterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,PIER))
- {
- GangZoneStopFlashForAll(pierterritorio);
- GangZoneHideForAll(pierterritorio);
- GangZoneShowForAll(pierterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,FAZENDINHA))
- {
- GangZoneStopFlashForAll(fazendinhaterritorio);
- GangZoneHideForAll(fazendinhaterritorio);
- GangZoneShowForAll(fazendinhaterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,DOCAS))
- {
- GangZoneStopFlashForAll(docasterritorio);
- GangZoneHideForAll(docasterritorio);
- GangZoneShowForAll(docasterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,LINHA))
- {
- GangZoneStopFlashForAll(linhaterritorio);
- GangZoneHideForAll(linhaterritorio);
- GangZoneShowForAll(linhaterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,MANSAO))
- {
- GangZoneStopFlashForAll(mansaoterritorio);
- GangZoneHideForAll(mansaoterritorio);
- GangZoneShowForAll(mansaoterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,RURAL))
- {
- GangZoneStopFlashForAll(ruralterritorio);
- GangZoneHideForAll(ruralterritorio);
- GangZoneShowForAll(ruralterritorio,COR_TCP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- return 1;
- }
- public coptomou(playerid)
- {
- if(PlayerNoTerritorio(playerid,MORRO))
- {
- GangZoneStopFlashForAll(morroterritorio);
- GangZoneHideForAll(morroterritorio);
- GangZoneShowForAll(morroterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,QUADRA))
- {
- GangZoneStopFlashForAll(quadraterritorio);
- GangZoneHideForAll(quadraterritorio);
- GangZoneShowForAll(quadraterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,PARQUE))
- {
- GangZoneStopFlashForAll(parqueterritorio);
- GangZoneHideForAll(parqueterritorio);
- GangZoneShowForAll(parqueterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,RIACHO))
- {
- GangZoneStopFlashForAll(riachoterritorio);
- GangZoneHideForAll(riachoterritorio);
- GangZoneShowForAll(riachoterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,INDUSTRIA))
- {
- GangZoneStopFlashForAll(industriaterritorio);
- GangZoneHideForAll(industriaterritorio);
- GangZoneShowForAll(industriaterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,AEROPORTO))
- {
- GangZoneStopFlashForAll(aeroportoterritorio);
- GangZoneHideForAll(aeroportoterritorio);
- GangZoneShowForAll(aeroportoterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,CASARAO))
- {
- GangZoneStopFlashForAll(casaraoterritorio);
- GangZoneHideForAll(casaraoterritorio);
- GangZoneShowForAll(casaraoterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,ESTACAO))
- {
- GangZoneStopFlashForAll(estacaoterritorio);
- GangZoneHideForAll(estacaoterritorio);
- GangZoneShowForAll(estacaoterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,FAVELA))
- {
- GangZoneStopFlashForAll(favelaterritorio);
- GangZoneHideForAll(favelaterritorio);
- GangZoneShowForAll(favelaterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,PISTA))
- {
- GangZoneStopFlashForAll(pistaterritorio);
- GangZoneHideForAll(pistaterritorio);
- GangZoneShowForAll(pistaterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,ESTADIO))
- {
- GangZoneStopFlashForAll(estadioterritorio);
- GangZoneHideForAll(estadioterritorio);
- GangZoneShowForAll(estadioterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,TERRENO))
- {
- GangZoneStopFlashForAll(terrenoterritorio);
- GangZoneHideForAll(terrenoterritorio);
- GangZoneShowForAll(terrenoterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,PIER))
- {
- GangZoneStopFlashForAll(pierterritorio);
- GangZoneHideForAll(pierterritorio);
- GangZoneShowForAll(pierterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,FAZENDINHA))
- {
- GangZoneStopFlashForAll(fazendinhaterritorio);
- GangZoneHideForAll(fazendinhaterritorio);
- GangZoneShowForAll(fazendinhaterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,DOCAS))
- {
- GangZoneStopFlashForAll(docasterritorio);
- GangZoneHideForAll(docasterritorio);
- GangZoneShowForAll(docasterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,LINHA))
- {
- GangZoneStopFlashForAll(linhaterritorio);
- GangZoneHideForAll(linhaterritorio);
- GangZoneShowForAll(linhaterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,MANSAO))
- {
- GangZoneStopFlashForAll(mansaoterritorio);
- GangZoneHideForAll(mansaoterritorio);
- GangZoneShowForAll(mansaoterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- else if(PlayerNoTerritorio(playerid,RURAL))
- {
- GangZoneStopFlashForAll(ruralterritorio);
- GangZoneHideForAll(ruralterritorio);
- GangZoneShowForAll(ruralterritorio,COR_COP);
- SendClientMessage(playerid, COR_MSG2, "Parabens você tomou o controle desse territorio para sua ORG caso você morra ira perder o controle!");
- }
- return 1;
- }
- stock PlayerNoTerritorio(playerid, Float:xmin, Float:ymin, Float:xmax, Float:ymax)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(x >= xmin && y >= ymin && xmax <= xmax && y <= ymax) return true;
- return false;
- }
- public ChatLimpo(playerid, lines)
- {
- if(IsPlayerConnected(playerid))
- {
- for(new i=0; i<lines; i++)
- {
- SendClientMessage(playerid, COR_MSG2, " ");
- }
- }
- return 1;
- }
- public MapaRandamonico()
- {
- new random1 = random(sizeof(NomesMapa));
- format(TextoString, sizeof(TextoString), "mapname %s", NomesMapa[random1] );
- SendRconCommand(TextoString);
- return 1;
- }
- public ModeRandamonico()
- {
- new random1 = random(sizeof(NomesMode));
- format(TextoString, sizeof(TextoString), "gamemodetext %s", NomesMode[random1] );
- SendRconCommand(TextoString);
- return 1;
- }
- public NomeServidorRandamonico()
- {
- new random1 = random(sizeof(NomeDoServidor));
- format(TextoString, sizeof(TextoString), "hostname %s", NomeDoServidor[random1] );
- SendRconCommand(TextoString);
- return 1;
- }
- public AnuncioRandamonico()
- {
- new random1 = random(sizeof(Anuncios));
- new random2 = random(sizeof(CoresAnuncios));
- format(TextoString, sizeof(TextoString), "%s", Anuncios[random1]);
- SendClientMessageToAll(CoresAnuncios[random2],TextoString);
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new carros = GetPlayerVehicleID(playerid);
- if(newstate == PLAYER_STATE_DRIVER)
- {
- if(CarrosCv(carros))
- {
- if(PlayerCv(playerid)) { }
- else {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COR_MSG2, "Você não pode usar um veiculo do Comando Vermelho!"); }
- }
- else if(CarrosPcc(carros))
- {
- if(PlayerPcc(playerid)) { }
- else {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COR_MSG2, "Você não pode usar um veiculo do PCC!"); }
- }
- else if(CarrosAda(carros))
- {
- if(PlayerAda(playerid)) { }
- else {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COR_MSG2, "Você não pode usar um veiculo do ADA!"); }
- }
- else if(CarrosTcp(carros))
- {
- if(PlayerTcp(playerid)) { }
- else {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COR_MSG2, "Você não pode usar um veiculo do TCP!"); }
- }
- else if(CarrosCop(carros))
- {
- if(PlayerCop(playerid)) { }
- else {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COR_MSG2, "Você não pode usar um veiculo dos Cop's!"); }
- }
- }
- return 1;
- }
- public PlayerCv(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gTeam[playerid] == CV)
- {
- return 1;
- }
- }
- return 0;
- }
- public CarrosCv(carid)
- {
- if((carid >= CARROCV1) && (carid <= CARROCV2))
- {
- return 1;
- }
- return 0;
- }
- public PlayerPcc(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gTeam[playerid] == PCC)
- {
- return 1;
- }
- }
- return 0;
- }
- public CarrosPcc(carid)
- {
- if((carid >= CARROPCC1) && (carid <= CARROPCC2))
- {
- return 1;
- }
- return 0;
- }
- public PlayerAda(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gTeam[playerid] == ADA)
- {
- return 1;
- }
- }
- return 0;
- }
- public CarrosAda(carid)
- {
- if((carid >= CARROADA1) && (carid <= CARROADA2))
- {
- return 1;
- }
- return 0;
- }
- public PlayerTcp(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gTeam[playerid] == TCP)
- {
- return 1;
- }
- }
- return 0;
- }
- public CarrosTcp(carid)
- {
- if((carid >= CARROTCP1) && (carid <= CARROTCP2))
- {
- return 1;
- }
- return 0;
- }
- public PlayerCop(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(gTeam[playerid] == COP)
- {
- return 1;
- }
- }
- return 0;
- }
- public CarrosCop(carid)
- {
- if((carid >= CARROCOP1) && (carid <= CARROCOP2))
- {
- return 1;
- }
- return 0;
- }
- public HoraServidor()
- {
- new hour, minute;
- gettime(hour, minute);
- format(TextoString,32,"%02d:%02d",hour,minute);
- TextDrawSetString(relogio, TextoString);
- SetWorldTime(hour);
- new x=0;
- while(x!=MAX_PLAYERS)
- {
- if(IsPlayerConnected(x) && GetPlayerState(x) != PLAYER_STATE_NONE)
- {
- SetPlayerTime(x,hour,minute);
- }
- x++;
- }
- }
- public MostrarPing()
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- TextDrawShowForPlayer(i, ping[i]);
- format(TextoString,sizeof(TextoString),"Ping: %i" ,GetPlayerPing(i));
- TextDrawSetString(ping[i], TextoString);
- }
- }
- stock PlayersConectados()
- {
- new OnLine;
- for(new i, g = GetMaxPlayers(); i < g; i++)
- if(IsPlayerConnected(i))
- OnLine++;
- return OnLine;
- }
- SalvarPlayer(playerid)
- {
- new Float:Vida;
- new Float:Colete;
- GetPlayerHealth(playerid, Vida);
- GetPlayerArmour(playerid, Colete);
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString, sizeof(TextoString), SALVARCONTAS, playernome);
- DOF2_SetInt(TextoString,"Dinheiro", GetPlayerMoney(playerid));
- DOF2_SetFloat(TextoString,"Vida", Vida);
- DOF2_SetFloat(TextoString,"Colete", Colete);
- DOF2_SetInt(TextoString,"Matou", Matou[playerid]);
- DOF2_SetInt(TextoString,"Morreu", Morreu[playerid]);
- DOF2_SetInt(TextoString,"Logou", Logou[playerid]);
- return 1;
- }
- SetarPlayer(playerid)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- format(TextoString, sizeof(TextoString), SALVARCONTAS, playernome);
- GivePlayerMoney(playerid, DOF2_GetInt(TextoString,"Dinheiro"));
- SetPlayerHealth(playerid, DOF2_GetInt(TextoString,"Vida"));
- SetPlayerArmour(playerid, DOF2_GetInt(TextoString,"Colete"));
- Matou[playerid] = DOF2_GetInt(TextoString, "Matou");
- Morreu[playerid] = DOF2_GetInt(TextoString, "Morreu");
- Logou[playerid] = DOF2_GetInt(TextoString, "Logou");
- return 1;
- }
- Status(playerid)
- {
- GetPlayerName(playerid, playernome, sizeof(playernome));
- SendClientMessage(playerid, COR_MSG, "================================================");
- format(TextoString, sizeof(TextoString),"Status De %s",playernome);
- SendClientMessage(playerid, COR_MSG2,TextoString);
- format(TextoString, sizeof(TextoString),"Dinheiro: %d", GetPlayerMoney(playerid));
- SendClientMessage(playerid, COR_MSG2,TextoString);
- format(TextoString, sizeof(TextoString),"Matou: %d",Matou[playerid]);
- SendClientMessage(playerid, COR_MSG2,TextoString);
- format(TextoString, sizeof(TextoString),"Morreu: %d",Morreu[playerid]);
- SendClientMessage(playerid, COR_MSG2,TextoString);
- format(TextoString, sizeof(TextoString),"Você Já Logou %d Vezes Neste Servidor",Logou[playerid]);
- SendClientMessage(playerid, COR_MSG2,TextoString);
- SendClientMessage(playerid, COR_MSG, "================================================");
- return 1;
- }
- stock AntiDeAMX()
- {
- new a[][] =
- {
- "Unarmed (Fist)",
- "Brass K"
- };
- #pragma unused a
- }
- /*
- GameMode Feito Por BrunoBernardo(BrunoTadeu) PorFavor Nao Retire Os Creditos
- Qualquer Erro Ou Duvida Por Favor Entre Em Contato
- Em Breve Atualizaçoes
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement