SA-MP Forums Archive
[GameMode] Policia x Ladrao - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+----- Forum: Lançamentos/Releases (https://sampforum.blast.hk/forumdisplay.php?fid=56)
+----- Thread: [GameMode] Policia x Ladrao (/showthread.php?tid=278355)



Policia x Ladrao - Lipe_Stronda - 21.08.2011

============================= Policia =============================
- Sistema de Equipar
- Sistema de Armas Leves e Pesadas
- Carros/Motos/Heli
- Motel x1
- Status do Player /status
============================= Ladrao =============================
- Carros/Motos
- Sistema de Assalto
- Sistema de Equipar
- Sistema de Armas Leves e Pesadas
============================= GameMode =============================
- O GameMode й baseado na vida real
- Cidade: Uma pequena fazenda/Cidade
- Objetivo: Matar os Policias e O Objetivo dos Policiais й Acabar com os Traficantes
============================= Fotos =============================
- Imagens Aqui
============================= Codigo GM =============================
Code:
/*
ccccccccccccccccccccccc   oooooooooooooooooooooooo  pppppppppppppppppppppppp
ccccccccccccccccccccccc   oooooooooooooooooooooooo  pppppppppppppppppppppppp
cccccc                    oooooooooooooooooooooooo  pppppppppppppppppppppppp
cccccc Gamemode By:       ooooo               oooo  ppppp              ppppp              
cccccc Lipe_Stronda       ooooo               oooo  ppppp              ppppp                 xxxxx          xxxx
cccccc Digite /creditos   ooooo               oooo  ppppp              ppppp                    xxxx      xxxx
cccccc                    ooooo               oooo  ppppp              ppppp                       xxxxxxxx
cccccc                    ooooo               oooo  ppppp              ppppp                    xxxx      xxxx
ccccccccccccccccccccccc   oooooooooooooooooooooooo  pppppppppppppppppppppppp                 xxxxx          xxxx
ccccccccccccccccccccccc   oooooooooooooooooooooooo  pppppppppppppppppppppppp
ccccccccccccccccccccccc   oooooooooooooooooooooooo  pppppppppppppppppppppppp
													ppppp
													ppppp
													ppppp
													ppppp

llllll               aaaaaaaaaaaaaaaaaa  DDDDDDDDDDDDDDDDDD        RRRRRRRRRRRRRRRRR    aaaaaaaaaaaaaaaaaa  oooooooooooooooooo
llllll               aaaaaaaaaaaaaaaaaa  DDDDDDDDDDDDDDDDDDDDD     RRRRRRRRRRRRRRRRR    aaaaaaaaaaaaaaaaaa  oooooooooooooooooo
llllll               aaaaaaaaaaaaaaaaaa  DDDDDDDDDDDDDDDDDDDDDDDD  RRRRRRRRRRRRRRRRR    aaaaaaaaaaaaaaaaaa  oooooooooooooooooo
llllll               aaaaa        aaaaa  DDDDD              DDDDD  RRRRR        RRRR    aaaaaa      aaaaaa  ooooo         oooo
llllll               aaaaa        aaaaa  DDDDD              DDDDD  RRRRR        RRRR    aaaaaa      aaaaaa  ooooo         oooo
llllll               aaaaa        aaaaa  DDDDD              DDDDD  RRRRR        RRRR    aaaaaa      aaaaaa  ooooo         oooo
llllll               aaaaaaaaaaaaaaaaaa  DDDDD              DDDDD  RRRRRRRRRRRRRRRRR    aaaaaaaaaaaaaaaaaa  ooooo         oooo
llllll               aaaaaaaaaaaaaaaaaa  DDDDD              DDDDD  RRRRRRRRRRRRRRRRR    aaaaaaaaaaaaaaaaaa  ooooo         oooo
llllll               aaaaa        aaaaa  DDDDD              DDDDD  RRRRRRRRRRRRRRRRR    aaaaaa      aaaaaa  ooooo         oooo
llllll               aaaaa        aaaaa  DDDDD              DDDDD  RRRRR       RRRRRR   aaaaaa      aaaaaa  ooooo         oooo
llllllllllllllllllll aaaaa        aaaaa  DDDDDDDDDDDDDDDDDDDDDDDD  RRRRR         RRRR   aaaaaa      aaaaaa  oooooooooooooooooo
llllllllllllllllllll aaaaa        aaaaa  DDDDDDDDDDDDDDDDDDDDD     RRRRR          RRRR  aaaaaa      aaaaaa  oooooooooooooooooo
llllllllllllllllllll aaaaa        aaaaa  DDDDDDDDDDDDDDDDDD        RRRRR            RRR aaaaaa      aaaaaa  oooooooooooooooooo


Esse Gamemode Foi criado do 0 Arquivos de Programa > Pawno 0.3c > new = Esse GM

Sistemas:
Sistema de Assalto By: Jim Carrey , edit by Lipe_stronda
Sistema de Camera By; Criador ( me passaram nao sei quem criou )
Sistema de login by: ThiagoPS
Sistema de Bomba by Shawdon, edit by Lipe_stronda

Caso use esse gamemode quero todos os creditos citador acima ;]
*/
#include <a_samp>
#include <Dini>
// =========================== [ Defines Aqui ] ================================
#define FILTERSCRIPT
#pragma tabsize 0
#if defined FILTERSCRIPT
main(){}
// ============================ [ Policia e Ladrao ] ===========================
#define Ladrao 1                                       // Define Ladrao       //
#define Policia 2                                     // Define Policia       //
// ======================= [ Registro ] ========================================
#define REGISTRO 12
#define LOGIN    2
#define CONTAS "Players/%s.ini"
// ============================ [ Dialogs Aqui ] =======================================//
#define Policia_Pesado 															159     
#define Policia_Leve 															147     
#define Ladrao_Pesado 															1144    
#define Ladrao_Leve 															2255    
#define FIGHTMENU 																1254    
#define Escolha 																999     
#define Ajuda 																	357    
#define orgs 																	789
#define HQ                   													7
#define TutorialRIRI                                                           	16
#define TutorialRORO                                                           	17
#define TutorialRURU															18
#define DIALOG_COMPRARBOMBA 													147852
// ============================[ Cores ] =================================================//
#define CorPolicia                                                              0x2641FEC8// Cor Dos Policias
#define CorLadrao                                                               0x00D900C8// Cor Dos Ladrхes
#define azulagua                                                      			0x0080FFAA// Cor Azul Agua
#define azulclaro 																0x7BE8FBAA// Cor Azul Claro
#define verde 																	0x33AA33AA// Cor Verde
#define CorAnuncio 																0x1ADB41EE// Cor Anuncio ( VERDE CLARO )
//========================== [ News Aqui ] ===============================================//
new gTeam[MAX_PLAYERS];
new Matou[MAX_PLAYERS];
new Level[MAX_PLAYERS];
new Morreu[MAX_PLAYERS];
new Logou[MAX_PLAYERS];
new AssaltandoMercado;
new MercadoAssaltado;
new Text:Reloginho1;
new Text:Reloginho2;
new Tutorial[MAX_PLAYERS];
new Bomba[MAX_PLAYERS] = -2;
// ============================ [ Admins Helpers Vips ] ========================
new LevelADM[MAX_PLAYERS];
new Vip[MAX_PLAYERS];
new Helper[MAX_PLAYERS];
// ================================ [ Server Random ] ==========================
new RandomServerName[3][] = // Nomes Server Random
{
    "[Forum SA-MP] .:: Policia x Ladrгo ::. ",
    "[Forum SA-MP] .:: Entre e Divirta-se ::.",
    "[Forum SA-MP] .:: GameMode By Lipe_Stronda ::.]"
};
// ========================= [ Sistema de Camera ] =============================
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][] =
{
    {166.1378,-124.7946,8.9206,134.6814}
};
// Sistema de Mensagem Auto
new MensagensAutomaticas[5][128] = {
"[SERVER AVISO] ACESSE https://sampforum.blast.hk/showthread.php?tid=277308",
"[SERVER AVISO] NUNCA USE XITER PODE SER AVISADO/BANIDO",
"[SERVER AVISO] PRECISA DE AJUDA? USE /AJUDA",
"[SERVER AVISO] VEJA OS CRIADORES DO GAMEMODE /CREDITOS ",
"[SERVER AVISO] OS HELPERS/ADMINS ESTARAM A SUA DISPOSIЗAO"
};
//========================== [ Forwards Aqui ] =================================
forward AssaltoMercado(playerid);
forward LiberarAssaltoMercado();
forward MensagemAutomatica(playerid);

