[GameMode] Simples Guerra de Facзхes vs Cop's v0.2
#1

Bom galera venho trazenu um simples gamemode de guerras de facзoes vs cops entao vc pode usar esse gm como base para o seu proprio mais sem retirar os creditos informaзхes sobre o gamemode abaixo:

Algumas Coisas Que Contem:

Todo em ZCMD
Possibilidade de tomar o controle de 18 territorios
4 facзхes e 1 Cop
Comandos de Equipar Com 3 kits
Todo em Dialog
Sistema de Anuncio Randamonico
Sistema de Efeitos
TextDraw Forum
Tomar Territorio Apertando "H" dentro do veiculo
Mostra de quem vc esta tomando o territorio
Alguns Objetos
Algumas Lojinhas de Lanches Espalhados Pela Cidade
e Algumas outras coisas.


Alguns Comandos:

/tomarterritorio
/rank
/suicidar
/creditos
/ajuda
/efeitos
/pegarmeusequipamentos ou basta apertar "ALT" no icone


Imagens:

Em Breve eu posto

Код:
 /*

   GameMode Feito Por [iPs]BrunoBernardo 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>
//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
//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
//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[128];
//TextDrawns
new Text:ForumiPs;
//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 AnuncioRandamonico();
new Anuncios[4][256] =
{
	"|AVISOS| --:> Vistem iPs-team.forumeiros.com.",
	"|AVISOS| --:> GameMode em desenvolvimento fiquem atentos as atualizaзхes.",
	"|AVISOS| --:> Nгo retire os creditos do GM.",
	"|AVISOS| --:> Tom Sem Ideia Para Anuncios kkkkkkkkkkkkkkkkkkkkkkk."
};

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(":          GameMode Base         :");
	print(":                                :");
	print(":      Feito Por BrunoTadeu      :");
	print(":                                :");
	print("::::::::::::::::::::::::::::::::::");
    print("\n");
}
public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, ForumiPs);
    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);
    GetPlayerName(playerid, playernome, sizeof(playernome));
    format(TextoString, sizeof(TextoString), "%s Entrou no Servidor!", playernome);
    SendClientMessageToAll(COR_MSG, TextoString);
	return 1;
}
public OnPlayerDisconnect(playerid)
{
    TextDrawShowForPlayer(playerid, ForumiPs);
    GetPlayerName(playerid, playernome, sizeof(playernome));
    format(TextoString, sizeof(TextoString), "%s Saiu do Servidor! ", playernome);
    SendClientMessageToAll(COR_CV, TextoString);
    return 1;
}
public OnPlayerSpawn(playerid)
{
    GivePlayerMoney(playerid, 50000);
    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: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\n[iPs]BrunoBernardo (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: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, 1863.6661,-1396.4680,13.4797))
	{
		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, 2151.8064,-1013.4453,62.7985))
	{
		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, 2266.3564,-1431.9099,24.0000))
	{
		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;
	}
	return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
    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;
	   GameTextForPlayer(playerid,"~r~Comando Vermelho",5000,1);
	   SetPlayerColor(playerid,COR_CV);
	}
	if((classid >= 3) && (classid <= 5))
	{
	   gTeam[playerid] = PCC;
	   GameTextForPlayer(playerid,"~b~PCC",5000,1);
	   SetPlayerColor(playerid,COR_PCC);
	}
	if((classid >= 6) && (classid <= 8))
	{
	   gTeam[playerid] = ADA;
	   GameTextForPlayer(playerid,"~p~ADA",5000,1);
	   SetPlayerColor(playerid,COR_ADA);
	}
	if((classid >= 9) && (classid <= 11))
	{
	   gTeam[playerid] = TCP;
	   GameTextForPlayer(playerid,"~g~TCP",5000,1);
	   SetPlayerColor(playerid,COR_TCP);
	}
	if((classid >= 12) && (classid <= 15))
	{
	   gTeam[playerid] = COP;
	   GameTextForPlayer(playerid,"~b~COP'S",5000,1);
	   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()
{
	SetGameModeText("Guerra Total");
	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);
	//TextForum
	ForumiPs = TextDrawCreate(1.000000,437.000000,"            ~w~Visite nosso forum: ~g~http://www.ips-team.forumeiros.com    ~w~Versao: 2.0");
    TextDrawTextSize(ForumiPs,641.000000,0.000000);
    TextDrawAlignment(ForumiPs,0);
    TextDrawFont(ForumiPs,3);
    TextDrawLetterSize(ForumiPs,0.399999,1.100000);
    TextDrawColor(ForumiPs,0xffffffff);
    TextDrawSetOutline(ForumiPs,1);
    TextDrawSetProportional(ForumiPs,1);
    TextDrawSetShadow(ForumiPs,1);
	//Equipar
	AddStaticPickup(362, 23, EQUIPCV);
    AddStaticPickup(362, 23, EQUIPPCC);
    AddStaticPickup(362, 23, EQUIPADA);
    AddStaticPickup(362, 23, EQUIPTCP);
	AddStaticPickup(362, 23, EQUIPCOPS);
	//Lanches
	AddStaticPickup(1240, 23, 1863.6661,-1396.4680,13.4797);//Barraca1
    AddStaticPickup(1240, 23, 2151.8064,-1013.4453,62.7985);//Barraca2
    AddStaticPickup(1240, 23, 2266.3564,-1431.9099,24.0000);//Barraca3
	//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);
	//Lanchinhos
	Create3DTextLabel("Sorveteria{FF0000}\nAperte 'F' Para Comprar",COR_LOJA,1863.6661,-1396.4680,13.4797,20,0);
    Create3DTextLabel("HotDog{FF0000}\nAperte 'F' Para Comprar",COR_LOJA,2151.8064,-1013.4453,62.7985,20,0);
    Create3DTextLabel("Hamburguer{FF0000}\nAperte 'F' Para Comprar",COR_LOJA,2266.3564,-1431.9099,24.0000,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);
	return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    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 AnuncioRandamonico()
{
	new random1 = random(sizeof(Anuncios));
	new random2 = random(sizeof(CoresAnuncios));
	format(TextoString, sizeof(TextoString), "%s", Anuncios[random1]);
	SendClientMessageToAll(CoresAnuncios[random2],TextoString);
	return 1;
}
Download:

PasteBin

SendSpace

Creditos:

[iPs]BrunoBernardo e a todos q ajudaram.

Lembrando q este gamemode esta sujeito a atualizaзхes para remoзгo de erros ou para melhoria.

Pesso tambem q me avisem sobre qualquer erro assim ele sera soluзionado imediatamente

Reply
#2

first№ parece mt bom! =)
Reply
#3

Bem legal!
Reply
#4

Bom !
Reply
#5

LOL parece ser bom.

Aguardo as imagens
Reply
#6

Vlw galera
Reply
#7

Muito bom meu rapaz.

@Edit

Cara, tem como vocк criar um Sistema de Criaзгo de Empresas?
Tipo, eu chego em um lugar e digito /criarempresa [preзo] [lucro] [nome]
Aн vai criar um icone, quando um player digita /infoempresa encima dela, aparece um dialog dizendo o preзo, lucro, nome e etc... kkk mas isso demora pa k7...
Reply
#8

Quote:
Originally Posted by BrunoBSF
Посмотреть сообщение

Sistema de Anuncio Randamonico
HAUEHUAHEUAHEUAEHAEUHEU


TOPIC

Parece bom, coloca umas imagens.
Reply
#9

kkkkk fiquei sem ideias ae colokei isso kkkkk depois tiro imagens ae posto para vc
Reply
#10

Quote:
Originally Posted by BrunoBSF
Посмотреть сообщение
kkkkk fiquei sem ideias ae colokei isso kkkkk depois tiro imagens ae posto para vc
Nгo to rindo da ideia mas sim do Randamфnico.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)