[GameMode] Policia x Traficante
#1

~-~-~-~-~-~-~-~-~-GameMode Policia x Traficante:~-~-~-~-~-~-~-~-~-
* By: Lipe_Stronda

~-~-~-~-~-~-~-~-~-Creditos:~-~-~-~-~-~-~-~-~-

* Glu [ Ideia do GameMode ] [ Pedido ]
* DjBruninho
* JFS
* Shawdoww5
* FaelDK
* LipeStronda
* Faltando creditos? felipegama_pty@hot....

~-~-~-~-~-~-~-~-~-Sistemas:~-~-~-~-~-~-~-~-~-

* Sistema de GangZone Dominavel
* Sistema de Prisao
* Sistema de Lutas ( /MUDARLUTA )
* Nome Do Server Random
* Mensagens Randomicas
* Menu Escolha de Organizaзгo
* Sistema de Camera
* Sistema de Armas Por Classes
* Sistema de drogas

~-~-~-~-~-~-~-~-~-Download:~-~-~-~-~-~-~-~-~-

Code:
/*
	Creditos
	Glu [ Ideia do GameMode ] [ Pedido ]
	DjBruninho
	JFS
	Shawdoww5
	FaelDK
	LipeStronda
	Faltando creditos? felipegama_pty@hot....

*/
#include <a_samp>
#include <dini>
#define escolher 12014
#define Shotguns 564
#define Sniper 654
#define SubMetralhadoras 214
#define Outros 489
#define ClassesArmas 456
#define Armas 951
#define REGISTRO 1
#define LOGIN    2
#define Traficante 1
#define Policia 2
#define CorPolicia 0x2641FEC8
#define CorTraficante 0x1BE02BFF
#define FIGHTMENU 1254
#define AJUDAMENU 1456
new HealthDropado;
new Drop;
new Float:Health;
new Text3D:label[MAX_PLAYERS];
new Tutorial[MAX_PLAYERS];
new TempoTutu[MAX_PLAYERS];
new Text:Reloginho1;
new Text:Reloginho2;
new gTeam[MAX_PLAYERS];
new Matou[MAX_PLAYERS];
new Level[MAX_PLAYERS];
new Morreu[MAX_PLAYERS];
new Logou[MAX_PLAYERS];
new Vip[MAX_PLAYERS];
new Bomba[MAX_PLAYERS] = -2;
new Text:Site;
new pMaconha[MAX_PLAYERS];
new pCrack[MAX_PLAYERS];
new pCocaina[MAX_PLAYERS];
new Dominando[MAX_PLAYERS];
new GZMorro;
new donoMorro;
new GuerranoMorro;
new ProvocoMorro[MAX_PLAYERS];
new TempoGuerraMorro;
new Celulas[128];
new pNome[MAX_PLAYER_NAME];
#define DIALOG_DROGAS 230
#define DIALOG_QUANTIAM 231
#define DIALOG_QUANTIAC 232
#define DIALOG_QUANTIACC 233
#define DIALOG_ESCOLHERDROGAS 234
#define DIALOG_COMPRARBOMBA 147852
#define CONTAS "Players/%s.ini"
forward FicarNormal(playerid);
forward FumandoMaconha(playerid);
forward FumandoCrack(playerid);
forward CheirandoCocaina(playerid);
forward GuerraMorro(playerid);
forward SendMensagens();

new Cores[] =
{
    0x5EB7E3AA,
    0xCD6CF6F6,
    0x685000F6
};
new Mensagens[4][256] =
{
    "[Mulher Feijoada] Digite /pontodrogas e veja os Pontos de Drogas",
    "[Mulher Arroz] Vб na sua Hq e digite /equipar no Pickup!!!",
    "[Mulher Bife] Duvidas? Viu Xiter? Chame um administrador",
    "[Mulher Salada] Digite /ajuda para mais informaзхes"
};