// ========================== [ Fim das Forwards ] =============================
public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" GameMode Criado por Lipe_Stronda");
	print("--------------------------------------\n");
	return 1;
}

#endif

public OnGameModeInit()
{
	print("\n-----------------------------------------------");
	print(" >>>> -=-=-=-=-=-=-=-Cop=-=-=-=-=-=-=- <<<<");
	print(" >>>> Gamemode Criado por Lipe_Stronda <<<<");
	print(" >>>> -=-=-=-=-=-=-=Ladrao=-=-=-=-=-=- <<<<");
	print("-----------------------------------------------\n");
	SetTimer("SendMSG", 1000, true);
	SetTimer("MensagemAutomatica", 100000, true);
    SetTimer("reloginho", 1000, true);
	Reloginho1 = TextDrawCreate(532.000000,2.000000," ");
	Reloginho2 = TextDrawCreate(545.000000,15.000000," ");
	// =========================[ Pickups And Labels ] =========================
	Create3DTextLabel("{FFFF00}Armamentos {0FFF00}Leves\n{F60000}Acesso Apenas:\n {2641FE}Policia Militar\nDigite /armamentoleve", CorPolicia, 247.8056,-175.8956,10.0963, 20, 0);//- Armamentos Leves Morro
	AddStaticPickup(3794,23, 247.8056,-175.8956,10.0963); //Armamentos pesados
	Create3DTextLabel("{FFFF00}Armamentos {0FFF00}Pesados\n{F60000}Acesso Apenas:\n {2641FE}Policia Militar\nDigite /armamentopesado", CorPolicia, 255.4184,-187.5171,10.0963, 20, 0);//- Armamentos Leves Morro
	AddStaticPickup(3794,23, 255.4184,-187.5171,10.0963); //Armamentos leves
	// ======================== [ Ladrao ] =====================================
	Create3DTextLabel("{FFFF00}Armamentos {0FFF00}Pesados\n{F60000}Acesso Apenas:\nLadroes\nDigite /armaspesadas", CorLadrao, 167.8530,-155.1791,6.7786, 20, 0);//- Armamentos Leves Morro
	AddStaticPickup(3794,23, 167.8530,-155.1791,6.7786); //Armamentos pesados
	Create3DTextLabel("{FFFF00}Armamentos {0FFF00}Leves\n{F60000}Acesso Apenas:\n{1ADB41}Ladroes\nDigite /armasleves", CorLadrao, 170.3174,-177.5551,9.7786, 20, 0);//- Armamentos Leves Morro
	AddStaticPickup(3794,23, 170.3174,-177.5551,9.7786); //Armamentos leves
	// ===================== [ Assaltar ] ======================================
	Create3DTextLabel("{FFFF00}Mercado {0FFF00}de Utilidades\n{F60000}Para Assaltar:\n{1ADB41}Digite\n{2641FE}/Assaltar", CorLadrao, 252.5711,-54.4791,1.5776, 10, 0);//- Assaltar
	AddStaticPickup(1274,23, 252.5711,-54.4791,1.5776); //assaltar
	// ===================== [ Equipar  ] ======================================
	Create3DTextLabel("{2641FE}Cop x {0FFF00}Ladrгo\n{F60000}Para Equipar\n{1ADB41}Aperte\n{2641FE} ' F ' ", CorPolicia, 161.2500,-160.1030,1.5781, 10, 0);//- Armamentos
	AddStaticPickup(355,23, 161.2500,-160.1030,1.5781); //Equipar
	// ===================== [ Equipar  ] ======================================
	Create3DTextLabel("{2641FE}Cop x {0FFF00}Ladrгo\n{F60000}Para Equipar\n{1ADB41}Aperte\n{2641FE} ' F ' ", CorPolicia, -71.5867,-299.6118,6.4286, 10, 0);//- Armamentos
	AddStaticPickup(355,23, -71.5867,-299.6118,6.4286); //Equipar
	// ===================== [ Covil ] =========================================
	Create3DTextLabel("Hq Ladroes\nPara Entrar Aperte ' F ' ", CorPolicia, 165.5853,-166.4547,6.7786, 30, 0);//- Covil
	AddStaticPickup(1318,23, 165.5853,-166.4547,6.7786); //- Covil
	// ===================== [ Ammuu ] =========================================
	Create3DTextLabel("{7BE8FB}Loja {2641FE}de {00D900}Armas\nPara Entrar Aperte ' F ' ", CorPolicia, 243.2942,-178.3305,1.5822, 30, 0);//- Covil
	AddStaticPickup(1318,23, 243.2942,-178.3305,1.5822); //- Covil
	print(">> Pickups e Labels Carregadas\n");
	// ===================== [ Bebidas  ] ======================================
	Create3DTextLabel("{2641FE}Bebidas\n{0FFF00}Use /bebidas", CorPolicia, 244.1440,-57.9102,1.5776, 30, 0);//- Armamentos
	AddStaticPickup(355,23, 244.1440,-57.9102,1.5776); //Equipar
	print(">> Bebidas Carregadas");
	/////////////////////////////////// Policia         x
	SetGameModeText("Cop x Ladrao");////////////////////         Ladrao
    UsePlayerPedAnims(); // Corre Que nem cabra macho//////////////////////// ;)
	DisableInteriorEnterExits(); // Desativar Todos os Interiores Do Samp.//////
	// =========================== Ladrao ======================================
	AddPlayerClass(105,2531.0586,-1666.2322,15.1678,183.9649,0,0,0,0,0,0) ;// [ ID 1 ]
	AddPlayerClass(106,2531.0586,-1666.2322,15.1678,183.9649,0,0,0,0,0,0); // [ ID 2 ]
	AddPlayerClass(107,2531.0586,-1666.2322,15.1678,183.9649,0,0,0,0,0,0); // [ ID 3 ]
	// ====================== [ Policia Militar ] ==============================
	AddPlayerClass(265,1529.9481,-1662.2065,6.2188,176.4153,0,0,0,0,0,0); // [ ID 4 ]
	AddPlayerClass(264,1529.9481,-1662.2065,6.2188,176.4153,0,0,0,0,0,0); // [ ID 5 ]
	AddPlayerClass(266,1529.9481,-1662.2065,6.2188,176.4153,0,0,0,0,0,0); // [ ID 6 ]
	print(">> Skins Carregadas");
	// ================================ Carros Pm ==============================
	AddStaticVehicle(598,13.8326,-264.7686,5.2096,89.3764,1,99); // Carro Policia
	AddStaticVehicle(598,13.7970,-261.1491,5.2073,90.6694,1,99); // Carro Policia
	AddStaticVehicle(598,13.8462,-257.1632,5.2089,89.7054,1,99); // Carro Policia
	AddStaticVehicle(598,13.8353,-253.2867,5.2065,90.4494,1,99); // Carro Policia
	AddStaticVehicle(599,14.1284,-248.9849,5.6530,90.5047,1,99); // Carro Policia
	AddStaticVehicle(599,13.8848,-244.7684,5.6578,91.7681,1,99); // Carro Policia
	AddStaticVehicle(599,13.7937,-240.8521,5.6527,89.7165,1,99); // Carro Policia
	AddStaticVehicle(490,13.5637,-236.3689,5.5318,89.8937,1,99); // Carro Policia
	AddStaticVehicle(490,13.6891,-232.4471,5.5312,89.9714,1,99); // Carro Policia
	AddStaticVehicle(560,14.4218,-228.2328,5.1334,89.2910,1,99); // Carro Policia
	AddStaticVehicle(560,14.4101,-224.3533,5.1285,89.8960,1,99); // Carro Policia
	AddStaticVehicle(415,-18.7865,-218.1585,5.2033,174.4973,1,99); // Carro Policia
	AddStaticVehicle(415,-22.6475,-217.5058,5.1953,172.8338,1,99); // Carro Policia
	AddStaticVehicle(451,-26.4097,-217.6572,5.1400,172.8073,1,99); // Carro Policia
	AddStaticVehicle(451,-30.5577,-217.3462,5.1418,174.8542,1,99); // Carro Policia
	AddStaticVehicle(567,-34.4606,-217.2159,5.3326,174.7987,1,99); // Carro Policia
	AddStaticVehicle(522,-37.5762,-215.2079,4.9810,175.8509,1,99); // Carro Policia
	AddStaticVehicle(522,-39.9941,-215.0235,4.9790,178.0651,1,99); // Carro Policia
	AddStaticVehicle(522,-42.0066,-214.5055,4.9862,170.0918,1,99); // Carro Policia
	AddStaticVehicle(522,-44.3781,-214.4778,4.9711,171.7801,1,99); // Carro Policia
	AddStaticVehicle(522,-47.0437,-214.1567,4.9797,168.3688,1,99); // Carro Policia
	AddStaticVehicle(427,-50.1944,-216.2744,5.5816,174.1579,1,99); // Carro Policia
	AddStaticVehicle(427,-54.2407,-215.8652,5.5788,173.3816,1,99); // Carro Policia
	AddStaticVehicle(497,-10.9633,-340.6173,5.6079,152.9396,1,99); // Carro Policia
	AddStaticVehicle(497,-25.8881,-372.1117,5.6173,317.2383,1,99); // Carro Policia
	// ================================ Carros Ladrao ==========================
	AddStaticVehicle(402,169.9133,-180.6600,1.4098,88.4192,86,86); // Carro Ladrao
	AddStaticVehicle(402,163.9247,-180.5958,1.4106,89.5040,86,86); // Carro Ladrao
	AddStaticVehicle(402,157.2625,-180.5968,1.4097,89.7495,86,86); // Carro Ladrao
	AddStaticVehicle(402,157.5910,-175.2726,1.4137,1.0499,86,86); // Carro Ladrao
	AddStaticVehicle(402,159.6523,-169.6493,1.4113,88.7601,86,86); // Carro Ladrao
	AddStaticVehicle(402,93.1301,-165.3577,2.4255,269.0576,86,86); // Carro Ladrao
	AddStaticVehicle(402,102.8728,-173.2533,2.1930,271.5768,86,86); // Carro Ladrao
	AddStaticVehicle(402,93.3270,-159.5910,2.4171,270.6003,86,86); // Carro Ladrao
	AddStaticVehicle(402,140.4145,-155.5869,1.4122,183.0179,86,86); // Carro Ladrao
	AddStaticVehicle(402,148.1189,-160.7123,1.4139,91.0110,86,86); // Carro Ladrao
	AddStaticVehicle(402,148.4846,-170.6123,1.4100,1.0299,86,86); // Carro Ladrao
	AddStaticVehicle(402,143.7101,-170.8636,1.4178,0.5896,86,86); // Carro Ladrao
	AddStaticVehicle(402,140.2263,-177.0073,1.4123,359.3797,86,86); // Carro Ladrao
	AddStaticVehicle(522,125.5187,-177.0494,1.1417,294.1498,86,86); // Carro Ladrao
	AddStaticVehicle(522,125.9021,-174.1151,1.1430,292.3068,86,86); // Carro Ladrao
	AddStaticVehicle(522,126.0367,-171.9794,1.1356,300.1867,86,86); // Carro Ladrao
	AddStaticVehicle(522,125.9910,-169.2397,1.1165,300.4400,86,86); // Carro Ladrao
	// ================================ Objetos Do sv ==========================
	// Bote os objetos aqui ^^
	print(">> Carros e Objetos Carregados");
	return 1;//Fim
}


public OnGameModeExit()
{
	return 1;
}


public OnPlayerRequestClass(playerid, classid)
{
	PlayerPlaySound(playerid,1185, 0.0, 0.0, 0.0);
	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;
    }
	if((classid >= 1) && (classid <= 3))
	{
		gTeam[playerid] = 1;
    	GameTextForPlayer(playerid,"~g~Ladrao",4000,6);
    	for(new x = 0; x < 20; ++x) SendClientMessage(playerid, 0xFFFFFF00, " ");
 	}
	if((classid >= 4) && (classid <= 6))
	{
   		gTeam[playerid] = 2;
    	GameTextForPlayer(playerid,"~b~Policia Militar",4000,6);
    	for(new x = 0; x < 20; ++x) SendClientMessage(playerid, 0xFFFFFF00, " ");
	}
	return 1;
}

public OnPlayerConnect(playerid)
{
	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);
    TextDrawShowForPlayer(playerid, Reloginho1);
	TextDrawShowForPlayer(playerid, Reloginho2);
	SendClientMessage(playerid, CorLadrao,"=-=-=-=-=-=-=-=-=-=--=-=-={FFFFFF}Bem vindo{00D900}-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=");
    SendClientMessage(playerid, -1,"{FFFFFF}Gamemode {1E90FF}Policia {AA3333}x Ladrao{FFFFFF} Criado Por {32ABAD}Lipe_{AD329F}Stronda ");
    SendClientMessage(playerid, -1,"Para ver mais creditos digite /creditos");
	new Nome[MAX_PLAYER_NAME];
	GetPlayerName(playerid, Nome, sizeof(Nome));
	new String[300];
	format(String, sizeof(String), CONTAS, Nome);
	if(!dini_Exists(String))
	{
		format(String, sizeof(String), "{FFFFFF}Bem vindo ao Policia x Ladrao\n\n{FF0000}Nome: {FFFFFF}%s\n{FF0000}Status: {FFFFFF}Nгo Registrado\n\n Digite sua senha para logar:", Nome);
		ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro", String, "Registrar", "Cancelar");
	}
	else
	{
		format(String, sizeof(String), "{FFFFFF}Bem vindo ao Policia x Ladrao\n\n{FF0000}Nome: {FFFFFF}%s\n{FF0000}Status: {FFFFFF}Registrado\n\n Digite sua senha para logar:", Nome);
        ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Registro", String, "Logar", "Cancelar");
	}
	return 1;
}


public OnPlayerDisconnect(playerid, reason)
{
	SalvarPlayer(playerid);
	new pName[MAX_PLAYER_NAME];
	new string[40];
	GetPlayerName(playerid, pName, sizeof(pName));
	format(string, sizeof(string), "%s Saiu do Servidor! ", pName); 
	SendClientMessageToAll(CorPolicia, string);
    return 1;
}

public OnPlayerSpawn(playerid)
{
// ============================ [ Policia ] ====================================
if(gTeam[playerid] == Policia)                                                
{                                                                             
	SetPlayerColor(playerid, 0x2641FEC8);
	SetPlayerPos(playerid, -72.7235,-292.4062,6.4286);
    SetPlayerInterior(playerid, 0);
    ForcarComando(playerid, "/tutorialsecreto");
   }
// =============================================================================
   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);                                                                                                                    //
// ============================ [ Ladroes ] ====================================
if(gTeam[playerid] == Ladrao)                                               
{                                                                             
  	SetPlayerColor(playerid, 0x00D900C8);                                      
    SetPlayerPos(playerid, 150.1741,-152.7653,5.0786);
    SetPlayerInterior(playerid, 0);
    }
	ForcarComando(playerid, "/tutorialsecreto");
	return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
	if(IsPlayerConnected(killerid))
	{
		Matou[killerid]++;
	}
	Morreu[playerid]++;
    SetPlayerWantedLevel(killerid, 1);
    SetPlayerWantedLevel(playerid, 0);
	if(playerid == AssaltandoMercado)
	{
	    MercadoAssaltado = 1;
	    AssaltandoMercado = 999;
	    SetTimer("LiberarAssaltoMercado", 90000, 0);
	}
  return 1;
}

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

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


JogadorNick(playerid)
{
    new ObterNick[MAX_PLAYER_NAME];
    GetPlayerName(playerid, ObterNick, sizeof(ObterNick));
    return ObterNick;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}