new RandomServerName[2][] =
{
    "[2011] Policia x Traficante",
    "[2011] Quem й o Melhor?"
};
enum pInfo{bool:SpawnDance,Float:SpawnAngle,SpawnTimer};
new SkinClass[MAX_PLAYERS][pInfo];
new ClosedSelection[MAX_PLAYERS];
new Float:cordinatex,Float:cordinatey,Float:cordinatez,Float:cordinateangle;
new Float:RequestCamera[1][4] =
{
    {596.4931,1502.9486,9.0578,29.4318}
};
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
	print("\n----------------------------------");
	print("GameMode by : LipeStronda, feito para o Glu");
	print("----------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print("GameMode by : LipeStronda, feito para o Glu");
	print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
	SetTimer("SendMSG", 1000, true);
    GZMorro = GangZoneCreate(2117.333, -1069.962, 2261.841, -959.4252);
	Site= TextDrawCreate(1.0, 433.0, "Visite nossa Comunidade: www.orkut.com.br/Main#Community?cmm=117479133");
	TextDrawAlignment(Site,0);
	TextDrawBackgroundColor(Site,0x000000AA);
	TextDrawFont(Site,2);
    TextDrawLetterSize(Site,0.2999, 1.4);
	TextDrawBoxColor(Site,0x00000050);
	TextDrawColor(Site,0xffffffff);
	TextDrawSetOutline(Site,1);
	TextDrawSetProportional(Site,1);
	TextDrawSetShadow(Site,1);
    SetTimer("reloginho", 1000, true);
	Reloginho1 = TextDrawCreate(532.000000,2.000000," ");
	Reloginho2 = TextDrawCreate(545.000000,15.000000," ");
	AddPlayerClass(1,2200.6030273438,-1001.375,62.255424499512,0.0,0,0,0,0,0,0);
	AddPlayerClass(285,1529.3182373047,-1644.6044921875,5.890625,0.0,0,0,0,0,0,0);
	SetGameModeText("=-= [2011] =-=");
	//Ponto de Drogas
	AddStaticPickup(1279, 23, 1916.8116,-1409.7767,13.5703); //Pista
	AddStaticPickup(1279, 23, 1956.4116,-1241.7155,19.8134); //Park
	AddStaticPickup(1279, 23, 2183.4854,-989.2636,72.3984); //Morro
	AddStaticPickup(1279, 23, 1580.8081,-1634.1422,13.5620); // Policia
	AddStaticPickup(1279, 23, 2183.7771,-1015.6352,62.8389); // Traficante
	Create3DTextLabel("{FFFF00}Policia x {0FFF00}Traficante\n{F60000}Pegue seus Armamentos:\n{00A5FF}Digite /equipar", -1, 1580.8081,-1634.1422,13.5620, 60, 0);//- Dorgas Manolo RIARIARIA
	Create3DTextLabel("{FFFF00}Policia x {0FFF00}Traficante\n{F60000}Pegue seus Armamentos:\n{00A5FF}Digite /equipar", -1, 2183.7771,-1015.6352,62.8389, 60, 0);//- Dorgas Manolo RIARIARIA
	Create3DTextLabel("{FFFF00}Ponto de {0FFF00}Drogas\n{F60000}Compre Suas Drogas:\n{00A5FF}Digite /comprardrogas", -1, 1916.8116,-1409.7767,13.5703, 60, 0);//- Dorgas Manolo RIARIARIA
	Create3DTextLabel("{FFFF00}Ponto de {0FFF00}Drogas\n{F60000}Compre Suas Drogas:\n{00A5FF}Digite /comprardrogas", -1, 1956.4116,-1241.7155,19.8134, 60, 0);//- Dorgas Manolo RIARIARIA
	Create3DTextLabel("{FFFF00}Ponto de {0FFF00}Drogas\n{F60000}Compre Suas Drogas:\n{00A5FF}Digite /comprardrogas", -1, 2183.4854,-989.2636,72.3984, 60, 0);//- Dorgas Manolo RIARIARIA
	// Objetos de Drogas
	CreateObject(3359,1958.00207520,-1243.84777832,18.97231865,0.00000000,0.00000000,180.00000000); //object(cxrf_savhusgar1_) (1)
	CreateObject(3383,1954.19897461,-1247.24365234,18.73488235,0.00000000,0.00000000,0.00000000); //object(a51_labtable1_) (1)
	CreateObject(3383,1957.68200684,-1247.07189941,18.80992126,0.00000000,0.00000000,0.75000000); //object(a51_labtable1_) (2)
	CreateObject(3383,1961.54138184,-1247.33239746,18.71664810,0.00000000,0.00000000,0.00000000); //object(a51_labtable1_) (3)
	CreateObject(1416,1962.86767578,-1242.56250000,19.54257011,0.00000000,0.00000000,179.25000000); //object(dyn_unit) (1)
	CreateObject(1416,1961.45312500,-1242.54455566,19.54257011,0.00000000,0.00000000,179.24743652); //object(dyn_unit) (2)
	CreateObject(1416,1960.04895020,-1242.52124023,19.54257011,0.00000000,0.00000000,179.24743652); //object(dyn_unit) (3)
	CreateObject(1416,1958.63891602,-1242.49865723,19.54257011,0.00000000,0.00000000,179.24743652); //object(dyn_unit) (4)
	CreateObject(1416,1957.25854492,-1242.46838379,19.54257011,0.00000000,0.00000000,179.24743652); //object(dyn_unit) (5)
	CreateObject(1416,1955.89294434,-1242.43725586,19.54257011,0.00000000,0.00000000,179.24743652); //object(dyn_unit) (6)
	CreateObject(1416,1954.50988770,-1242.40063477,19.54257011,0.00000000,0.00000000,179.24743652); //object(dyn_unit) (7)
	CreateObject(1416,1953.11206055,-1242.37634277,19.54257011,0.00000000,0.00000000,179.24743652); //object(dyn_unit) (8)
	CreateObject(18014,1961.16052246,-1247.11584473,20.20434761,0.00000000,0.00000000,268.00000000); //object(int_rest_veg03) (1)
	CreateObject(18014,1957.51635742,-1246.98779297,20.20434761,0.00000000,0.00000000,267.99499512); //object(int_rest_veg03) (2)
	CreateObject(18014,1954.45129395,-1246.89062500,20.20434761,0.00000000,0.00000000,267.99499512); //object(int_rest_veg03) (3)
	CreateObject(2941,1956.42736816,-1242.41198730,20.46908569,0.00000000,0.00000000,179.99450684); //object(temp_till) (2)
	CreateObject(2941,1957.94165039,-1242.39819336,20.46908569,0.00000000,0.00000000,179.99450684); //object(temp_till) (3)
	CreateObject(1616,1956.06701660,-1239.17260742,24.38524437,0.00000000,0.00000000,294.50000000); //object(nt_securecam1_01) (1)
	CreateObject(3359,1917.88537598,-1412.81457520,12.57031250,0.00000000,0.00000000,182.49450684); //object(cxrf_savhusgar1_) (2)
	CreateObject(3383,2190.15820312,-986.72247314,71.39843750,0.00000000,0.00000000,74.00000000); //object(a51_labtable1_) (4)
	CreateObject(3383,2189.20703125,-990.37438965,71.39843750,0.00000000,0.00000000,73.99841309); //object(a51_labtable1_) (5)
	CreateObject(3383,2188.24682617,-994.07659912,71.39843750,0.00000000,0.00000000,73.99841309); //object(a51_labtable1_) (6)
	CreateObject(1416,2185.55175781,-984.26928711,71.96503448,0.00000000,0.00000000,255.24745178); //object(dyn_unit) (9)
	CreateObject(1416,2185.18701172,-985.62561035,71.96503448,0.00000000,0.00000000,255.24536133); //object(dyn_unit) (10)
	CreateObject(1416,2184.97070312,-986.49377441,72.01503754,0.00000000,0.00000000,255.24536133); //object(dyn_unit) (11)
	CreateObject(1416,2184.63403320,-987.77899170,72.01503754,0.00000000,0.00000000,255.24536133); //object(dyn_unit) (12)
	CreateObject(1416,2184.28637695,-989.07470703,72.01503754,0.00000000,0.00000000,255.24536133); //object(dyn_unit) (13)
	CreateObject(1416,2183.94409180,-990.34991455,72.01503754,0.00000000,0.00000000,255.24536133); //object(dyn_unit) (14)
	CreateObject(1416,2183.62158203,-991.65032959,72.01503754,0.00000000,0.00000000,255.24536133); //object(dyn_unit) (15)
	CreateObject(1416,2183.26562500,-993.01586914,72.01503754,0.00000000,0.00000000,255.24536133); //object(dyn_unit) (16)
	CreateObject(1416,2183.03613281,-993.95739746,72.01503754,0.00000000,0.00000000,255.24536133); //object(dyn_unit) (17)
	CreateObject(2941,2184.24755859,-989.57568359,72.94155121,0.00000000,0.00000000,255.24452209); //object(temp_till) (4)
	CreateObject(2941,2183.67797852,-991.46234131,72.94155121,0.00000000,0.00000000,255.23986816); //object(temp_till) (5)
	CreateObject(18014,2188.84301758,-990.45355225,72.99432373,0.00000000,0.00000000,342.74499512); //object(int_rest_veg03) (4)
	CreateObject(18014,2189.83593750,-987.26751709,72.99432373,0.00000000,0.00000000,342.74047852); //object(int_rest_veg03) (5)
	CreateObject(18014,2187.95532227,-993.27716064,72.99432373,0.00000000,0.00000000,342.74047852); //object(int_rest_veg03) (6)
	CreateObject(3359,2185.94921875,-989.60839844,71.39843750,0.00000000,0.00000000,257.23937988); //object(cxrf_savhusgar1_) (3)
	CreateObject(1416,1922.54919434,-1410.85510254,13.13691139,0.00000000,0.00000000,179.24743652); //object(dyn_unit) (18)
	CreateObject(1416,1921.16992188,-1410.83300781,13.13691139,0.00000000,0.00000000,179.24743652); //object(dyn_unit) (19)
	CreateObject(1416,1919.78173828,-1410.83386230,13.13691139,0.00000000,0.00000000,179.24743652); //object(dyn_unit) (20)
	CreateObject(1416,1918.42614746,-1410.82055664,13.13691139,0.00000000,0.00000000,179.24743652); //object(dyn_unit) (21)
	CreateObject(1416,1917.14770508,-1410.80590820,13.13691139,0.00000000,0.00000000,179.24743652); //object(dyn_unit) (22)
	CreateObject(1416,1915.74682617,-1410.79394531,13.13691139,0.00000000,0.00000000,179.24743652); //object(dyn_unit) (23)
	CreateObject(1416,1914.42395020,-1410.77270508,13.13691139,0.00000000,0.00000000,179.24743652); //object(dyn_unit) (24)
	CreateObject(1416,1913.09875488,-1410.73364258,13.13691139,0.00000000,0.00000000,179.24743652); //object(dyn_unit) (25)
	CreateObject(2941,1918.90576172,-1410.77416992,14.06342506,0.00000000,0.00000000,179.99450684); //object(temp_till) (6)
	CreateObject(2941,1916.68835449,-1410.72521973,14.06342506,0.00000000,0.00000000,179.99450684); //object(temp_till) (7)
	CreateObject(3383,1921.92272949,-1416.14746094,12.57031250,0.00000000,0.00000000,0.74707031); //object(a51_labtable1_) (7)
	CreateObject(3383,1918.14624023,-1416.17529297,12.57031250,0.00000000,0.00000000,0.74707031); //object(a51_labtable1_) (8)
	CreateObject(3383,1914.23645020,-1416.34765625,12.57031250,0.00000000,0.00000000,0.74707031); //object(a51_labtable1_) (9)
	CreateObject(18014,1918.17724609,-1416.17187500,14.02433777,0.00000000,0.00000000,88.99047852); //object(int_rest_veg03) (7)
	CreateObject(18014,1914.92602539,-1416.11511230,14.02433777,0.00000000,0.00000000,88.98925781); //object(int_rest_veg03) (8)
	CreateObject(18014,1921.45153809,-1416.22851562,14.02433777,0.00000000,0.00000000,88.98925781); //object(int_rest_veg03) (9)
	CreateObject(5822,2178.32641602,-994.63635254,66.72780609,0.00000000,0.00000000,82.00000000); //object(lhroofst14) (1)
	// DP
	CreateObject(1649,1492.22302246,-1751.34411621,16.13421822,0.00000000,0.00000000,180.00000000); //object(wglasssmash) (2)
	CreateObject(1649,1492.22265625,-1751.34375000,19.38421822,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (3)
	CreateObject(1649,1492.22265625,-1751.34375000,22.63421440,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (4)
	CreateObject(1649,1492.22265625,-1751.34375000,25.98420525,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (5)
	CreateObject(1649,1486.63110352,-1751.32055664,16.13421822,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (7)
	CreateObject(1649,1486.63085938,-1751.32031250,19.38421822,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (8)
	CreateObject(1649,1486.63085938,-1751.32031250,22.63422203,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (9)
	CreateObject(1649,1486.63085938,-1751.32031250,25.88422203,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (10)
	CreateObject(1649,1475.57910156,-1751.18603516,16.13421822,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (11)
	CreateObject(1649,1475.57910156,-1751.18554688,19.38421822,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (12)
	CreateObject(1649,1475.57910156,-1751.18554688,22.60921478,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (13)
	CreateObject(1649,1475.57910156,-1751.18554688,25.88422203,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (14)
	CreateObject(1649,1470.27880859,-1751.27929688,16.13421822,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (15)
	CreateObject(1649,1470.27832031,-1751.27929688,19.45921326,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (16)
	CreateObject(1649,1470.27832031,-1751.27929688,22.75921631,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (17)
	CreateObject(1649,1470.27832031,-1751.27929688,26.05922318,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (18)
	CreateObject(1649,1475.76257324,-1759.83605957,18.18421745,0.00000000,0.00000000,358.49450684); //object(wglasssmash) (19)
	CreateObject(1649,1475.76171875,-1759.83593750,21.43421745,0.00000000,0.00000000,358.48937988); //object(wglasssmash) (20)
	CreateObject(1649,1475.75000000,-1759.78735352,24.70921326,0.00000000,0.00000000,358.48937988); //object(wglasssmash) (21)
	CreateObject(1649,1475.75000000,-1759.78710938,27.98421669,0.00000000,0.00000000,358.48937988); //object(wglasssmash) (22)
	CreateObject(1649,1469.93896484,-1759.62963867,18.18421745,0.00000000,0.00000000,358.48937988); //object(wglasssmash) (23)
	CreateObject(1649,1469.93847656,-1759.62890625,21.43421745,0.00000000,0.00000000,358.48937988); //object(wglasssmash) (24)
	CreateObject(1649,1469.93847656,-1759.62890625,24.68421745,0.00000000,0.00000000,358.48937988); //object(wglasssmash) (25)
	CreateObject(1649,1469.93847656,-1759.62890625,27.93422127,0.00000000,0.00000000,358.48937988); //object(wglasssmash) (26)
	CreateObject(1649,1486.63256836,-1759.90270996,18.18421745,0.00000000,0.00000000,359.98937988); //object(wglasssmash) (27)
	CreateObject(1649,1486.63183594,-1759.90234375,21.45922470,0.00000000,0.00000000,359.98901367); //object(wglasssmash) (28)
	CreateObject(1649,1486.63183594,-1759.90234375,24.70922470,0.00000000,0.00000000,359.98901367); //object(wglasssmash) (29)
	CreateObject(1649,1486.63183594,-1759.90234375,27.98422813,0.00000000,0.00000000,359.98901367); //object(wglasssmash) (30)
	CreateObject(1649,1492.19726562,-1759.93688965,18.18421745,0.00000000,0.00000000,359.98901367); //object(wglasssmash) (31)
	CreateObject(1649,1492.28881836,-1759.84008789,21.43421745,0.00000000,0.00000000,359.98901367); //object(wglasssmash) (32)
	CreateObject(1649,1492.34228516,-1759.78735352,24.68421745,0.00000000,0.00000000,359.98901367); //object(wglasssmash) (33)
	CreateObject(1649,1492.40771484,-1759.78930664,27.95922089,0.00000000,0.00000000,359.98901367); //object(wglasssmash) (34)
	CreateObject(1649,1481.17016602,-1759.99719238,21.45922470,0.00000000,0.00000000,359.98901367); //object(wglasssmash) (35)
	CreateObject(1649,1481.16992188,-1759.99707031,24.70922470,0.00000000,0.00000000,359.98901367); //object(wglasssmash) (36)
	CreateObject(1649,1481.16992188,-1759.99707031,27.98421669,0.00000000,0.00000000,359.98901367); //object(wglasssmash) (37)
	CreateObject(1649,1481.20446777,-1751.46337891,19.38421822,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (38)
	CreateObject(1649,1481.20410156,-1751.46289062,22.70921707,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (39)
	CreateObject(1649,1481.20410156,-1751.46289062,26.05921936,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (40)
	CreateObject(3261,1481.01342773,-1760.63940430,17.53125000,347.25445557,1.53790283,359.08938599); //object(grasshouse) (1)
	CreateObject(3261,1481.03051758,-1757.73364258,16.88125992,347.25036621,1.53259277,359.08813477); //object(grasshouse) (2)
	CreateObject(3261,1481.03491211,-1754.76855469,16.10624886,345.50097656,1.54397583,359.13647461); //object(grasshouse) (3)
	CreateObject(9833,1480.79455566,-1740.55712891,15.74941826,0.00000000,0.00000000,0.00000000); //object(fountain_sfw) (1)
	CreateObject(3472,1471.41479492,-1743.91625977,12.54687500,0.00000000,0.00000000,0.00000000); //object(circuslampost03) (1)
	CreateObject(3472,1493.39721680,-1743.67846680,12.54687500,0.00000000,0.00000000,0.00000000); //object(circuslampost03) (2)
	CreateObject(3461,1483.85571289,-1750.42187500,16.02032471,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (1)
	CreateObject(3461,1478.60119629,-1750.52917480,16.02032471,0.00000000,0.00000000,0.00000000); //object(tikitorch01_lvs) (2)
	CreateObject(3528,1481.67175293,-1749.59948730,22.09970093,0.00000000,0.00000000,88.00000000); //object(vgsedragon) (1)
	CreateObject(982,1507.00842285,-1726.82702637,13.23042965,0.00000000,0.00000000,90.00000000); //object(fenceshit) (1)
	CreateObject(982,1481.38745117,-1726.77160645,13.23042965,0.00000000,0.00000000,90.00000000); //object(fenceshit) (2)
	CreateObject(982,1455.89855957,-1726.70019531,13.23042965,0.00000000,0.00000000,90.00000000); //object(fenceshit) (3)
	CreateObject(982,1435.19445801,-1703.10229492,13.23042965,0.00000000,0.00000000,181.00000000); //object(fenceshit) (4)
	CreateObject(982,1434.95361328,-1680.68005371,13.23042965,0.00000000,0.00000000,180.24464417); //object(fenceshit) (5)
	CreateObject(982,1434.86572266,-1655.10363770,13.23042965,0.00000000,0.00000000,180.24169922); //object(fenceshit) (6)
	CreateObject(982,1434.67834473,-1629.52868652,13.23042965,0.00000000,0.00000000,180.24169922); //object(fenceshit) (7)
	CreateObject(982,1434.67468262,-1618.33593750,13.23042965,0.00000000,0.00000000,180.24169922); //object(fenceshit) (8)
	CreateObject(982,1458.77270508,-1597.87902832,13.23042965,0.00000000,0.00000000,270.49169922); //object(fenceshit) (9)
	CreateObject(982,1506.67065430,-1598.03039551,13.23042965,0.00000000,0.00000000,269.48889160); //object(fenceshit) (11)
	CreateObject(982,1481.10693359,-1597.89843750,13.23042965,0.00000000,0.00000000,269.48364258); //object(fenceshit) (12)
	CreateObject(982,1523.88940430,-1618.70727539,13.23042965,0.00000000,0.00000000,0.23364258); //object(fenceshit) (13)
	CreateObject(982,1523.89880371,-1642.65734863,13.23042965,0.00000000,0.00000000,0.23071289); //object(fenceshit) (14)
	CreateObject(982,1523.94433594,-1701.96435547,13.23042965,0.00000000,0.00000000,0.23071289); //object(fenceshit) (15)
	CreateObject(982,1523.96826172,-1708.38342285,13.23042965,0.00000000,0.00000000,0.23071289); //object(fenceshit) (16)
	CreateObject(983,1509.11303711,-1663.58435059,13.23042965,0.00000000,0.00000000,270.00000000); //object(fenceshit3) (1)
	CreateObject(983,1521.11193848,-1601.00878906,13.23042965,0.00000000,0.00000000,27.49826050); //object(fenceshit3) (2)
	CreateObject(984,1440.15087891,-1601.66552734,13.18355465,0.00000000,0.00000000,304.75000000); //object(fenceshit2) (1)
	CreateObject(984,1439.10693359,-1721.28588867,13.18355465,0.00000000,0.00000000,35.24975586); //object(fenceshit2) (2)
	CreateObject(18284,1520.44592285,-1680.30944824,15.49171448,0.00000000,0.00000000,0.00000000); //object(cw_tscanopy) (1)
	CreateObject(18284,1520.45507812,-1663.79333496,15.51671410,0.00000000,0.00000000,0.00000000); //object(cw_tscanopy) (2)
	CreateObject(4882,1529.94323730,-1645.84558105,17.62474442,0.00000000,0.00000000,91.00000000); //object(lasbrid1_las) (1)
	CreateObject(3510,1520.82458496,-1602.03161621,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (2)
	CreateObject(3510,1497.59008789,-1599.46093750,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (4)
	CreateObject(3510,1473.82824707,-1599.26733398,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (5)
	CreateObject(3510,1440.13146973,-1602.91870117,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (7)
	CreateObject(3510,1436.03759766,-1626.47644043,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (8)
	CreateObject(3510,1436.07385254,-1649.82202148,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (10)
	CreateObject(3510,1436.07812500,-1673.69567871,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (12)
	CreateObject(3510,1436.46423340,-1696.57849121,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (13)
	CreateObject(3510,1440.82556152,-1721.36706543,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (15)
	CreateObject(3510,1464.21875000,-1725.86779785,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (16)
	CreateObject(3510,1487.56188965,-1725.99157715,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (19)
	CreateObject(3510,1521.36181641,-1723.26464844,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (22)
	CreateObject(3510,1523.26037598,-1692.00622559,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (24)
	CreateObject(3510,1522.60131836,-1607.60034180,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (25)
	CreateObject(3510,1523.02038574,-1631.29260254,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (27)
	CreateObject(3510,1522.96069336,-1654.09960938,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (28)
	CreateObject(982,1516.14843750,-1676.12451172,13.18043041,0.00000000,0.00000000,0.23071289); //object(fenceshit) (17)
	CreateObject(983,1522.04199219,-1724.13769531,13.23042965,0.00000000,0.00000000,321.99829102); //object(fenceshit3) (3)
	CreateObject(1361,1515.80688477,-1663.33447266,13.29021835,0.00000000,0.00000000,0.00000000); //object(cj_bush_prop2) (1)
	CreateObject(1361,1512.72302246,-1663.46044922,13.29021835,0.00000000,0.00000000,0.00000000); //object(cj_bush_prop2) (2)
	CreateObject(3660,1509.41015625,-1599.07299805,15.19994259,0.00000000,0.00000000,0.00000000); //object(lasairfbed_las) (1)
	CreateObject(3660,1485.93493652,-1598.86511230,15.19994259,0.00000000,0.00000000,0.00000000); //object(lasairfbed_las) (2)
	CreateObject(3660,1462.10449219,-1599.26025391,15.19994259,0.00000000,0.00000000,0.00000000); //object(lasairfbed_las) (4)
	CreateObject(3510,1450.45629883,-1599.44897461,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (29)
	CreateObject(3660,1436.30017090,-1615.41149902,15.19994259,0.00000000,0.00000000,270.00000000); //object(lasairfbed_las) (5)
	CreateObject(3660,1436.23388672,-1637.91113281,15.19994259,0.00000000,0.00000000,269.99450684); //object(lasairfbed_las) (6)
	CreateObject(3660,1436.67041016,-1661.87683105,15.19994259,0.00000000,0.00000000,269.99450684); //object(lasairfbed_las) (7)
	CreateObject(3660,1436.67700195,-1685.21716309,15.19994259,0.00000000,0.00000000,269.99450684); //object(lasairfbed_las) (8)
	CreateObject(3660,1437.35571289,-1707.19897461,15.19994259,0.00000000,0.00000000,269.99450684); //object(lasairfbed_las) (9)
	CreateObject(3660,1453.09924316,-1725.05627441,15.19994259,0.00000000,0.00000000,359.74450684); //object(lasairfbed_las) (10)
	CreateObject(3660,1476.10815430,-1725.02355957,15.19994259,0.00000000,0.00000000,359.74182129); //object(lasairfbed_las) (11)
	CreateObject(3660,1500.02978516,-1725.14355469,15.19994259,0.00000000,0.00000000,359.74182129); //object(lasairfbed_las) (12)
	CreateObject(3660,1522.16381836,-1710.54956055,15.19994259,0.00000000,0.00000000,89.99182129); //object(lasairfbed_las) (13)
	CreateObject(3660,1507.01013184,-1725.16931152,15.19994259,0.00000000,0.00000000,359.74182129); //object(lasairfbed_las) (14)
	CreateObject(3660,1522.17358398,-1702.79492188,15.19994259,0.00000000,0.00000000,89.98901367); //object(lasairfbed_las) (15)
	CreateObject(3660,1522.44750977,-1642.75036621,15.19994259,0.00000000,0.00000000,89.98901367); //object(lasairfbed_las) (16)
	CreateObject(3660,1522.46093750,-1619.89526367,15.19994259,0.00000000,0.00000000,89.98901367); //object(lasairfbed_las) (17)
	CreateObject(16152,1515.08398438,-1680.49926758,13.04687500,0.00000000,0.00000000,180.00000000); //object(ufo_booths) (1)
	CreateObject(16152,1515.09863281,-1671.15600586,13.04687500,0.00000000,0.00000000,179.99450684); //object(ufo_booths) (2)
	CreateObject(16151,1508.33776855,-1672.77160645,13.42189217,0.00000000,0.00000000,188.00000000); //object(ufo_bar) (1)
	CreateObject(638,1516.39453125,-1672.46203613,13.49390888,0.00000000,0.00000000,0.00000000); //object(kb_planter_bush) (2)
	CreateObject(638,1516.39758301,-1669.80310059,13.49390888,0.00000000,0.00000000,0.00000000); //object(kb_planter_bush) (3)
	CreateObject(638,1516.40026855,-1667.14562988,13.49390888,0.00000000,0.00000000,0.00000000); //object(kb_planter_bush) (4)
	CreateObject(638,1516.43737793,-1665.05114746,13.49390888,0.00000000,0.00000000,0.00000000); //object(kb_planter_bush) (5)
	CreateObject(638,1516.40795898,-1675.14807129,13.49390888,0.00000000,0.00000000,0.00000000); //object(kb_planter_bush) (6)
	CreateObject(638,1516.40173340,-1677.80322266,13.49390888,0.00000000,0.00000000,0.00000000); //object(kb_planter_bush) (7)
	CreateObject(638,1516.39440918,-1680.45898438,13.49390888,0.00000000,0.00000000,0.00000000); //object(kb_planter_bush) (8)
	CreateObject(638,1516.40454102,-1683.14465332,13.49390888,0.00000000,0.00000000,0.00000000); //object(kb_planter_bush) (9)
	CreateObject(638,1516.38916016,-1685.82299805,13.49390888,0.00000000,0.00000000,0.00000000); //object(kb_planter_bush) (10)
	CreateObject(638,1516.37646484,-1688.50073242,13.49390888,0.00000000,0.00000000,0.00000000); //object(kb_planter_bush) (11)
	CreateObject(638,1517.37353516,-1690.10998535,13.49390888,0.00000000,0.00000000,90.00000000); //object(kb_planter_bush) (12)
	CreateObject(638,1519.37817383,-1690.13671875,13.44390965,0.00000000,0.00000000,90.00000000); //object(kb_planter_bush) (13)
	CreateObject(638,1522.03247070,-1690.10827637,13.44390965,0.00000000,0.00000000,90.00000000); //object(kb_planter_bush) (14)
	CreateObject(638,1520.01855469,-1652.14624023,13.44390965,0.00000000,0.00000000,90.00000000); //object(kb_planter_bush) (15)
	CreateObject(638,1517.35986328,-1652.15283203,13.44390965,0.00000000,0.00000000,90.00000000); //object(kb_planter_bush) (16)
	CreateObject(638,1511.01940918,-1663.18395996,13.44390965,0.00000000,0.00000000,90.00000000); //object(kb_planter_bush) (17)
	CreateObject(638,1514.75585938,-1652.15234375,13.44390965,0.00000000,0.00000000,90.00000000); //object(kb_planter_bush) (18)
	CreateObject(638,1512.18493652,-1652.15710449,13.44390965,0.00000000,0.00000000,90.00000000); //object(kb_planter_bush) (19)
	CreateObject(638,1510.43090820,-1652.15478516,13.44390965,0.00000000,0.00000000,90.00000000); //object(kb_planter_bush) (20)
	CreateObject(638,1508.36474609,-1663.18603516,13.44390965,0.00000000,0.00000000,90.00000000); //object(kb_planter_bush) (21)
	CreateObject(638,1507.10119629,-1663.18884277,13.44390965,0.00000000,0.00000000,90.00000000); //object(kb_planter_bush) (22)
	CreateObject(979,1537.65344238,-1668.41162109,13.34022045,0.00000000,0.00000000,90.00000000); //object(sub_roadleft) (2)
	CreateObject(979,1534.56274414,-1659.01635742,13.34022045,0.00000000,0.00000000,90.00000000); //object(sub_roadleft) (3)
	CreateObject(979,1537.67285156,-1677.59545898,13.34022045,0.00000000,0.00000000,90.00000000); //object(sub_roadleft) (4)
	CreateObject(979,1534.66992188,-1686.14721680,13.34022045,0.00000000,0.00000000,90.00000000); //object(sub_roadleft) (5)
	CreateObject(1364,1538.81079102,-1666.30578613,13.33436775,0.00000000,0.00000000,92.00000000); //object(cj_bush_prop) (1)
	CreateObject(1364,1538.94555664,-1679.54174805,13.33436775,0.00000000,0.00000000,91.99951172); //object(cj_bush_prop) (2)
	CreateObject(1364,1538.76660156,-1673.00671387,13.33436775,0.00000000,0.00000000,91.99951172); //object(cj_bush_prop) (4)
	CreateObject(1361,1538.78613281,-1676.27697754,13.29021835,0.00000000,0.00000000,0.00000000); //object(cj_bush_prop2) (3)
	CreateObject(1361,1538.77978516,-1669.59826660,13.29021835,0.00000000,0.00000000,0.00000000); //object(cj_bush_prop2) (4)
	CreateObject(3510,1535.80139160,-1682.49743652,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (30)
	CreateObject(3510,1536.00451660,-1662.98059082,12.54687500,0.00000000,0.00000000,0.00000000); //object(vgsn_nitree_r02) (31)
	CreateObject(7423,1482.62841797,-1750.80505371,12.48478889,0.00000000,0.00000000,89.75000000); //object(glfcrsgate1_vgs) (1)
	CreateObject(7504,1418.42846680,-1786.87390137,13.93559265,0.00000000,0.00000000,268.50006104); //object(glfcrsgate2_vgn) (3)
	CreateObject(7504,1417.79040527,-1811.82385254,13.93559265,0.00000000,0.00000000,268.49487305); //object(glfcrsgate2_vgn) (4)
	return 1;
}
public OnGameModeExit()
{
    return 1;
}

public OnPlayerConnect(playerid)
{
	SendClientMessage(playerid, 0x63E01BFF, "============================ = Bem Vindo = ================================");
	SendClientMessage(playerid, -1, " ");
	SendClientMessage(playerid, -1, "Bem vindo, Policia x Traficante quem й o melhor? Escolha sua Team e Divirta-se");
	SendClientMessage(playerid, -1, " ");
	SendClientMessage(playerid, 0x63E01BFF, "===========================================================================");
    ClosedSelection[playerid]=0;
    ApplyAnimation(playerid,"BOMBER","null",0.0,0,0,0,0,0);
    ApplyAnimation(playerid,"SHOP","null",0.0,0,0,0,0,0);
    ApplyAnimation(playerid,"RAPPING","null",0.0,0,0,0,0,0);
    ApplyAnimation(playerid,"BEACH","null",0.0,0,0,0,0,0);
    ApplyAnimation(playerid,"SMOKING","null",0.0,0,0,0,0,0);
    ApplyAnimation(playerid,"FOOD","null",0.0,0,0,0,0,0);
    ApplyAnimation(playerid,"ON_LOOKERS","null",0.0,0,0,0,0,0);
    ApplyAnimation(playerid,"DEALER","null",0.0,0,0,0,0,0);
    ApplyAnimation(playerid,"CARRY","null",0.0,0,0,0,0,0);
    ApplyAnimation(playerid,"COP_AMBIENT","null",0.0,0,0,0,0,0);
    ApplyAnimation(playerid,"PARK","null",0.0,0,0,0,0,0);
    ApplyAnimation(playerid,"INT_HOUSE","null",0.0,0,0,0,0,0);
    ApplyAnimation(playerid,"FOOD","null",0.0,0,0,0,0,0);
    ApplyAnimation(playerid,"PED","null",0.0,0,0,0,0,0);
    SkinClass[playerid][SpawnDance] = true;
    ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
    if(donoMorro == 0)
    {
         GangZoneShowForPlayer(playerid, GZMorro, 0xC0C0C0AA);
    }
	pMaconha[playerid] = 0;
    pCocaina[playerid] = 0;
    pCrack[playerid] = 0;
    TextDrawShowForPlayer(playerid, Site);
    TextDrawShowForPlayer(playerid, Reloginho1);
	TextDrawShowForPlayer(playerid, Reloginho2);
	new Nome[MAX_PLAYER_NAME];
	GetPlayerName(playerid, Nome, sizeof(Nome));
	new String[260];
	format(String, sizeof(String), CONTAS, Nome);
	if(!dini_Exists(String))
	{
		format(String, sizeof(String), "{FFFFFF}Bem vindo ao {00FF33}Policia x {0026FF}Ladrгo\n\n{FFFFFF}Status de Sua Conta\n\nStatus: {FF0000}Nгo Registrado\n\n{FFFFFF}Nome: {FF0000}%s\n\n{FFFFFF}Digite uma senha para Registrar", Nome);
		ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro", String, "Registrar", "Cancelar");
	}
	else
	{
		format(String, sizeof(String), "{FFFFFF}Bem vindo ao {00FF33}Policia x {0026FF}Ladrгo\n\n{FFFFFF}Status de Sua Conta\n\nStatus: {FF0000}Registrado\n\n{FFFFFF}Nome: {FF0000}%s\n\n{FFFFFF}Digite uma senha para Continuar", Nome);
        ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Registro", String, "Logar", "Cancelar");
	}
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    KillTimer(SkinClass[playerid][SpawnTimer] );
    if(ProvocoMorro[playerid] == 1)
    {
         GangZoneStopFlashForAll(GZMorro);
         GangZoneShowForAll(GZMorro, 0xFFFFFF96);
         GuerranoMorro = 0;
         ProvocoMorro[playerid] = 0;
         donoMorro = 0;
         Dominando[playerid] = 0;
         KillTimer(TempoGuerraMorro);
    }
	pMaconha[playerid] = 0;
    pCocaina[playerid] = 0;
    pCrack[playerid] = 0;
    SalvarPlayer(playerid);
    return 1;
}
public OnPlayerSpawn(playerid)
{
    ClosedSelection[playerid]=0;
    SkinClass[playerid][SpawnAngle] = 0.0;
    SkinClass[playerid][SpawnDance] = true;
    KillTimer( SkinClass[playerid][SpawnTimer] );
    PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
    SetCameraBehindPlayer(playerid);
	if(gTeam[playerid] == Policia)
	{
		SetPlayerPos(playerid, 1543.9930,-1632.3235,13.3828);
  		SetPlayerColor(playerid, 0x597AFFFF);
    	SetPlayerInterior(playerid, 0);
    }
	if(gTeam[playerid] == Traficante)
	{
  		SetPlayerColor(playerid, 0x83FF59FF);
    	SetPlayerPos(playerid, 2210.2405,-999.7190,68.2422);
    	SetPlayerInterior(playerid, 0);
    }
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    ShowPlayerDialog(playerid, escolher, DIALOG_STYLE_MSGBOX,"Escolha!","{FFFFFF}Aqui й um {940EED}modo {FFFFFF}mais maneiro, estilo vida real\n\n{FFFFFF}Para Virar {940EED}Policia {FFFFFF}clique em {940EED}Policia\n\n{FFFFFF}Para Virar {940EED}Traficante {FFFFFF}clique em {940EED}Traficante","Policial","Traficante");
	return 1;
}


public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
	if(gTeam[playerid] == Traficante)
	{
		SendClientMessage(playerid, 0x63E01BFF, "Vocк foi preso");
	    SetPlayerPos(playerid, 264.0141,82.0856,1001.0391);
        SetTimer("Solto", 5000, true);
	}
    if(GetPlayerHealth(playerid,Health) > 0)
    {
        HealthDropado = GetPlayerHealth(playerid,Health);
        new Float:x,Float:y,Float:z;
        GetPlayerPos(playerid,x,y,z);
        Drop = CreatePickup(1240,4,x,y,z-0.8);
    }
    if(ProvocoMorro[playerid] == 1)
    {
         GangZoneStopFlashForAll(GZMorro);
         GangZoneShowForAll(GZMorro, 0xFFFFFF96);
         GuerranoMorro = 0;
         ProvocoMorro[playerid] = 0;
         donoMorro = 0;
         Dominando[playerid] = 0;
         KillTimer(TempoGuerraMorro);
    }
	if(IsPlayerConnected(killerid))
	{
		Matou[killerid]++;
	}
	Morreu[playerid]++;
	return 1;
}

public OnPlayerText(playerid, text[])
{
	if(Vip[playerid] == 1)
	{
		new string[256];
		format(string,sizeof(string),"[{FF0000}Vip{FFFFFF}] {B82EAE}%s",text);
		SendPlayerMessageToAll(playerid,string);
	}
    new LipeStrondaa[MAX_CHATBUBBLE_LENGTH+1];
    format(LipeStrondaa, sizeof(LipeStrondaa), "%s", text);
    SetPlayerChatBubble(playerid, LipeStrondaa, 0x00BFFFFF, 70.0,10000);
    return 1;
}


public OnPlayerCommandText(playerid, cmdtext[])
{
	if(!strcmp("/mudarluta", cmdtext, true))
	{
		if(Vip[playerid] < 1) return SendClientMessage(playerid, -1, "Vocк nгo й {FF0091}Vip");
        if(Vip[playerid] == 1)
	    ShowPlayerDialog(playerid, FIGHTMENU, DIALOG_STYLE_LIST, "\tMenu de {00D900}Lutas", "{00D900}Luta 1\n{00D900}Luta 2\n{00D900}Luta 3\n{00D900}Luta 4\n{00D900}Luta 5", "Selecionar", "Cancelar");
		return 1;
	}
	if (!strcmp("/reparar", cmdtext))
    {
		if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo estб em um veiculo");
		if(Vip[playerid] < 1) return SendClientMessage(playerid, -1, "Vocк nгo й {FF0091}Vip");
        if(Vip[playerid] == 1)
		RepairVehicle(GetPlayerVehicleID(playerid));
        SendClientMessage(playerid, 0xFFFFFFFF, "Okay, seu veiculo foi reparado");
        return 1;
    }
	if (strcmp(cmdtext, "/vips", true) == 0)
	{
        if(IsPlayerConnected(playerid))
	    {
			new pName[MAX_PLAYER_NAME];
			new string[300];
			SendClientMessage(playerid, -1, "|______________ Vips {32ABAD}Online {FFFFFF}______________|");
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(IsPlayerConnected(i))
				{
				    if(Vip[playerid] == 1)
				    {
						GetPlayerName(i, pName, sizeof(pName));
						format(string, 128, "Vip: {32ABAD}%s {FFFFFF} [ {32ABAD}Colaborador {FFFFFF}]", pName);
						SendClientMessage(playerid, 0xFFFFFFFF, string);
					}
				}
			}
		}
		return 1;
	}
	if(strcmp(cmdtext, "/jetpackvip", true) == 0)
    {
		new pName[MAX_PLAYERS];
    	new string[200];
        if(Vip[playerid] < 1) return SendClientMessage(playerid, -1, "Vocк nгo й {FF0091}Vip");
        if(Vip[playerid] == 1)
		{
			SendClientMessage(playerid, -1, "Vocк Pegou seu JetPack {FF0000}Vip");
            SetPlayerSpecialAction(playerid, 2); // JETPACK
            GetPlayerName(playerid, pName, sizeof(pName));
            format(string, sizeof(string), "{FF0000}%s {FFFFFF}Pegou seu {FF0000}JetPack {FFFFFF}de Vip", pName);
            SendClientMessageToAll(CorPolicia, string);
        }
		return true;
	}
    if(strcmp(cmdtext, "/ajuda", true) == 0)
    {
        ShowPlayerDialog(playerid, AJUDAMENU, DIALOG_STYLE_LIST, "\tCentral de{00D900}Ajuda", "Ajuda Geral\nAjuda Vip\nAjuda Server\nComandos", "Selecionar", "Cancelar");
        return 1;
    }
	if(strcmp(cmdtext, "/kitvip", true) == 0)
    {
		new pName[MAX_PLAYERS];
    	new string[200];
		if(Vip[playerid] < 1) return SendClientMessage(playerid, -1, "Vocк nгo й {FF0091}Vip");
        if(Vip[playerid] == 1)
		{
			SendClientMessage(playerid, -1, "Vocк pegou seu kit de {FF0000}Vip :D");
			SetPlayerHealth(playerid, 100.0);
			SetPlayerArmour(playerid, 100.0);
			GivePlayerWeapon(playerid, 24, 9999);
			GivePlayerWeapon(playerid, 31, 9999);
			GivePlayerWeapon(playerid, 26, 9999);
			GivePlayerWeapon(playerid, 34, 9999);
			GivePlayerWeapon(playerid, 38, 9999);
			GivePlayerWeapon(playerid, 34, 9999);
			GivePlayerWeapon(playerid, 35, 9999);
			GivePlayerMoney(playerid, 100000);
			GetPlayerName(playerid, pName, sizeof(pName));
			format(string, sizeof(string), "{FF0000}%s {FFFFFF}Pegou seu {FF0000}Kit {FFFFFF}de Vip", pName);
			SendClientMessageToAll(CorPolicia, string);
        }
		return true;
	}
    if(strcmp(cmdtext, "/dominar", true) == 0 || strcmp(cmdtext, "/do", true) == 0)
    {
        if(gTeam[playerid] == Traficante)
        {
             if(!IsPlayerInMorro(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo estб em nenhum territуrio!");
             if(Dominando[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Dominando um Territorio.");
             if(GuerranoMorro == 1) return SendClientMessage(playerid, -1, "Jб estб tendo uma guerra nesse territorio.");
             GetPlayerName(playerid, pNome, MAX_PLAYER_NAME);
             format(Celulas, sizeof(Celulas), "%s e os Traficantes Estгo Dominando o Morro",pNome);
             SendClientMessageToAll(CorTraficante, Celulas);
             SendClientMessage(playerid, -1, "Fique esperto, Todos os Membros Foi Avisados!");
             SendClientMessage(playerid, -1, "Espere 1 minuto para dominar estб area.");
             GangZoneFlashForAll(GZMorro, CorTraficante);
             Dominando[playerid] = 1;
             ProvocoMorro[playerid] = 1;
             GuerranoMorro = 1;
             TempoGuerraMorro = SetTimerEx("GuerraMorro", 60000, 0, "i", playerid);
             return true;
        }
        if(gTeam[playerid] == Policia)
        {
             if(!IsPlayerInMorro(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo estб em nenhum territуrio!");
             if(Dominando[playerid] == 1) return SendClientMessage(playerid, -1, "Vocк Jб Estб Dominando um Territorio.");
             if(GuerranoMorro == 1) return SendClientMessage(playerid, -1, "Jб estб tendo uma guerra nesse territorio.");
             GetPlayerName(playerid, pNome, MAX_PLAYER_NAME);
             format(Celulas, sizeof(Celulas), "%s e a Policia Militar Estгo Dominando o Morro",pNome);
             SendClientMessageToAll(CorPolicia, Celulas);
             SendClientMessage(playerid, -1, "Fique esperto, Todos os Membros Foi Avisados!");
             SendClientMessage(playerid, -1, "Espere 1 minuto para dominar estб area.");
             GangZoneFlashForAll(GZMorro, CorPolicia);
             Dominando[playerid] = 1;
             ProvocoMorro[playerid] = 1;
             GuerranoMorro = 1;
             TempoGuerraMorro = SetTimerEx("GuerraMorro", 60000, 0, "i", playerid);
             return true;
        }
        return true;
    }
    if(strcmp(cmdtext, "/comprarbomba", true) == 0)
    {
		if(Vip[playerid] < 1) return SendClientMessage(playerid, -1, "Vocк nгo й {FF0091}Vip {FFFFFF}ou {FF0091}Traficante");
        if(Vip[playerid] == 1 && gTeam[playerid] == Traficante)
		ShowPlayerDialog(playerid, DIALOG_COMPRARBOMBA, DIALOG_STYLE_LIST, "Bomba", "Bomba R$(-10000)", "{FF0091}Comprar", "{FFFFFF}Cancelar");
        return 1;
    }
    if(strcmp(cmdtext, "/usarbomba", true) == 0)
    {
        if(Bomba[playerid] != -1) return SendClientMessage(playerid, 0xFF0000FF, "Vocк nгo tem uma bomba.");
		new Float:Pos[3];
        GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
        SendClientMessage(playerid, 0xFFFF00FF, "A bomba irб explodir em 10 segundos ! Afaste-se daqui imediatamente.");
        Bomba[playerid] = CreateObject(1654, Pos[0]+1, Pos[1], Pos[2]-0.8, 0, 0, 0);
        SetTimerEx("Explodir", 10000, false, "ddfff", playerid, Bomba[playerid], Pos[0]+1, Pos[1], Pos[2]);
        Bomba[playerid] = -2;
        GameTextForPlayer(playerid, "Aguarde", 10000, 6);
        return 1;
    }
	if (strcmp("/equipar", cmdtext, true, 8) == 0)
	{
		if(gTeam[playerid] == Policia)
		{
        	if(IsPlayerInRangeOfPoint(playerid,10, 1580.8081,-1634.1422,13.5620))
			{
  				ShowPlayerDialog(playerid, 456, DIALOG_STYLE_LIST, "Monte seu armamento", "{37B04D}Pistolas\nShotguns\n{37B04D}Rifles\nSub-Metralhadoras\n{37B04D}Outras\nColete\n{37B04D}Vida", "Selecionar", "Cancelar");
			}
		}
		if(gTeam[playerid] == Traficante)
		{
        	if(IsPlayerInRangeOfPoint(playerid,10, 2183.7771,-1015.6352,62.8389))
			{
  				ShowPlayerDialog(playerid, 456, DIALOG_STYLE_LIST, "Monte seu armamento", "{37B04D}Pistolas\nShotguns\n{37B04D}Rifles\nSub-Metralhadoras\n{37B04D}Outras\nColete\nVida", "Selecionar", "Cancelar");
			}
		}
		return 1;
	}
	if (strcmp("/status", cmdtext, true, 8) == 0)
	{
    	Status(playerid);
		return 1;
	}
	if (strcmp("/comprardrogas", cmdtext, true, 10) == 0)
	{
		if (IsPlayerInRangeOfPoint(playerid,10, 1916.8116,-1409.7767,13.5703) || IsPlayerInRangeOfPoint(playerid,10, 1956.4116,-1241.7155,19.8134) || IsPlayerInRangeOfPoint(playerid,10, 2183.4854,-989.2636,72.3984))
		{
			ShowPlayerDialog(playerid, DIALOG_DROGAS, DIALOG_STYLE_LIST, "Menu de Drogas", "Maconha\nCrack\nCocaнna", "Selecionar", "Cancelar");
		}
    	else SendClientMessage(playerid,0xFFFF00AA,"Vocк nгo estб no ponto de Drogas");
    	return 1;
	}
	if (strcmp("/usardrogas", cmdtext, true, 10) == 0)
	{
		if (pMaconha[playerid] >= 1 || pCrack[playerid] >= 1 || pCocaina[playerid] >= 1)
  		{
   			pMaconha[playerid]--;
   			ShowPlayerDialog(playerid, DIALOG_ESCOLHERDROGAS, DIALOG_STYLE_LIST, "Escolha a Droga que quer usar", "Maconha\nCrack\nCocaнna", "Selecionar", "Cancelar");
		}
    	else SendClientMessage(playerid,0xFFFF00AA,"Vocк nгo tem drogas.");
    	return 1;
    }
	if (!strcmp("/pontodrogas", cmdtext, true))
	{
		SendClientMessage(playerid, CorPolicia, ">> Use: /pontodrogas1 || /pontodrogas2 || /pontodrogas3<<");
		return true;
	}
	if (!strcmp("/pontodrogas1", cmdtext, true))
	{
		SendClientMessage(playerid, -1, ">> ================================= <<");
		SendClientMessage(playerid, CorPolicia, ">> Ponto de Drogas1 Marcado no Mapa <<");
		SendClientMessage(playerid, -1, ">> ================================= <<");
		SetPlayerCheckpoint(playerid,1916.8116,-1409.7767,13.5703,05);
		return true;
	}

	if (!strcmp("/pontodrogas2", cmdtext, true))
	{
		SendClientMessage(playerid, -1, ">> ================================= <<");
		SendClientMessage(playerid, CorPolicia, ">> Ponto de Drogas 2 Marcado no Mapa <<");
		SendClientMessage(playerid, -1, ">> ================================= <<");
		SetPlayerCheckpoint(playerid,1956.4116,-1241.7155,19.8134,05);
		return true;
    }
    if (!strcmp("/pontodrogas3", cmdtext, true))
    {
		SendClientMessage(playerid, -1, ">> ================================= <<");
		SendClientMessage(playerid, CorPolicia, ">> Ponto de Drogas 3 Marcado no Mapa <<");
		SendClientMessage(playerid, -1, ">> ================================= <<");
		SetPlayerCheckpoint(playerid,2183.4854,-989.2636,72.3984,05);
		return true;
    }
	if (strcmp("/creditos", cmdtext, true, 10) == 0)
   	{
		new creditos[300];
		strins(creditos,"\n",strlen(creditos));
		strins(creditos,"{7491F6}DjBruninho\n",strlen(creditos));
		strins(creditos,"{7491F6}JFS\n",strlen(creditos));
		strins(creditos,"{7491F6}Shawdoww5\n",strlen(creditos));
		strins(creditos,"{7491F6}FaelDK\n",strlen(creditos));
		strins(creditos,"{7491F6}LipeStronda\n",strlen(creditos));
		strins(creditos,"\n",strlen(creditos));
		ShowPlayerDialog(playerid,8439, DIALOG_STYLE_MSGBOX, "{F60000} -----------  Crйditos  ----------- ",creditos, "Fechar", ""); // 1 BOTAO APENAR
		return 1;
	}
 	return 0;
}

public GuerraMorro(playerid)
{
      if(gTeam[playerid] == Traficante)
      {
          if(ProvocoMorro[playerid] == 1)
          {
                if(IsPlayerInMorro(playerid))
                {
                    GetPlayerName(playerid, pNome, MAX_PLAYER_NAME);
                    format(Celulas, sizeof(Celulas), "%s e os Traficantes Dominaram a GangZone do Morro.",pNome);
                    SendClientMessageToAll(CorTraficante, Celulas);
                    SendClientMessage(playerid, -1, "Vocк Dominou a GangZone do Morro.");
                    GangZoneStopFlashForAll(GZMorro);
                    GangZoneShowForAll(GZMorro, CorTraficante);
                    Dominando[playerid] = 0;
                    ProvocoMorro[playerid] = 0;
                    GuerranoMorro = 0;
                    donoMorro = 1;
                    KillTimer(TempoGuerraMorro);
                    return true;
                }
                else
                {
                   SendClientMessage(playerid, -1, "Vocк nгo estб no Morro.");
                   Dominando[playerid] = 0;
                   GangZoneStopFlashForAll(GZMorro);
                   GangZoneShowForAll(GZMorro, 0xFFFFFF96);
                   ProvocoMorro[playerid] = 0;
                   GuerranoMorro = 0;
                   donoMorro = 0;
                   KillTimer(TempoGuerraMorro);
                   return true;
                }
          }
          return true;
      }
      if(gTeam[playerid] == Policia)
      {
          if(ProvocoMorro[playerid] == 1)
          {
            if(IsPlayerInMorro(playerid))
            {
                   GetPlayerName(playerid, pNome, MAX_PLAYER_NAME);
                   format(Celulas, sizeof(Celulas), "%s e a Policia Militar Dominaram o Morro.",pNome);
                   SendClientMessageToAll(CorPolicia, Celulas);
                   SendClientMessage(playerid, -1, "Vocк dominou o Morro.");
                   GangZoneStopFlashForAll(GZMorro);
                   GangZoneShowForAll(GZMorro, CorPolicia);
                   Dominando[playerid] = 0;
                   ProvocoMorro[playerid] = 0;
                   GuerranoMorro = 0;
                   donoMorro = 2;
                   KillTimer(TempoGuerraMorro);
                   return true;
            }
            else
            {
                   SendClientMessage(playerid, -1, "Vocк nгo estб no Morro.");
                   Dominando[playerid] = 0;
                   GangZoneStopFlashForAll(GZMorro);
                   GangZoneShowForAll(GZMorro, 0xFFFFFF96);
                   ProvocoMorro[playerid] = 0;
                   GuerranoMorro = 0;
                   donoMorro = 0;
                   KillTimer(TempoGuerraMorro);
                   return true;
            }
          }
          return true;
      }
      return true;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
    return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
    return 1;
}

public OnRconCommand(cmd[])
{
    return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    return 1;
}

public OnObjectMoved(objectid)
{
    return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == Drop)
    {
    	SetPlayerHealth(playerid,Health +HealthDropado);
    	DestroyPickup(Drop);
    }
    return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
    return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
    return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
    return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
    return 1;
}

public OnPlayerExitedMenu(playerid)
{
    return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
    return 1;
}

public OnPlayerUpdate(playerid)
{
    return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
    return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
    return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
    return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == DIALOG_ESCOLHERDROGAS)
	{
		if(response)
		{
  			if(listitem == 0)
			{
   				pMaconha[playerid]--;
   				GameTextForPlayer(playerid,"~w~Fumando Maconha~r~.~y~.~g~.", 3000,1);
   				ApplyAnimation(playerid,"SMOKING","M_smklean_loop",4.1,1,1,1,1,1);
   				SetTimer("FumandoMaconha",5000,false);
			}
			if(listitem == 1)
			{
   				pCrack[playerid]--;
   				GameTextForPlayer(playerid,"~w~Fumando Crack~r~.~y~.~g~.", 3000,1);
   				ApplyAnimation(playerid,"SMOKING","M_smklean_loop",4.1,1,1,1,1,1);
   				SetTimer("FumandoCrack",5000,false);
			}
  			if(listitem == 2)
			{
   				pCocaina[playerid]--;
   				GameTextForPlayer(playerid,"~w~Cheirando Cocaina~r~.~y~.~g~.", 3000,1);
   				ApplyAnimation(playerid,"SMOKING","M_smklean_loop",4.1,1,1,1,1,1);
   				SetTimer("CheirandoCocaina",5000,false);
			}
		}
		return 1;
	}
	if(dialogid == DIALOG_DROGAS)
	{
		if(response)
		{
  			if(listitem == 0)
			{
				ShowPlayerDialog(playerid,DIALOG_QUANTIAM,DIALOG_STYLE_INPUT,"Maconha - Digite a Quantidade","Digite a quantidade de Drogas abaixo:","Comprar","Sair");
			}
			if(listitem == 1)
			{
				ShowPlayerDialog(playerid,DIALOG_QUANTIAC,DIALOG_STYLE_INPUT,"Crack - Digite a Quantidade","Digite a quantidade de Drogas abaixo:","Comprar","Sair");
			}
  			if(listitem == 2)
			{
				ShowPlayerDialog(playerid,DIALOG_QUANTIACC,DIALOG_STYLE_INPUT,"Cocaнna - Digite a Quantidade","Digite a quantidade de Drogas abaixo:","Comprar","Sair");
			}
		}
		return 1;
	}
	if(dialogid == DIALOG_QUANTIAM)
	{
        if(!response)
			return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк cancelou a compra de Drogas");
        if(!strval(inputtext))
			return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк cancelou a compra de drogas");
        if(strval(inputtext) < 0 || strval(inputtext) > 299)
			return SendClientMessage(playerid, 0xFFFFFFFF, "[ERRO] quantia Invalida");
  		pMaconha[playerid] = strval(inputtext);
  		SendClientMessage(playerid, 0xFFFFFFFF,"Vocк Comprou Maconha");
  		GivePlayerMoney(playerid,strval(inputtext)*10);
  		return 1;
  	}
	if(dialogid == DIALOG_QUANTIAC)
	{
        if(!response)
			return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк cancelou a compra de Drogas");
        if(!strval(inputtext))
			return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк cancelou a compra de drogas");
        if(strval(inputtext) < 0 || strval(inputtext) > 299)
			return SendClientMessage(playerid, 0xFFFFFFFF, "[ERRO] quantia Invalida");
        pCrack[playerid] = strval(inputtext);
        SendClientMessage(playerid, 0xFFFFFFFF,"Vocк Comprou Crack");
        GivePlayerMoney(playerid,strval(inputtext)*10);
        return 1;
	}
	if(dialogid == DIALOG_QUANTIACC)
	{
        if(!response)
			return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк cancelou a compra de Drogas");
        if(!strval(inputtext))
			return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк cancelou a compra de drogas");
        if(strval(inputtext) < 0 || strval(inputtext) > 299)
			return SendClientMessage(playerid, 0xFFFFFFFF, "[ERRO] quantia Invalida");
        pCocaina[playerid] = strval(inputtext);
        SendClientMessage(playerid, 0xFFFFFFFF,"Vocк Comprou Cocaina");
        GivePlayerMoney(playerid,strval(inputtext)*10);
        return 1;
    }
    if(dialogid == DIALOG_COMPRARBOMBA)
    {
        if(listitem == 0)
        {
        	if(Bomba[playerid] != -2) return SendClientMessage(playerid, 0xFF0000FF, "Vocк jб tem uma bomba ( / Usarbomba ).");
			Bomba[playerid] = -1;
            SendClientMessage(playerid, -1, "Vocк Comprou uma Bomba Cuidado para nгo morrer {FF0000}( / Usarbomba )");
            GivePlayerMoney(playerid, -10000);
        }
        return 1;
    }
	if(dialogid == FIGHTMENU)
    {
        if(response)
        {
            if(listitem == 0)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
                SendClientMessage(playerid, -1, " Voce aprendeu um estilo de luta !");
            }
            else if(listitem == 1)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
                SendClientMessage(playerid, -1, " Voce aprendeu um estilo de luta !");
            }
            else if(listitem == 2)
            {
              SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
              SendClientMessage(playerid, -1, " Voce aprendeu um estilo de luta !");
            }
            else if(listitem == 3)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
                SendClientMessage(playerid, -1, " Voce aprendeu um estilo de luta !");
            }
            else if(listitem == 4)
            {
              SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
              SendClientMessage(playerid, -1, " Voce aprendeu um estilo de luta !");
            }
            else if(listitem == 5)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
            }
        }
    }
	if(dialogid == AJUDAMENU)
    {
        if(response)
        {
            if(listitem == 0)
            {
            SendClientMessage(playerid, -1,"Aqui й um modo mais legal, й tipo a vida real, so que й policia x Traficante");
            SendClientMessage(playerid, -1,"Vocк pode matar , traficar , dominar GZ , Ganhar dinheiro com assaltos etc");
			}
            else if(listitem == 1)
            {
                SendClientMessage(playerid, -1, "/kitivip , /reparar , /jetpackvip , /comprarbomba , /usarbomba"); // Ajuda Vip
            }
            else if(listitem == 2)
            {
				SendClientMessage(playerid, -1, "Aqui o server й o modo mais comum, estilo baseado em guerras de favelas"); // Ajuda Server
				SendClientMessage(playerid, -1, "Vocк pode /dominar os territorios do morro, etc.... Fale com um Administrador"); // Ajuda Server
            }
            else if(listitem == 3)
            {
                SendClientMessage(playerid, -1, "/comprarbomba , /usarbomba , /dominar ou /do , /mudarluta , /comprardrogas , /status , /equipar"); // comandos
				SendClientMessage(playerid, -1, "/usardrogas , /pontodrogas , /pontodrogas1 , /pontodrogas2 , /pontodrogas3 , /vips , /Creditos"); // comandos
            }
		}
    }
	if(dialogid == REGISTRO)
	{
		if(response)
		{
		    if(!strlen(inputtext))
		    {
				new Nome[MAX_PLAYER_NAME];
				GetPlayerName(playerid, Nome, sizeof(Nome));
				new String[260];
	        	format(String, sizeof(String), "{FFFFFF}Bem vindo ao {00FF33}Policia x {0026FF}Ladrгo\n\n{FFFFFF}Status de Sua Conta\n\nStatus: {FF0000}Nгo Registrado\n\n{FFFFFF}Nome: {FF0000}%s\n\n{FFFFFF}Digite uma senha para Registrar", Nome);
		        ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro", String, "Registrar", "Cancelar");
				SendClientMessage(playerid,0x1E90FFAA,"Senha invalida, digite uma senha vбlida");
				return 1;
			}
			new Nome[MAX_PLAYER_NAME];
			GetPlayerName(playerid, Nome, sizeof(Nome));
			new String[260];
			format(String, sizeof(String), CONTAS, Nome);
			dini_Create(String);
			dini_Set(String,"Senha",inputtext);
			dini_IntSet(String,"Dinheiro",0);
			dini_IntSet(String,"Level",0);
			dini_IntSet(String,"Matou",0);
			dini_IntSet(String,"Morreu",0);
			dini_IntSet(String,"Logou",0);
			dini_IntSet(String,"Membro",0);
			dini_IntSet(String,"Tutorial",0);
			dini_IntSet(String,"Vip",0);
			format(String, sizeof(String), "{FFFFFF}Bem vindo ao {00FF33}Policia x {0026FF}Ladrгo\n\n{FFFFFF}Status de Sua Conta\n\nStatus: {FF0000}Registrado\n\n{FFFFFF}Nome: {FF0000}%s\n\n{FFFFFF}Digite uma senha para Continuar", Nome);
   			ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Registro", String, "Logar", "Cancelar");
			return 1;
		}
        else
        {
            SendClientMessage(playerid, 0xFF0000AA, "Vocк Foi Kickado Porque Nгo Quis Se Registrar!!");
            Kick(playerid);
            return 1;
        }
    }
	if(dialogid == 456)
	{
	    if(!response)
	        return true;
		else
		{
	        switch (listitem)
			{
				case 0:
	            {
	            	ShowPlayerDialog(playerid, 951, DIALOG_STYLE_LIST, "Escolha Uma Pistola", "{053FED}Desert Eagle\nSilenciadora\n{053FED}9mm", "Selecionar", "Cancelar");
				}
				case 1:
	            {
					ShowPlayerDialog(playerid, 564, DIALOG_STYLE_LIST, "Escolha Uma Shotgun", "{053FED}Shotgun\nSawn-off Shotgun\n{053FED}Combat Shotgun", "Selecionar", "Cancelar");
				}
				case 2:
	            {
					ShowPlayerDialog(playerid, 654, DIALOG_STYLE_LIST, "Escolha Um Rifle", "{053FED}Country Rifle\nSniper Rifle\nAk47\nColt M4A1", "Selecionar", "Cancelar");
				}
				case 3:
	            {
					ShowPlayerDialog(playerid, 214, DIALOG_STYLE_LIST, "Escolha Um Sub-Metralhadora", "{053FED}Tec9\nMP5\n{053FED}Micro SMG", "Selecionar", "Cancelar");
				}
				case 4:
	            {
					ShowPlayerDialog(playerid, 489, DIALOG_STYLE_LIST, "Escolha Uma Arma", "{053FED}Knife\nPurple Dildo\n{053FED}Moto Serra\nGranada\n{053FED}Molotov Cocktail", "Selecionar", "Cancelar");
				}
				case 5:
	            {
					if(gTeam[playerid] == Policia)
					{
						SetPlayerArmour(playerid, 100.0);
					}
					if(gTeam[playerid] == Traficante)
					{
						SendClientMessage(playerid, -1, " Somente Policia ");
					}
				}
				case 6:
	            {
					SetPlayerHealth(playerid, 100.0);
				}
			}
		}
		return 1;
	}
	if(dialogid == 489)
	{
	    if(!response)
	        return true;
		else
		{
	        switch (listitem)
	        {
	            case 0:
	            {
	                GivePlayerWeapon(playerid, 4, 500);
     				SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {37B04D}Knife");
				}
	            case 1:
	            {
					GivePlayerWeapon(playerid, 10, 500);
					SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {CEED05}Purple Dildo");
				}
	            case 3:
	            {
					GivePlayerWeapon(playerid, 9, 500);
					SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {CEED05}Moto Serra");
				}
	            case 4:
	            {
					GivePlayerWeapon(playerid, 16, 500);
					SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {CEED05}Granada");
				}
	            case 5:
	            {
					GivePlayerWeapon(playerid, 18, 500);
					SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {CEED05}Molotov Cocktail");
				}
			}
		}
		return 1;
	}
	if(dialogid == LOGIN)
	{
		if(response)
		{
			if(!strlen(inputtext))
		    {
				new Nome[MAX_PLAYER_NAME];
				GetPlayerName(playerid, Nome, sizeof(Nome));
				new String[260];
				format(String, sizeof(String), "{FFFFFF}Bem vindo ao {00FF33}Policia x {0026FF}Ladrгo\n\n{FFFFFF}Status de Sua Conta\n\nStatus: {FF0000}Registrado\n\n{FFFFFF}Nome: {FF0000}%s\n\n{FFFFFF}Digite uma senha para Continuar", Nome);
       		    ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Registro", String, "Logar", "Cancelar");
				SendClientMessage(playerid,0x1E90FFAA,"Senha Incorreta !");
				return 1;
			}
			new Nome[MAX_PLAYER_NAME];
			GetPlayerName(playerid, Nome, sizeof(Nome));
			new String[260];
			format(String, sizeof(String), CONTAS, Nome);
			if(!strcmp(inputtext,dini_Get(String,"Senha"),false))
			{
			    SetarPlayer(playerid);
			    Logou[playerid]++;
			    return 1;
			}
			else
			{
			    SendClientMessage(playerid,0x00FF00AA,"Senha incorreta digite-a novamente");
				format(String, sizeof(String), "{FFFFFF}Bem vindo ao {00FF33}Policia x {0026FF}Ladrгo\n\n{FFFFFF}Status de Sua Conta\n\nStatus: {FF0000}Registrado\n\n{FFFFFF}Nome: {FF0000}%s\n\n{FFFFFF}Digite uma senha para Continuar", Nome);
        		ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Registro", String, "Logar", "Cancelar");
			}
			return 1;
		}
		else
		{
			SendClientMessage(playerid, 0xFF0000AA, "Vocк nгo quis se logar, por este motivo serб Kickado");
			Kick(playerid);
			return 1;
		}
	}
	if(dialogid == 214)
	{
	    if(!response)
	        return true;
		else
		{
	        switch (listitem)
	        {
	            case 0:
	            {
	                GivePlayerWeapon(playerid, 32, 500);
     				SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {37B04D}Tec9");
				}
	            case 1:
	            {
					GivePlayerWeapon(playerid, 29, 500);
					SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {CEED05}MP5");
				}
	            case 3:
	            {
					GivePlayerWeapon(playerid, 28, 500);
					SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {CEED05}Micro SMG");
				}
			}
		}
		return 1;
	}
	if(dialogid == 654)
	{
	    if(!response)
	        return true;
		else
		{
	        switch (listitem)
	        {
	            case 0:
	            {
	                GivePlayerWeapon(playerid, 33, 500);
     				SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {37B04D}Country Rifle");
				}
	            case 1:
	            {
					GivePlayerWeapon(playerid, 34, 500);
					SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {CEED05}Sniper Rifle");
				}
	            case 2:
	            {
					GivePlayerWeapon(playerid, 30, 500);
					SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {CEED05}Ak47");
				}
	            case 3:
	            {
					GivePlayerWeapon(playerid, 31, 500);
					SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {CEED05} Colt M4A1");
				}
			}
		}
		return 1;
	}
	if(dialogid == 564)
	{
	    if(!response)
	        return true;
		else
		{
	        switch (listitem)
	        {
	            case 0:
	            {
	                GivePlayerWeapon(playerid, 25, 500);
     				SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {37B04D}Shotgun");
				}
	            case 1:
	            {
					GivePlayerWeapon(playerid, 26, 500);
					SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {CEED05}Sawn-off Shotgun");
				}
	            case 2:
	            {
					GivePlayerWeapon(playerid, 27, 500);
					SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {053FED}Combat Shotgun");
	        	}
			}
		}
		return 1;
	}
	if(dialogid == 951)
	{
	    if(!response)
	        return true;
		else
		{
	        switch (listitem)
	        {
	            case 0:
	            {
	                GivePlayerWeapon(playerid, 24, 500);
     				SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {37B04D}Desert Eagle");
				}
	            case 1:
	            {
					GivePlayerWeapon(playerid, 23, 500);
					SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {CEED05}Silenciadora 9mm");
				}
	            case 2:
	            {
					GivePlayerWeapon(playerid, 22, 500);
					SendClientMessage(playerid, -1, "Vocк Compro Uma Arma, Cujo nome de: {053FED}9mm");
				}
	        }
		}
	}
	if(dialogid == escolher)
    {
        if(response == 0)
        {
            SendClientMessage(playerid,-1,"Vocк virou Traficante!.");
            SetPlayerSkin(playerid, 1);
            gTeam[playerid] = Traficante;
            SpawnPlayer(playerid);
            SalvarPlayer(playerid);
    		label[playerid] = Create3DTextLabel("Traficante", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    		Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
			if(Tutorial[playerid] < 1)
			{
				LerTutorial();
				SetTimer("LerTutorial", 1000, true);
				return true;
			}
            return 1;
        }
        if(response == 1)
        {
            SendClientMessage(playerid, -1,"Vocк virou Policial.");
            SetPlayerSkin(playerid, 285);
            gTeam[playerid] = Policia;
            SpawnPlayer(playerid);
            SalvarPlayer(playerid);
			label[playerid] = Create3DTextLabel("Policial", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
			Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
			if(Tutorial[playerid] < 1)
			{
				LerTutorial();
				SetTimer("LerTutorial", 1000, true);
				return true;
			}
			return 1;
        }
    }
    return 1;
}


public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	new String[59];
	format(String, sizeof(String),"Vocк clicou no nick: %s",clickedplayerid);
	SendClientMessage(playerid, 0x1BE09EAA,String);
	return 1;
}

SalvarPlayer(playerid)
{
    new Nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    new String[50];
    format(String, sizeof(String), CONTAS, Nome);
    dini_IntSet(String,"Dinheiro", GetPlayerMoney(playerid));
    dini_IntSet(String,"Level", Level[playerid]);
    dini_IntSet(String,"Matou", Matou[playerid]);
    dini_IntSet(String,"Morreu", Morreu[playerid]);
    dini_IntSet(String,"Logou", Logou[playerid]);
    dini_IntSet(String,"Membro", gTeam[playerid]);
    dini_IntSet(String,"Vip", Vip[playerid]);
    dini_IntSet(String,"Tutorial", Tutorial[playerid]);
	return 1;
}

SetarPlayer(playerid)
{
	new Nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    new String[50];
    format(String, sizeof(String), CONTAS, Nome);
    GivePlayerMoney(playerid, dini_Int(String,"Dinheiro"));
    Level[playerid] = dini_Int(String, "Level");
    Matou[playerid] = dini_Int(String, "Matou");
    Morreu[playerid] = dini_Int(String, "Morreu");
    Logou[playerid] = dini_Int(String, "Logou");
    gTeam[playerid] = dini_Int(String, "Membro");
    Vip[playerid] = dini_Int(String, "Vip");
    Tutorial[playerid] = dini_Int(String, "Tutorial");
	return 1;
}

Status(playerid)
{
	new Nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nome, sizeof(Nome));
	new String[128];
    SendClientMessage(playerid, 0x3C1BE0AA, "================================================");
	format(String, sizeof(String),"Informaзхes do Player: %s",Nome);
	SendClientMessage(playerid, 0x1BE09EAA,String);
	format(String, sizeof(String),"Level: %d",Matou[playerid]);
	SendClientMessage(playerid, 0x1BE09EAA,String);
	format(String, sizeof(String),"Dinheiro: %d", GetPlayerMoney(playerid));
	SendClientMessage(playerid, 0x1BE09EAA,String);
	format(String, sizeof(String),"Matou: %d",Matou[playerid]);
	SendClientMessage(playerid, 0x1BE09EAA,String);
	format(String, sizeof(String),"Morreu: %d",Morreu[playerid]);
	SendClientMessage(playerid, 0x1BE09EAA,String);
	format(String, sizeof(String),"Vocк Jб Logou %d Vezes Neste Servidor",Logou[playerid]);
	SendClientMessage(playerid, 0x1BE09EAA,String);
	format(String, sizeof(String),"Membro Da Organizaзгo: [%s]",Org(playerid));
	SendClientMessage(playerid, 0x1BE09EAA,String);
	format(String, sizeof(String),"Vip: Level: %d",Vip[playerid]);
	SendClientMessage(playerid, 0x1BE09EAA,String);
	SendClientMessage(playerid, 0x3C1BE0AA, "================================================");
	return 1;
}

forward reloginho(playerid);
public reloginho(playerid)
{
    new string[20], year, month, day, hour, minute, second;
    getdate(year, month, day);
    gettime(hour, minute, second);
    format(string, sizeof string, "%d/%d/%d", day, month, year);
    TextDrawSetString(Reloginho1, string);
    format(string, sizeof string, "%d:%d:%d", hour, minute, second);
    TextDrawSetString(Reloginho2, string);
    return 1;
}

forward Explodir(pID, bomba, Float:x, Float:y, Float:z);
public Explodir(pID, bomba, Float:x, Float:y, Float:z)
{
    DestroyObject(bomba);
    CreateExplosion(x, y, z, 10, 2000);
    CreateExplosion(x+2, y+2, z+2, 10, 2000);
    CreateExplosion(x+3, y+3, z+3, 10, 2000);
    SendClientMessage(pID, 0xFFFF00FF, "Bomba explodida com sucesso.");
    return 1;
}

stock Org(playerid)
{
	new LipeStrondaOrgs[64];
	if(gTeam[playerid] == 1) { LipeStrondaOrgs = "Traficante"; }
    else if(gTeam[playerid] == 2) { LipeStrondaOrgs = "Policia Militar"; }
	return LipeStrondaOrgs;
}

stock IsPlayerInMorro(playerid)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    if(x >= 2117.333 && y >= -1069.962 && x <= 2261.841 && y <= -959.4252) return true;
    else return false;
}

forward LerTutorial();
public LerTutorial()
{
    for(new playerid = 0; playerid < GetMaxPlayers(); ++playerid)
    {
        TempoTutu[playerid] += 1;
        if(TempoTutu[playerid] == 5)
        {
    		if(ClosedSelection[playerid] == 0)
			{
        		new rand = random(sizeof(RequestCamera));
        		cordinatex = RequestCamera[rand][0];
        		cordinatey = RequestCamera[rand][1];
        		cordinatez = RequestCamera[rand][2];
        		cordinateangle = RequestCamera[rand][3];
        		SetPlayerPos(playerid,cordinatex,cordinatey,cordinatez);
        		SetPlayerFacingAngle(playerid, cordinateangle);
        		SetPlayerCameraPos(playerid,cordinatex+(3.8*floatsin(-cordinateangle,degrees)),cordinatey+(3.8*floatcos(-cordinateangle,degrees)),cordinatez);
        		SetPlayerCameraLookAt(playerid, cordinatex,cordinatey,cordinatez);
        		ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
        		PlayerPlaySound(playerid, 1097,-119.9460,23.1096,12.2238);
         		if (SkinClass[playerid][SpawnDance]) SkinClass[playerid][SpawnTimer] = SetTimerEx("MoveCamera", 50, true, "i", playerid);
        		SkinClass[playerid][SpawnDance] = false;
 			}
 			SetPlayerPos(playerid, 1097,-119.9460,23.109);
			GameTextForPlayer(playerid, "~y~]~r~ Policia x Traficante ~y~]", 8000, 3);
			SendClientMessage(playerid, 0xFF0000AA, "============================ = Bem Vindo = ================================");
            SendClientMessage(playerid, -1, " ");
            SendClientMessage(playerid, -1,         "Aqui й um modo mais legal, й tipo a vida real, so que й policia x Traficante");
            SendClientMessage(playerid, -1,         "Vocк pode matar , traficar , dominar GZ , Ganhar dinheiro com assaltos etc");
            SendClientMessage(playerid, -1, " ");
            SendClientMessage(playerid, 0xFF0000AA, "===========================================================================");
            SendClientMessage(playerid, -1, " ");
            SendClientMessage(playerid, -1, " ");
            SendClientMessage(playerid, -1, " ");
            SendClientMessage(playerid, -1, " ");
   		}
        else if(TempoTutu[playerid] == 19)
        {
			GivePlayerMoney(playerid, 5000);
			GameTextForPlayer(playerid, "~y~]~r~ Bem vindo ~y~]", 8000, 3);
			SpawnPlayer(playerid);
			Tutorial[playerid] = 1;
			return 1;
        }
    }
    return 1;
}

forward MoveCamera(playerid,rand);
public MoveCamera(playerid,rand)
{
    SetPlayerCameraPos(playerid, cordinatex - 2 * floatsin(-SkinClass[playerid][SpawnAngle], degrees), cordinatey - 10 * floatcos(-SkinClass[playerid][SpawnAngle], degrees), cordinatez + 3);
    SetPlayerCameraLookAt(playerid, cordinatex, cordinatey, cordinatez + 0.5);
    SkinClass[playerid][SpawnAngle] += 0.5;
    if (SkinClass[playerid][SpawnAngle] >= 360.0)
    SkinClass[playerid][SpawnAngle] = 0.0;
}

forward SendMSG();
public SendMSG()
{
    new string[256];
    new randMSG = random(sizeof(RandomServerName));
    format(string,sizeof(string),"hostname %s",RandomServerName[randMSG]);
    SendRconCommand(string);
}

forward Solto();
public Solto()
{
    for(new playerid = 0; playerid < GetMaxPlayers(); ++playerid)
    {
		SetPlayerPos(playerid, 268.3024,82.0929,1001.0391);
	}
}

public SendMensagens()
{
    new string[265];
    new random1 = random(sizeof(Mensagens));
    new random2 = random(sizeof(Cores));
    format(string, sizeof(string), "%s", Mensagens[random1]);
    SendClientMessageToAll(Cores[random2],string);
    return 1;
}
~-~-~-~-~-~-~-~-~-Gm em GERAL:~-~-~-~-~-~-~-~-~-
* Total de Objetos: Aproximadamente 200
* Linhas: 1613
* Carros: 0 ( Adicione vocк mesmo do geito que quiser )
Reply
#2

Dei uma olhada rбpida no cуdigo.
Poderia ter feito uma Prй definiзгo do MAX_PLAYERS .
Acho que aquele SetTimer de "Solto" poderб bugar, porque o certo seria SetTimerEx.

Mas muito bom GM .
E poque meus crйditos? O_o
Reply
#3

Quote:
Originally Posted by DJ Bruninho
View Post
Dei uma olhada rбpida no cуdigo.
Poderia ter feito uma Prй definiзгo do MAX_PLAYERS .
Acho que aquele SetTimer de "Solto" poderб bugar, porque o certo seria SetTimerEx.

Mas muito bom GM .
E poque meus crйditos? O_o
peguei o seu drop weapon ( life ) nao me lembro ;]
Reply
#4

Parabйns. =)
Reply
#5

Parabйns. =) І Adoguei
Reply
#6

Gostei cara
Reply
#7

muito boa gamemode!,
mбs poderia usar o pastebin para a pбgina nгo ficar pesada =)
Reply
#8

Quote:
Originally Posted by [O.z]Caroline
View Post
muito boa gamemode!,
mбs poderia usar o pastebin para a pбgina nгo ficar pesada =)
tipo, fica mal identado
+ valeu
Reply
#9

Olha o Lipe... kkkk Parabйns man, bom GM!
Reply
#10

bem legal
Quote:
Originally Posted by Lipe_Stronda
View Post
* Carros: 0 ( Adicione vocк mesmo do geito que quiser )
GEITO se escreve jeito
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)