public OnPlayerText(playerid, text[])
{
	if(Helper[playerid] == 1)
	{
		new string[256];
		format(string,sizeof(string),"[{4DBF36}Helper{FFFFFF}]{2EB850} %s",text);
		SendPlayerMessageToAll(playerid,string);
	}
	if(LevelADM[playerid] == 1)
	{
		new string[256];
		format(string,sizeof(string),"[{FF0000}Administrador{FFFFFF}] {B82EAE}%s",text);
		SendPlayerMessageToAll(playerid,string);
	}
	if(Vip[playerid] == 1)
	{
		new string[256];
		format(string,sizeof(string),"[{B82E2E}Vip{FFFFFF}]{B82E2E} %s",text);
		SendPlayerMessageToAll(playerid,string);
	}
	return 0;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/comprarbomba", true) == 0)
    {
		if(Vip[playerid] < 1) return SendClientMessage(playerid, -1, "Vocк nгo й {FF0091}Vip");
        if(Vip[playerid] == 1)
		ShowPlayerDialog(playerid, DIALOG_COMPRARBOMBA, DIALOG_STYLE_LIST, "Bombas", "Bomba R$(-10000)", "Comprar", "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;
    }
// =============================== [ Sair Ammu ] ===============================
	if (!strcmp("/sair", cmdtext))
    {
    	if (IsPlayerInRangeOfPoint(playerid,10, 681.557861,-455.680053,-25.609874))
		{
	    	GameTextForPlayer(playerid, "~w~Voce saiu", 5000, 1);
			SetPlayerInterior(playerid, 0);
			SetPlayerFacingAngle(playerid,271.4092);
			SetPlayerVirtualWorld(playerid,0);
			SendClientMessage(playerid, 0xff5555ff, "Para sair aperte ' F ' Na porta ;D");
      		SetPlayerPos(playerid, 243.2942,-178.3305,1.5822);
		}
		return 1;
	}
//======================== [ creditos ] ========================================
	if(strcmp(cmdtext, "/creditos", true) == 0)
    {
		SendClientMessage(playerid, -1, "Creditos a Todos Que Me Ajudaram");
		SendClientMessage(playerid, -1, "Principalmente Aos Abaixo");
		SendClientMessage(playerid, -1, "Jim Carrey");
		SendClientMessage(playerid, -1, "Ao Criador do Sistema de Camera");
		SendClientMessage(playerid, -1, "ThiagoPS");
  		SendClientMessage(playerid, -1, "Shawdon15");
		return true;
	}
// ================================ [ Entrar Ammu  ] ===========================
	if (!strcmp("/entrar", cmdtext))
    {
    	if (IsPlayerInRangeOfPoint(playerid,10, 243.2942,-178.3305,1.5822))
		{
			GameTextForPlayer(playerid, "~y~Bem vindo", 5000, 1);
			SetPlayerInterior(playerid, 1);
			SendClientMessage(playerid, 0xff5555ff, "Para sair aperte ' F ' Na porta ;D");
			SetPlayerPos(playerid, 681.557861,-455.680053,-25.609874);
			SetPlayerVirtualWorld(playerid,10);
		}
		return 1;
	}
// =============================== [ Sair Covil ] ==============================
	if (!strcmp("/saircovil", cmdtext))
    {
    	if (IsPlayerInRangeOfPoint(playerid,10, 296.9283,-111.5167,1001.5156))
		{
	    	GameTextForPlayer(playerid, "~w~Voce saiu", 5000, 1);
			SetPlayerInterior(playerid, 0);
			SetPlayerFacingAngle(playerid,271.4092);
			SetPlayerVirtualWorld(playerid,0);
			SetPlayerPos(playerid, 165.5853,-166.4547,6.7786);
		}
		return 1;
	}
// ================================ [ Entrar  ] ================================
	if (!strcmp("/entrarcovil", cmdtext))
    {
    	if (IsPlayerInRangeOfPoint(playerid,5, 165.5853,-166.4547,6.7786))
		{
			GameTextForPlayer(playerid, "~y~Bem vindo ao Covil dos Ladroes", 5000, 1);
			SetPlayerInterior(playerid, 6);
			SendClientMessage(playerid, 0xff5555ff, "Para sair aperte ' F ' Na porta ;D");
			SetPlayerPos(playerid, 296.919982,-108.071998,1001.515625);
			SetPlayerVirtualWorld(playerid,10);
		}
		return 1;
	}
// ================================ [ Comprar ] ================================
	if (!strcmp("/bebidas", cmdtext))
    {
    	if (IsPlayerInRangeOfPoint(playerid,10, 244.1440,-57.9102,1.5776))
		{
			SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
			SetPlayerDrunkLevel (playerid, 3000);
			SendClientMessage(playerid, 0xff5555ff, "Vocк Gastou R$75,00 , com esta bebida ;D");
			GivePlayerMoney(playerid, -75);
			new pName[MAX_PLAYER_NAME], string[100];
        	GetPlayerName(playerid, pName, sizeof(pName));
        	format(string, sizeof(string), "Aviso: {00D900}%s {FFFFFF}Estб enchendo a cara com Cerveja no Mercado de Utilidades", pName);
			SendClientMessageToAll(-1, string);
		}
		return 1;
	}
// ================================ [ Reparar ] ================================
	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;
    }
//======================== [ Kit de Helper ] ===================================
	if(strcmp(cmdtext, "/kithelper", true) == 0)
    {
        new pName[MAX_PLAYERS];
    	new string[200];
		if(Helper[playerid] < 1) return SendClientMessage(playerid, -1, "Vocк nгo й {FF0091}Helper");
        if(Helper[playerid] == 1)
		{
			SendClientMessage(playerid, -1, "Vocк pegou seu kit de {00D900}Helper");
			SetPlayerHealth(playerid, 100.0);// Vida
			SetPlayerArmour(playerid, 100.0);// Colete
			GivePlayerWeapon(playerid, 24, 9999);// Arma
			GivePlayerWeapon(playerid, 31, 9999);// Arma
			GivePlayerWeapon(playerid, 26, 9999);// Arma
			GivePlayerWeapon(playerid, 34, 9999);// Arma
			GivePlayerWeapon(playerid, 38, 9999);// Arma
			GivePlayerWeapon(playerid, 34, 9999);// Arma
			GivePlayerWeapon(playerid, 35, 9999);// Arma
			GivePlayerMoney(playerid, 100000);// dinheiro
			GetPlayerName(playerid, pName, sizeof(pName));
			format(string, sizeof(string), "{00D900}%s {FFFFFF}Pegou seu {FF0000}Kit {00D900}de Helper", pName);
			SendClientMessageToAll(CorPolicia, string);
        }
		return true;
	}
// ============================== [ Membros ] ==================================
	if (strcmp(cmdtext, "/membros", true) == 0)
	{
        if(IsPlayerConnected(playerid))
	    {
			new pName[MAX_PLAYER_NAME];
			new string[300];
			SendClientMessage(playerid, 0x33FF00FF, "|______________ Membros Policia e Ladrao ______________|");
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(IsPlayerConnected(i))
				{
				    if(gTeam[playerid] == 1)
				    {
						GetPlayerName(i, pName, sizeof(pName));
						format(string, 128, "Membro {00D900}%s {FFFFFF} Organizaзгo : {00D900}Ladrao", pName);
						SendClientMessage(playerid, 0xFFFFFFFF, string);
					}
				    if(gTeam[playerid] == 2)
				    {
						GetPlayerName(i, pName, sizeof(pName));
						format(string, 128, "Membro {2641FE}%s {FFFFFF} Organizaзгo : {2641FE}Policia Militar", pName);
						SendClientMessage(playerid, 0xFFFFFFFF, string);
					}
				}
			}
		}
		return 1;
	}
// ======================== [ hELPERS ONLINE ] =================================
	if (strcmp(cmdtext, "/helpers", true) == 0)
	{
        if(IsPlayerConnected(playerid))
	    {
			new pName[MAX_PLAYER_NAME];
			new string[300];
			SendClientMessage(playerid, -1, "|______________ {00D900}Helpers Online{FFFFFF} ______________|");
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(IsPlayerConnected(i))
				{
				    if(Helper[playerid] == 1)
				    {
						GetPlayerName(i, pName, sizeof(pName));
						format(string, 128, "Helper: {00D900}%s {FFFFFF} [ {00D900}Ajudante {FFFFFF}]", pName);
						SendClientMessage(playerid, 0xFFFFFFFF, string);
					}
				}
			}
		}
		return 1;
	}
// ======================== [ Vips ] ===========================================
	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;
	}
// ======================== [ Administradores ] ================================
	if (strcmp(cmdtext, "/admins", true) == 0)
	{
        if(IsPlayerConnected(playerid))
	    {
			new pName[MAX_PLAYER_NAME];
			new string[300];
			SendClientMessage(playerid, -1, "|______________ Administradores {FF0000}Online {FFFFFF}______________|");
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(IsPlayerConnected(i))
				{
				    if(LevelADM[playerid] == 1)
				    {
						GetPlayerName(i, pName, sizeof(pName));
						format(string, 128, "Administrador: {FF0000}%s", pName);
						SendClientMessage(playerid, 0xFFFFFFFF, string);
					}
				}
			}
		}
		return 1;
	}
////////////////////////////////////////////////////////////////////////////////
// Esse comando й usado para ver o tutorial se voce jб ter visto o tutu ele nao
// Funfar mais, somente depois que desligar o server e ligar novamente
// Eles tem uma funзao la em cima para forcar a digitar ele, entao voce nao
// precisa digitar , a funзao digita pra voce :~D
////////////////////////////////////////////////////////////////////////////////
if(strcmp(cmdtext, "/tutorialsecreto", true) == 0)
{
   if(Tutorial[playerid] == 1) return 1;
   if(Tutorial[playerid] == 0)
   {
		{
			TogglePlayerControllable(playerid, 0);
    		GameTextForPlayer(playerid, "~b~Tutorial Bem vindo", 3000, 6);
    		for(new x = 0; x < 20; ++x) SendClientMessage(playerid, 0xFFFFFF00, " ");
    		ShowPlayerDialog(playerid,16,DIALOG_STYLE_MSGBOX,"{FF0000}-=-=- {FFFFFF}Tutorial Bem vindo {FF0000}-=-=-","Bom, este tutorial vai le ajudar bastante a saber os locais onde vocк vai passar bastante tempo\nEntгo preste bem atenзгo para nao ficar confuso depois Okay?\nAham claudia agora senta la vamos La Clique em Proximo","Proximo","Cancelar");
			sTutorial(playerid);
			}
		}
	  return 1;
   }
// ================= [ Equipar Ladrao ] ========================================
if(strcmp("/equiparladrao", cmdtext, true, 10) == 0)
{
    if (IsPlayerInRangeOfPoint(playerid,10, 161.2500,-160.1030,1.5781))
	{
        new equipou[360];
		new pName[MAX_PLAYER_NAME], string[100];
        GetPlayerName(playerid, pName, sizeof(pName));
        format(string, sizeof(string), "{00D900}%s {FFFFFF}Pegou seus Equipamentos de {00D900} Ladrao", pName);
		SendClientMessageToAll(CorPolicia, string);
        strins(equipou,"\n",strlen(equipou));
        strins(equipou,"Vocк pegou seus equipamentos de Ladrao\n",strlen(equipou));
        strins(equipou,"Tome cuidado para nгo floodar no /equiparladrao\n",strlen(equipou));
        strins(equipou,"\n",strlen(equipou));
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
        GivePlayerWeapon(playerid, 1, 1);
        GivePlayerWeapon(playerid, 4, 1);
        GivePlayerWeapon(playerid, 46, 5);
        GivePlayerWeapon(playerid, 24, 999);
        GivePlayerWeapon(playerid, 26, 999);
        GivePlayerWeapon(playerid, 29, 999);
        GivePlayerWeapon(playerid, 30, 999);
        GivePlayerWeapon(playerid, 34, 999);
        ShowPlayerDialog(playerid,8439, DIALOG_STYLE_MSGBOX, "{F60000} ----------------------  Vocк se Equipou  ---------------------- ",equipou, "Fechar", "");
    }
    return 1;
}
// ================= [ Equipar Policia] ========================================
if(strcmp("/equiparpolicia", cmdtext, true, 10) == 0)
{
    if (IsPlayerInRangeOfPoint(playerid,10, -71.5867,-299.6118,6.4286))
	{
        new equipou[360];
		new pName[MAX_PLAYER_NAME], string[100];
        GetPlayerName(playerid, pName, sizeof(pName));
        format(string, sizeof(string), "{00D900}%s {FFFFFF}Estб Patrulhando a {00D900}Cidade", pName);
		SendClientMessageToAll(CorPolicia, string);
        strins(equipou,"\n",strlen(equipou));
        strins(equipou,"Vocк pegou seus equipamentos de Policia Militar\n",strlen(equipou));
        strins(equipou,"Tome cuidado para nгo floodar no /equiparpolicia\n",strlen(equipou));
        strins(equipou,"\n",strlen(equipou));
        SetPlayerHealth(playerid, 100); 
        SetPlayerArmour(playerid, 100); 
        GivePlayerWeapon(playerid, 1, 1);
        GivePlayerWeapon(playerid, 4, 1); 
        GivePlayerWeapon(playerid, 46, 5); 
        GivePlayerWeapon(playerid, 24, 999); 
        GivePlayerWeapon(playerid, 26, 999); 
        GivePlayerWeapon(playerid, 29, 999); 
        GivePlayerWeapon(playerid, 30, 999); 
        GivePlayerWeapon(playerid, 34, 999); 
        ShowPlayerDialog(playerid,8439, DIALOG_STYLE_MSGBOX, "{F60000} ----------------------  Vocк se Equipou  ---------------------- ",equipou, "Fechar", "");
    }
    return 1;
}
// ====================== [ Status ] ===========================================
	if (strcmp("/status", cmdtext, true, 8) == 0)
	{
        Status(playerid);
		return 1;
    }
//=========================== [ Hq Ladroes ] ===================================
if(strcmp(cmdtext, "/hqladrao", true) == 0)
{
    if(LevelADM[playerid] < 1) return SendClientMessage(playerid, -1, "Vocк nгo й {FF0091}Administrador");
	if(LevelADM[playerid] == 1)
	{
			SendClientMessage(playerid, CorLadrao, "Vocк foi para a HQ Ladores");
			SetPlayerPos(playerid,127.0779,-168.1700,1.5781);
		}
		return 1;
	}
//=========================== [ Hq Policia ] ===================================
if(strcmp(cmdtext, "/hqpolicia", true) == 0)
{
    if(LevelADM[playerid] < 1) return SendClientMessage(playerid, -1, "Vocк nгo й {FF0091}Administrador");
	if(LevelADM[playerid] == 1)
	{
			SendClientMessage(playerid, CorPolicia, "Vocк foi para a HQ Policia Militar");
			SetPlayerPos(playerid,-50.0021,-298.7091,5.4297);
		}
		return 1;
	}
//======================== [ Jetpack HELPER ] ==================================
	if(strcmp(cmdtext, "/jetpackhelper", true) == 0)
    {
		new pName[MAX_PLAYERS];
    	new string[200];
        if(Helper[playerid] < 1) return SendClientMessage(playerid, -1, "Vocк nгo й {4DBF36}Helper");
        if(Helper[playerid] == 1)
		{
			SendClientMessage(playerid, -1, "Vocк Pegou seu JetPack {4DBF36}Helper");
            SetPlayerSpecialAction(playerid, 2); // JETPACK
            GetPlayerName(playerid, pName, sizeof(pName));
            format(string, sizeof(string), "{4DBF36}%s {FFFFFF}Pegou seu {4DBF36}JetPack {FFFFFF}de {4DBF36}Helper", pName);
            SendClientMessageToAll(CorPolicia, string);
        }
		return true;
	}
//======================== [ Jetpack VIP ] =====================================
	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;
	}
//======================== [ Jetpack ADM ] =====================================
	if(strcmp(cmdtext, "/jetpack", true) == 0)
    {
		new pName[MAX_PLAYERS];
    	new string[200];
        if(LevelADM[playerid] < 1) return SendClientMessage(playerid, -1, "Vocк nгo й {FF0091}Administrador");
        if(LevelADM[playerid] == 1)
		{
			SendClientMessage(playerid, -1, "Vocк Pegou seu JetPack {FF0000}Administrador");
            SetPlayerSpecialAction(playerid, 2); // JETPACK
            GetPlayerName(playerid, pName, sizeof(pName));
            format(string, sizeof(string), "{FF0000}%s {FFFFFF}Pegou seu {FF0000}JetPack {FFFFFF}de Administrador", pName);
            SendClientMessageToAll(CorPolicia, string);
        }
		return true;
	}
//======================== [ Guerra Motel ] ============================
	if(strcmp(cmdtext, "/motel", true) == 0)
    {
		new pName[MAX_PLAYERS];
    	new string[200];
		{
    		SetPlayerPos(playerid,2203.7830,-1198.6079,1029.7969);
    		SetPlayerInterior(playerid,15);
    		ResetPlayerWeapons(playerid);
    		GivePlayerWeapon(playerid,23,500);
    		GivePlayerWeapon(playerid,29,1000);
    		GivePlayerWeapon(playerid,31,1000);
    		GivePlayerWeapon(playerid,33,500);
			GetPlayerName(playerid, pName, sizeof(pName));
			format(string, sizeof(string), "{FF0000}%s {FFFFFF}foi para o {FF0000}( / Motel )", pName);
			SendClientMessageToAll(CorPolicia, string);
			SendClientMessage(playerid, -1, "Para Sair digite {FF0000}( / Kill )");
        }
		return true;
	}
//======================== [ Kit de Vip ;D ] ===================================
	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);// Vida
			SetPlayerArmour(playerid, 100.0);// Colete
			GivePlayerWeapon(playerid, 24, 9999);// Arma
			GivePlayerWeapon(playerid, 31, 9999);// Arma
			GivePlayerWeapon(playerid, 26, 9999);// Arma
			GivePlayerWeapon(playerid, 34, 9999);// Arma
			GivePlayerWeapon(playerid, 38, 9999);// Arma
			GivePlayerWeapon(playerid, 34, 9999);// Arma
			GivePlayerWeapon(playerid, 35, 9999);// Arma
			GivePlayerMoney(playerid, 100000);// dinheiro
			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;
	}
//======================== [ Kit de Administrador ] ============================
	if(strcmp(cmdtext, "/kitadm", true) == 0)
    {
		new pName[MAX_PLAYERS];
    	new string[200];
		if(LevelADM[playerid] < 1) return SendClientMessage(playerid, -1, "Vocк nгo й {FF0091}Administrador");
        if(LevelADM[playerid] == 1)
		{
			SendClientMessage(playerid, -1, "Vocк pegou seu kit de {FF0000}Administrador");
			SetPlayerHealth(playerid, 100.0);// Vida
			SetPlayerArmour(playerid, 100.0);// Colete
			GivePlayerWeapon(playerid, 24, 9999);// Arma
			GivePlayerWeapon(playerid, 31, 9999);// Arma
			GivePlayerWeapon(playerid, 26, 9999);// Arma
			GivePlayerWeapon(playerid, 34, 9999);// Arma
			GivePlayerWeapon(playerid, 38, 9999);// Arma
			GivePlayerWeapon(playerid, 34, 9999);// Arma
			GivePlayerWeapon(playerid, 35, 9999);// Arma
			GivePlayerMoney(playerid, 100000);// dinheiro
			GetPlayerName(playerid, pName, sizeof(pName));
			format(string, sizeof(string), "{FF0000}%s {FFFFFF}Pegou seu {FF0000}Kit {FFFFFF}de Admistrador", pName);
			SendClientMessageToAll(CorPolicia, string);
        }
		return true;
	}
	// ============================ [ Ajuda Geral ... ] ========================
	if(!strcmp("/ajuda", cmdtext, true))
	{
	    ShowPlayerDialog(playerid, 357, DIALOG_STYLE_LIST, "Central de {E0461B}Ajuda", "\tAjuda Vip\n\n\tAjuda Emprego\n\n\tAjuda Geral", "Selecionar", "Cancelar");
		return 1;
	}
	// ============================ Estilos de Luta ] ========================
	if(!strcmp("/mudarluta", cmdtext, true))
	{
	    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;
	}
	// ============================ Equipamentos Ladrao Pesado] ========================
	if(!strcmp("/Armaspesadas", cmdtext, true))
	{
	    if (IsPlayerInRangeOfPoint(playerid,10, 167.8530,-155.1791,6.7786))
		{
			ShowPlayerDialog(playerid, 1144, DIALOG_STYLE_LIST, "Armamentos {00D900}Pesados", "Equipamentos {00D900}Pesados", "Selecionar", "Cancelar");
		}
		return 1;
	}
	// ============================ Equipamentos Ladrao Leves ] ========================
	if(!strcmp("/armasleves", cmdtext, true))
	{
	    if (IsPlayerInRangeOfPoint(playerid,10, 170.3174,-177.5551,9.7786))
	 	{
	    	ShowPlayerDialog(playerid, 2255, DIALOG_STYLE_LIST, "Armamentos {00D900}Leves", "Equipamentos {00D900}Pesados", "Selecionar", "Cancelar");
		}
		return 1;
	}
	// ============================ Equipamentos Policia Pesados] ========================
	if(!strcmp("/armamentopesado", cmdtext, true))
	{
	    if (IsPlayerInRangeOfPoint(playerid,10, 255.4184,-187.5171,10.0963))
		{
			ShowPlayerDialog(playerid, 159, DIALOG_STYLE_LIST, "Armamentos {2641FE}Pesados", "Equipamentos {2641FE}Pesados", "Selecionar", "Cancelar");
		}
		return 1;
	}
// ============================ Equipamentos Policia Leves ] ========================
	if(!strcmp("/armamentoleve", cmdtext, true))
	{
		if (IsPlayerInRangeOfPoint(playerid,10, 247.8056,-175.8956,10.0963))
		{
			ShowPlayerDialog(playerid, 147, DIALOG_STYLE_LIST, "Armamentos {2641FE}Leves", "Equipamentos {2641FE}Leves", "Selecionar", "Cancelar");
		}
		return 1;
	}
// =================== [ Se Matar /kill ] ======================================
   if (strcmp(cmdtext, "/kill", true)==0)
    {
        SendClientMessage(playerid,0x0000FFAA,"Vocк se matou!"); // MENSAGEM
		SetPlayerHealth(playerid, 0); // DANDO SANGUE 0 !
        return 1;
    }
// ================== [ Mudar de Team ] ========================================
	if(strcmp(cmdtext, "/mudarteam",true)==0)
	{
		ForceClassSelection(playerid);
		SendClientMessage(playerid, CorLadrao,"Aguarde Para Mudar de Skin...");
		SetPlayerHealth(playerid, 0.00);
		return true;
	}
// ======================= [ Assaltar ] ========================================
    new Fonte[256];
    if(strcmp(cmdtext, "/assaltar", true) == 0)
    {
        if(MercadoAssaltado == 1)
        {
            SendClientMessage(playerid, -1, "O Mercado estб com o cofre vazio.");
            return 1;
        }
        if(IsPlayerInRangeOfPoint(playerid, 9.9, 252.5711,-54.4791,1.5776))
        {
            AssaltandoMercado = playerid;
            format(Fonte, sizeof(Fonte), "{FF0000}Atenзгo{FFFFFF}! O Mercado De Utilidades estб sendo assaltada por {FF0000}%s.", JogadorNick(playerid));
            SendClientMessageToAll(-1, Fonte);
            SendClientMessage(playerid, -1, "Aguarde perto ao cofre para concluir o assalto.");
            SetPlayerWantedLevel(playerid, 6);
            SetTimerEx("AssaltoMercado", 30000, 0, "d", playerid);
            return 1;
        }
        else
        {
            SendClientMessage(playerid, -1, "Vocк nгo estб no Mercado.");
             return 1;
        }
    }
    return SendClientMessage(playerid, -1, "[{FF0000}SeRvEr{FFFFFF}] Comando Nгo Existe, Digite {FF0000}/ajuda {FFFFFF}para mais informaзoes");//Fim.
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        SendClientMessage(playerid, -1,"Tome cuidado para nгo sofrer {FF0000}acidentes");
		return 1;
   }

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


public MensagemAutomatica()
{
	new LipeStronda[128];
	new MSGrandon = random(sizeof(MensagensAutomaticas));
	format(LipeStronda, sizeof(LipeStronda), "%s", MensagensAutomaticas[MSGrandon]);
	SendClientMessageToAll(CorAnuncio, LipeStronda);
	return 1;
}


public LiberarAssaltoMercado()
{
    MercadoAssaltado = 0;
    AssaltandoMercado = 999;
    SendClientMessageToAll(-1, "O Mercado De Utilidades informa que os caixas jб estгo prontos para atender os clientes, o dinheiro do assalto foi recomposto.");
    return 1;
}


public AssaltoMercado(playerid)
{
    if(IsPlayerConnected(playerid) && AssaltandoMercado != 999)
    {
        if(IsPlayerInRangeOfPoint(playerid, 9.9, 252.5711,-54.4791,1.5776))
        {
            GivePlayerMoney(playerid, 100000);
            SendClientMessageToAll(-1, "Os Policiais falharam, o Mercado De Utilidades foi assaltada - Os bandidos levaram um total de $100000.");
            SendClientMessage(playerid, -1, "Vocк recebeu $100000 do assalto ao mercado.");
            return 1;
        }
        else
        {
            SendClientMessageToAll(-1, "Os Policiais impediram com sucesso o assalto ao Mercado De Utilidades, os suspeitos fugiram.");
            SendClientMessage(playerid, -1, "Vocк nгo estб no Mercado.");
            return 1;
        }
    }
    MercadoAssaltado = 1;
    AssaltandoMercado = 999;
    SetTimer("LiberarAssaltoMercado", 90000, 0);
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
   SendClientMessage(playerid, -1, "Vocк Chegou no Seu Destino");
   return DisablePlayerCheckpoint(playerid);
}

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)
{
	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 OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
if ((newkeys==KEY_SECONDARY_ATTACK))//-- LETRA "F"
	{
    	OnPlayerCommandText(playerid,"/equiparpolicia");//-- Quando a pessoa aperta "F" й como se ela digitasse esse Comando!
    	OnPlayerCommandText(playerid,"/equiparladrao");//-- Quando a pessoa aperta "F" й como se ela digitasse esse Comando!
    	OnPlayerCommandText(playerid,"/entrarcovil");//-- Quando a pessoa aperta "F" й como se ela digitasse esse Comando!
    	OnPlayerCommandText(playerid,"/saircovil");//-- Quando a pessoa aperta "F" й como se ela digitasse esse Comando!
    	OnPlayerCommandText(playerid,"/entrar");//-- Quando a pessoa aperta "F" й como se ela digitasse esse Comando!
    	OnPlayerCommandText(playerid,"/sair");//-- Quando a pessoa aperta "F" й como se ela digitasse esse Comando!
	}
	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 == 19)
    {
	    if(response == 1)
    	{
		    if(listitem == 1)
			{
 			}
       			Tutorial[playerid] = 1;
				SpawnPlayer(playerid);
		}
        return 1;
    }
	if(dialogid == 18)
    {
	    if(response == 1)
    	{
		    if(listitem == 1)
			{
 			}
				GameTextForPlayer(playerid, "~b~Bem vindo Ao Policia x Ladrao", 4000, 6);
				for(new x = 0; x < 20; ++x) SendClientMessage(playerid, 0xFFFFFF00, " ");
   				SetPlayerCameraPos(playerid,109.1884,-297.5544,27.1432);
				SetPlayerCameraLookAt(playerid,109.9607,-296.0735,26.7482);
				ShowPlayerDialog(playerid,19,DIALOG_STYLE_MSGBOX,"{FF0000}-=-=- {FFFFFF}Tutorial Final {FF0000}-=-=-","Aqui й o fim do tutorial, esperamos que tenha aprendido algo com esse tutorial, agora voce pode matar assaltar roubar\nE ficar impune pelo seus crimes cometidos, assaltar 24/7 \nqualquer coisa digite /ajuda Para Saber um poco mais ;D","Jogar","Cancelar");
		}
        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 == 17)
    {
	    if(response == 1)
    	{
		    if(listitem == 1)
			{
 			}
				GameTextForPlayer(playerid, "~b~Tutorial Departamento de Policia", 3000, 6);
				for(new x = 0; x < 20; ++x) SendClientMessage(playerid, 0xFFFFFF00, " ");
   				SetPlayerCameraPos(playerid,109.1884,-297.5544,27.1432);
				SetPlayerCameraLookAt(playerid,109.9607,-296.0735,26.7482);
				ShowPlayerDialog(playerid,18,DIALOG_STYLE_MSGBOX,"{FF0000}-=-=- {FFFFFF}Tutorial Departamento de Policia {FF0000}-=-=-","Nunca tente envadir a DP com uma Arma na mao , mesmo sem arma tu vai levar tiro\nos cops nao estгo pra brincadeira, entao tome muito cuidado para nao levar tiro ou morrer.","Proximo","Cancelar");
		}
        return 1;
    }
	if(dialogid == 16)
    {
	    if(response == 1)
    	{
		    if(listitem == 1)
			{
 			}
				GameTextForPlayer(playerid, "~b~Tutorial Agindo", 3000, 6);
				for(new x = 0; x < 20; ++x) SendClientMessage(playerid, 0xFFFFFF00, " ");
   				SetPlayerCameraPos(playerid,109.1884,-297.5544,27.1432);
				SetPlayerCameraLookAt(playerid,109.9607,-296.0735,26.7482);
				ShowPlayerDialog(playerid,17,DIALOG_STYLE_MSGBOX,"{FF0000}-=-=- {FFFFFF}Tutorial Agindo{FF0000}-=-=-","aqui vocк pode fazer quase as mesmas coisas que na vida Real\nExemplo: Comprar Drogas , Armas , etc... pode matar pessoas\nFicar impune , mais tome cuidado com os policiais de ronda","Proximo","Cancelar");
		}
        return 1;
    }
    if(dialogid == 357)
    {
        if(response) {
            if(listitem == 0)
                return SendClientMessage(playerid, CorLadrao, " /kitvip || /jetpackvip || /vips || /comprarbomba || /reparar");
            else if(listitem == 1)
                return ShowPlayerDialog(playerid, orgs, DIALOG_STYLE_LIST, "Escolha Sua {2641FE}Organizaзao", "{391BE0}Policia Militar\n{44AB30}Ladrao", "Selecionar", "Cancelar");
            else if(listitem == 2)
                return SendClientMessage(playerid, CorLadrao, " ( / Mudarluta ) || ( / Kill ) || ( / MudarTeam ) || ( / Motel )"), SendClientMessage(playerid, CorLadrao, " ( / Assaltar ) || ( / RoubarEquipamento ) || ( / ArmasLeves ) || ( / ArmasPesadas)  || ( / ArmamentoPesado ) || ( / ArmamentoLeve )");
        }
        return 1;
    }
    if(dialogid == orgs)
    {
        if(response) {
            if(listitem == 0)
                return SendClientMessage(playerid, CorPolicia, " /ronda || /status || /ArmamentoPesado || /ArmamentoLeve || /equiparpolicia"); // Policia
            else if(listitem == 1)
                return SendClientMessage(playerid, CorLadrao, "/assaltar || /status || /armasleves || /armaspesadas || /equiparladrao"); // Ladrao
        }
        return 1;
    }
if(dialogid == FIGHTMENU)
    {
        if(response)
        {
            if(listitem == 0)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
                SendClientMessage(playerid, CorLadrao, " Voce aprendeu um estilo de luta !");
            }
            else if(listitem == 1)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
                SendClientMessage(playerid, CorLadrao, " Voce aprendeu um estilo de luta !");
            }
            else if(listitem == 2)
            {
              SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
              SendClientMessage(playerid, CorLadrao, " Voce aprendeu um estilo de luta !");
            }
            else if(listitem == 3)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
                SendClientMessage(playerid, CorLadrao, " Voce aprendeu um estilo de luta !");
            }
            else if(listitem == 4)
            {
              SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
              SendClientMessage(playerid, CorLadrao, " Voce aprendeu um estilo de luta !");
            }
            else if(listitem == 5)
            {
                SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
            }
        }
    }
if(dialogid == 1144)
{
    new pName[MAX_PLAYERS];
	new string[200];
    if(response)
    {
        if(listitem == 0)
        {
			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, 10, 9999);
			GivePlayerWeapon(playerid, 28, 9999);
			GivePlayerWeapon(playerid, 34, 9999);
            {
                GetPlayerName(playerid, pName, sizeof(pName));
                format(string, sizeof(string), "{00D900}%s {FFFFFF}Pegou Equipamentos Pesados de {00D900}Ladrao", pName);
                SendClientMessageToAll(CorPolicia, string);
	    		return true;
	    	}
		}
    }
    return 1;
}
if(dialogid == 2255)
{
    new pName[MAX_PLAYERS];
	new string[200];
    if(response)
    {
        if(listitem == 0)
        {
			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, 10, 9999);
			GivePlayerWeapon(playerid, 28, 9999);
			GivePlayerWeapon(playerid, 4, 9999);
            {
				GetPlayerName(playerid, pName, sizeof(pName));
                format(string, sizeof(string), "{00D900}%s {FFFFFF}Pegou Equipamentos Leves de {00D900}Ladrгo", pName);
                SendClientMessageToAll(CorLadrao, string);
	    		return true;
	    	}
		}
    }
    return 1;
}
if(dialogid == 159)
{
    new pName[MAX_PLAYERS];
	new string[200];
    if(response)
    {
        if(listitem == 0)
        {
			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, 10, 9999);
			GivePlayerWeapon(playerid, 28, 9999);
			GivePlayerWeapon(playerid, 34, 9999);
            {
				GetPlayerName(playerid, pName, sizeof(pName));
                format(string, sizeof(string), "{2641FE}%s {FFFFFF}Pegou Equipamentos Pesados de {2641FE}Policia", pName);
                SendClientMessageToAll(CorPolicia, string);
	    		return true;
	    	}
		}
    }
    return 1;
}
if(dialogid == 147)
{
    new pName[MAX_PLAYERS];
	new string[200];
    if(response)
    {
        if(listitem == 0)
        {
			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, 10, 9999);
			GivePlayerWeapon(playerid, 28, 9999);
			GivePlayerWeapon(playerid, 4, 9999);
            {
				GetPlayerName(playerid, pName, sizeof(pName));
                format(string, sizeof(string), "{2641FE}%s {FFFFFF}Pegou Equipamentos Leves de {2641FE}Policia", pName);
                SendClientMessageToAll(CorPolicia, string);
	    		return true;
	    	}
		}
    }
    return 1;
}
if(dialogid == REGISTRO)
	{
		if(response)
		{
		    if(!strlen(inputtext))
		    {
				new Nome[MAX_PLAYER_NAME];
				GetPlayerName(playerid, Nome, sizeof(Nome));
				new String[150];
	        	format(String, sizeof(String), "{FFFFFF}Bem vindo ao Policia x Ladrao\n\n{FF0000}Nome: {FFFFFF}%s\n{FF0000}Status: {FFFFFF}Nгo Registrado\n\n Digite sua senha para logar:", 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[300];
			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,"LevelADM",0);
			dini_IntSet(String,"Vip",0);
			ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", "{FFFFFF}Bem vindo ao Policia x Ladrao\n\n{FF0000}Status: {FFFFFF}Registrado\n\n Digite sua senha para logar:", "Logar", "Cancelar");
			return 1;
		}
        else
        {
            SendClientMessage(playerid, 0xFF0000AA, "Vocк Foi Kickado Porque Nгo Quis Se Registrar!!");
            Kick(playerid);
            return 1;
        }
    }
    if(dialogid == LOGIN)
	{
		if(response)
		{
			if(!strlen(inputtext))
		    {
				new Nome[MAX_PLAYER_NAME];
				GetPlayerName(playerid, Nome, sizeof(Nome));
				new String[150];
				format(String, sizeof(String), "{FFFFFF}Bem vindo ao Policia x Ladrao\n\n{FF0000}Nome: {FFFFFF}%s\n{FF0000}Status: {FFFFFF}Registrado\n\n Digite sua senha para logar:", 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[300];
			format(String, sizeof(String), CONTAS, Nome);
			if(!strcmp(inputtext,dini_Get(String,"Senha"),false))
			{
			    SetarPlayer(playerid);
			    Logou[playerid]++;
                SendClientMessage(playerid,-1,"Vocк foi logado com {00D900}Sucesso {FFFFFF} Escolha sua Equipe");
         		return 1;
    		}
			else
			{
			    SendClientMessage(playerid,0x00FF00AA,"Senha incorreta digite-a novamente");
				format(String, sizeof(String), "{FFFFFF}Bem vindo ao Policia x Ladrao\n\n{FF0000}Nome: {FFFFFF}%s\n{FF0000}Status: {FFFFFF}Registrado\n\n Digite sua senha para logar:", 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;
		}
	}
	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,"LevelADM", LevelADM[playerid]);
    dini_IntSet(String,"Vip", Vip[playerid]);
    dini_IntSet(String,"Helper", Helper[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");
    LevelADM[playerid] = dini_Int(String, "LevelADM");
    Vip[playerid] = dini_Int(String, "Vip");
    Helper[playerid] = dini_Int(String, "Helper");
	return 1;
}

Status(playerid)
{
	new Nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    new String[128];
    SendClientMessage(playerid, 0xFF0000AA, "================================================");
	format(String, sizeof(String),"Status De %s",Nome);
	SendClientMessage(playerid, 0xFFFF00AA,String);
	format(String, sizeof(String),"Level: %d",Matou[playerid]);
	SendClientMessage(playerid, 0x1E90FFAA,String);
	format(String, sizeof(String),"Dinheiro: %d", GetPlayerMoney(playerid));
	SendClientMessage(playerid, 0x1E90FFAA,String);
	format(String, sizeof(String),"Matou: %d",Matou[playerid]);
	SendClientMessage(playerid, 0x1E90FFAA,String);
	format(String, sizeof(String),"Morreu: %d",Morreu[playerid]);
	SendClientMessage(playerid, 0x1E90FFAA,String);
	format(String, sizeof(String),"Administrador: Level: %d",LevelADM[playerid]);
	SendClientMessage(playerid, 0x1E90FFAA,String);
	format(String, sizeof(String),"Vocк Jб Logou %d Vezes Neste Servidor",Logou[playerid]);
	SendClientMessage(playerid, 0x1E90FFAA,String);
	format(String, sizeof(String),"Seu level de Vip й %d",Vip[playerid]);
	SendClientMessage(playerid, 0x1E90FFAA,String);
 	format(String, sizeof(String),"Helper Level: %d",Helper[playerid]);
	SendClientMessage(playerid, 0x1E90FFAA,String);
	SendClientMessage(playerid, 0xFF0000AA, "================================================");
}
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;
}
stock sTutorial(playerid)
{
       Tutorial[playerid] = 1;
       SpawnPlayer(playerid);
       return 1;
}
stock ForcarComando(playerid, cmdtext[])
{
    CallRemoteFunction("OnPlayerCommandText", "ds", playerid, cmdtext);
    return true;
}
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;
}
PS: Nгo irei postar download
PS2: Sistema de Helper,Vip,Admin
PS3: Sistema de Tutorial obs: nao salvavel, pois se desligar o server vai aparecer dnv.
PS4: Chega de PS


Re: Policia x Ladrao - RockFire - 21.08.2011

Gostei, bem organizado o cуdigo ._.


Re: Policia x Ladrao - Lipe_Stronda - 21.08.2011

obg


Re: Policia x Ladrao - MiTToS - 21.08.2011

GM Bбsico, mas bom. Parabens!
Poderia ter feito algumas coisas diferentes, como, redefinir o MAX_PLAYERS, usar uma stock para pegar os nomes do jogadores, ajuntar os dois timers em uma ъnica public, para poupar de ter de criar outro timer, poderia tambйm ter feito uma string global, para nгo ter que toda horar criar outra string. Quando fizer comparaзхes use else if.

Fora isso, bom. curti.

EDIT: Vi que vocк usou uma stock JogarNick, mas em alguns lugares estб usando o mйtodo 'padrгo' para obter o nick.
EDIT2: Ganhou reputaзгo, como disse.. Й bбsico mas bom, melhor do que muitos que tem aqui.


Re: Policia x Ladrao - Izaac Abreu - 21.08.2011

Parabens simples e objetivo. Vou te dar 1 reputation como incentivo


Re: Policia x Ladrao - Lipe_Stronda - 21.08.2011

Valeu ^^


Re: Policia x Ladrao - JonathanFeitosa - 21.08.2011

Muito Legal, + Reputation.


Re: Policia x Ladrao - Lipe_Stronda - 21.08.2011

Obg jfs, e izaac

Quote:
Originally Posted by MiTToS
View Post
GM Bбsico, mas bom. Parabens!
Poderia ter feito algumas coisas diferentes, como, redefinir o MAX_PLAYERS, usar uma stock para pegar os nomes do jogadores, ajuntar os dois timers em uma ъnica public, para poupar de ter de criar outro timer, poderia tambйm ter feito uma string global, para nгo ter que toda horar criar outra string. Quando fizer comparaзхes use else if.

Fora isso, bom. curti.

EDIT: Vi que vocк usou uma stock JogarNick, mas em alguns lugares estб usando o mйtodo 'padrгo' para obter o nick.
EDIT2: Ganhou reputaзгo, como disse.. Й bбsico mas bom, melhor do que muitos que tem aqui.
Valeu Miitos


Re: Policia x Ladrao - BrunoBSF - 21.08.2011

Muito Maneiro parabens


Re: Policia x Ladrao - MaGnO_357 - 22.08.2011

Muito Bom Felipe 10/10 + REP xD