[GameMode] Killing For Ever [TDM/DM]
#1

Estou sem tempo para fazer projetos, ando jogando Lineage II entгo fico sem tempo para fazer projetos, esse gamemode jб estб pronto a uns 3 meses, espero que gostem, quando tiver tempo edito o post e posto mais coisas sobre o gamememode.

Code:
//Creditos: LipeStronda, comando /duvida feito por william_luigi
// Creditos: TiagoPS pelo sistema de registro.

#include <	a_samp	 >
#include <	dini	 >

#define Registro 125
#define Login    225
#define Duvida 124
#define Contas "Players/%s.ini"
#define NomeServidor "-> Killing For Ever -<"

#define GrooveStreet 1
#define Ballas 2
#define Aztecas 3
#define Vagos 4
#define DaNangBoys 5
#define Triads 6
#define Bikers 7

new NomesVeiculos[][] =
{
    "Landstalker","Bravura","Buffalo","Linerunner","Pereniel","Sentinel","Dumper","Firetruck","Trashmaster",
    "Limosine","Manana","Infernus","Voodoo","Pony","Mule","Cheetah","Ambulancia","Leviathan","Moonbeam","Esperanto",
    "Taxi","Washington","Bobcat","Mr Whoopee","BF Injection","Hunter","Premier","Enforcer","Securicar","Banshee",
    "Predator","Bus","Rhino","Barracks","Hotknife","Trailer","Previon","Coach","Cabbie","Stallion","Rumpo",
    "RC Bandit","Romero","Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer",
    "Turismo","Speeder","Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley's RC Van","Skimmer",
    "PCJ-600","Faggio","Freeway","RC Baron","RC Raider","Glendale","Oceanic","Sanchez","Sparrow","Patriot",
    "Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler","ZR-350","Walton","Regina","Comet","BMX",
    "Burrito","Camper","Marquis","Baggage","Dozer","Maverick","News Chopper","Rancher","FBI Rancher","Virgo",
    "Greenwood","Jetmax","Hotring","Sandking","Blista Compact","Maverick Policial","Boxville","Benson","Mesa",
    "RC Goblin","Hotring Racer A","Hotring Racer B","Bloodring Banger","Rancher","Super GT","Elegant",
    "Journey","Bike","Mountain Bike","Beagle","Cropdust","Stunt","Tanker","RoadTrain","Nebula","Majestic",
    "Buccaneer","Shamal","Hydra","FCR-900","NRG-500","HPV1000","Cement Truck","Tow Truck","Fortune","Cadrona",
    "FBI Truck","Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Blade","Freight",
    "Streak","Vortex","Vincent","Bullet","Clover","Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob",
    "Tampa","Sunrise","Merit","Utility","Nevada","Yosemite","Windsor","Monster A","Monster B","Uranus",
    "Jester","Sultan","Stratum","Elegy","Raindance","RC Tiger","Flash","Tahoma","Savanna","Bandito","Freight",
    "Trailer","Kart","Mower","Duneride","Sweeper","Broadway","Tornado","AT-400","DFT-30","Huntley","Stafford",
    "BF-400","Newsvan","Tug","Trailer A","Emperor","Wayfarer","Euros","Hotdog","Club","Trailer B","Trailer C",
    "Andromada","Dodo","RC Cam","Launch","Viatura (LSPD)","Viatura (SFPD)","Viatura (LVPD)","Police Ranger",
    "Picador","S.W.A.T. Van","Alpha","Phoenix","Glendale","Sadler","Luggage Trailer A","Luggage Trailer B",
    "Stair Trailer","Boxville","Farm Plow","Utility Trailer"
};

new Text:Box,
	Text:Logou2,
	Text:AdminLevel,
	Text:Matou2,
	Text:Morreu2,
	Text:Level,
	Text:Velocimetro0,
	Text:Velocimetro1,
	Text:Velocimetro2,
	Text:Velocimetro3,
	Text:Killing2,
	Text:ServidorQualidade,
	Text:Textdraw0,
	Text:Textdraw1,
	Text:Textdraw2,
	Text:Textdraw3,
	Text:Textdraw4,
	Text:Textdraw5,
	Text:Textdraw6,
	Text:Textdraw7,
	Text:Textdraw8,
	Text:Textdraw9,
	criado;
	
forward MensagemParaAdmin(COLOR,const string[]);
	
new texto1[50],
	texto2[50],
	texto3[50],
	// Eu tirei o 4 ._.
	texto5[50],
	texto6[50],
	texto7[50],
	texto8[50],
	texto9[50],
	Disperdicio[260];
	
new Float:CorX,Float:CorY,Float:CorZ;

new Administrador[MAX_PLAYERS],
	LipeStronda[MAX_PLAYERS],
	Nome[MAX_PLAYER_NAME],
	Matou[MAX_PLAYERS],
	Morreu[MAX_PLAYERS],
	Mute[MAX_PLAYERS],
	Logou[MAX_PLAYERS];
	
main()
{
	print("\t**   *** **  **      ** ****     ** ***********");
	print("\t**  **   **  **      ** ****     ** **         ");
	print("\t** **    **  **      ** ** **    ** **         ");
	print("\t****     **  **      ** **  **   ** **  *******");
	print("\t** **    **  **      ** **   **  ** **       **");
	print("\t**  **   **  ******  ** **    ** ** ***********");
	print("\t**   *** **  ******  ** **     **** ***********\n");
	
	print("\n\t********  ********* ********");
	print("\t********  ********* ********");
	print("\t***       **     ** **    **");
	print("\t********  **     ** **    **");
	print("\t********  **     ** ********");
	print("\t***       ********* **    ***");
	print("\t***       ********* **     **\n");
	
	print("\t****** **         ** ***** *******");
	print("\t******  **       **  ***** *******");
	print("\t***      **     **   ***   **   **");
	print("\t******    **   **    ***** **   **");
	print("\t******     ** **     ***** *******");
	print("\t***         ***      ***   **   ***");
	print("\t******               ***** **    ***");
	print("\t******               ***** **     ***\n");
}

public OnGameModeInit()
{
	new server[50];
    format(server,sizeof(server),"hostname %s",NomeServidor);
    SendRconCommand(server);
	SetTimer("LevelRecebido", 600000, true);
	LoadObjetos();
	Killing2 = TextDrawCreate(14.000000, 314.000000, "~r~K~b~illing ~r~F~b~or ~r~E~b~ver");
	TextDrawBackgroundColor(Killing2, 255);
	TextDrawFont(Killing2, 3);
	TextDrawLetterSize(Killing2, 1.710000, 6.600000);
	TextDrawColor(Killing2, 65535);
	TextDrawSetOutline(Killing2, 1);
	TextDrawSetProportional(Killing2, 1);

	ServidorQualidade = TextDrawCreate(85.000000, 374.000000, "~r~S~b~ervidor ~r~D~b~e ~r~Q~b~ualidade");
	TextDrawBackgroundColor(ServidorQualidade, 255);
	TextDrawFont(ServidorQualidade, 3);
	TextDrawLetterSize(ServidorQualidade, 1.400000, 6.300000);
	TextDrawColor(ServidorQualidade, -1);
	TextDrawSetOutline(ServidorQualidade, 1);
	TextDrawSetProportional(ServidorQualidade, 1);
	
	Velocimetro0 = TextDrawCreate(613.000000, 108.000000, "             ");
	TextDrawBackgroundColor(Velocimetro0, 255);
	TextDrawFont(Velocimetro0, 1);
	TextDrawLetterSize(Velocimetro0, 0.500000, 0.799999);
	TextDrawColor(Velocimetro0, -1);
	TextDrawSetOutline(Velocimetro0, 0);
	TextDrawSetProportional(Velocimetro0, 1);
	TextDrawSetShadow(Velocimetro0, 1);
	TextDrawUseBox(Velocimetro0, 1);
	TextDrawBoxColor(Velocimetro0, 151587227);
	TextDrawTextSize(Velocimetro0, 494.000000, 175.000000);
	
	Velocimetro1 = TextDrawCreate(504.000000, 115.000000, "Velocidade:~n~    KM/H 0");
	TextDrawBackgroundColor(Velocimetro1, -16776961);
	TextDrawFont(Velocimetro1, 3);
	TextDrawLetterSize(Velocimetro1, 0.500000, 1.200000);
	TextDrawColor(Velocimetro1, -16776961);
	TextDrawSetOutline(Velocimetro1, 0);
	TextDrawSetProportional(Velocimetro1, 1);
	TextDrawSetShadow(Velocimetro1, 0);

	Velocimetro2 = TextDrawCreate(505.000000, 139.000000, "Lataria:~n~   0");
	TextDrawBackgroundColor(Velocimetro2, 255);
	TextDrawFont(Velocimetro2, 3);
	TextDrawLetterSize(Velocimetro2, 0.629999, 1.100000);
	TextDrawColor(Velocimetro2, 65535);
	TextDrawSetOutline(Velocimetro2, 0);
	TextDrawSetProportional(Velocimetro2, 1);
	TextDrawSetShadow(Velocimetro2, 1);

	Velocimetro3 = TextDrawCreate(505.000000, 162.000000, "Veiculo:~n~   Nenhum");
	TextDrawBackgroundColor(Velocimetro3, 255);
	TextDrawFont(Velocimetro3, 3);
	TextDrawLetterSize(Velocimetro3, 0.519999, 1.100000);
	TextDrawColor(Velocimetro3, -65281);
	TextDrawSetOutline(Velocimetro3, 0);
	TextDrawSetProportional(Velocimetro3, 1);
	TextDrawSetShadow(Velocimetro3, 1);
	SetTimer("Atualizar", 1000, true);
	Box = TextDrawCreate(639.000000, 432.000000, "-");
	TextDrawBackgroundColor(Box, 255);
	TextDrawFont(Box, 1);
	TextDrawLetterSize(Box, 0.500000, 1.000000);
	TextDrawColor(Box, -1);
	TextDrawSetOutline(Box, 0);
	TextDrawSetProportional(Box, 1);
	TextDrawSetShadow(Box, 1);
	TextDrawUseBox(Box, 1);
	TextDrawBoxColor(Box, 255);
	TextDrawTextSize(Box, 0.000000, 74.000000);

	Matou2 = TextDrawCreate(33.000000, 429.000000, "Matou: 0");
	TextDrawBackgroundColor(Matou2, 65535);
	TextDrawFont(Matou2, 3);
	TextDrawLetterSize(Matou2, 0.539999, 1.500000);
	TextDrawColor(Matou2, -16776961);
	TextDrawSetOutline(Matou2, 0);
	TextDrawSetProportional(Matou2, 1);
	TextDrawSetShadow(Matou2, 0);

	Morreu2 = TextDrawCreate(142.000000, 429.000000, "Morreu: 0");
	TextDrawBackgroundColor(Morreu2, -16776961);
	TextDrawFont(Morreu2, 3);
	TextDrawLetterSize(Morreu2, 0.539999, 1.500000);
	TextDrawColor(Morreu2, 65535);
	TextDrawSetOutline(Morreu2, 0);
	TextDrawSetProportional(Morreu2, 1);
	TextDrawSetShadow(Morreu2, 0);

	Logou2 = TextDrawCreate(260.000000, 429.000000, "Logou: 0");
	TextDrawBackgroundColor(Logou2, 65535);
	TextDrawFont(Logou2, 3);
	TextDrawLetterSize(Logou2, 0.539999, 1.500000);
	TextDrawColor(Logou2, 16711935);
	TextDrawSetOutline(Logou2, 0);
	TextDrawSetProportional(Logou2, 1);
	TextDrawSetShadow(Logou2, 0);

	Level = TextDrawCreate(355.000000, 429.000000, "Level: 0");
	TextDrawBackgroundColor(Level, 65535);
	TextDrawFont(Level, 3);
	TextDrawLetterSize(Level, 0.539999, 1.500000);
	TextDrawColor(Level, -65281);
	TextDrawSetOutline(Level, 0);
	TextDrawSetProportional(Level, 1);
	TextDrawSetShadow(Level, 0);

	AdminLevel = TextDrawCreate(450.000000, 429.000000, "AdminLevel: 0");
	TextDrawBackgroundColor(AdminLevel, 65535);
	TextDrawFont(AdminLevel, 3);
	TextDrawLetterSize(AdminLevel, 0.539999, 1.500000);
	TextDrawColor(AdminLevel, -16711681);
	TextDrawSetOutline(AdminLevel, 0);
	TextDrawSetProportional(AdminLevel, 1);
	TextDrawSetShadow(AdminLevel, 0);
	
	Textdraw0 = TextDrawCreate(503.000000, 136.000000, "Pontos Gangs");
	TextDrawBackgroundColor(Textdraw0, 255);
	TextDrawFont(Textdraw0, 3);
	TextDrawLetterSize(Textdraw0, 0.500000, 1.400000);
	TextDrawColor(Textdraw0, -1);
	TextDrawSetOutline(Textdraw0, 1);
	TextDrawSetProportional(Textdraw0, 1);

	Textdraw1 = TextDrawCreate(505.000000, 106.000000, "Killing");
	TextDrawBackgroundColor(Textdraw1, 255);
	TextDrawFont(Textdraw1, 3);
	TextDrawLetterSize(Textdraw1, 0.539999, 1.300000);
	TextDrawColor(Textdraw1, 65535);
	TextDrawSetOutline(Textdraw1, 1);
	TextDrawSetProportional(Textdraw1, 1);

	Textdraw2 = TextDrawCreate(521.000000, 118.000000, "For Ever");
	TextDrawBackgroundColor(Textdraw2, 255);
	TextDrawFont(Textdraw2, 3);
	TextDrawLetterSize(Textdraw2, 0.539999, 1.300000);
	TextDrawColor(Textdraw2, -16776961);
	TextDrawSetOutline(Textdraw2, 1);
	TextDrawSetProportional(Textdraw2, 1);

	Textdraw3 = TextDrawCreate(503.000000, 153.000000, "Groove: 0");
	TextDrawBackgroundColor(Textdraw3, 255);
	TextDrawFont(Textdraw3, 3);
	TextDrawLetterSize(Textdraw3, 0.500000, 1.400000);
	TextDrawColor(Textdraw3, 16711935);
	TextDrawSetOutline(Textdraw3, 1);
	TextDrawSetProportional(Textdraw3, 1);

	Textdraw4 = TextDrawCreate(503.000000, 170.000000, "Ballas: 0");
	TextDrawBackgroundColor(Textdraw4, 255);
	TextDrawFont(Textdraw4, 3);
	TextDrawLetterSize(Textdraw4, 0.500000, 1.400000);
	TextDrawColor(Textdraw4, -16711681);
	TextDrawSetOutline(Textdraw4, 1);
	TextDrawSetProportional(Textdraw4, 1);

	Textdraw5 = TextDrawCreate(503.000000, 186.000000, "Aztecas: 0");
	TextDrawBackgroundColor(Textdraw5, 255);
	TextDrawFont(Textdraw5, 3);
	TextDrawLetterSize(Textdraw5, 0.500000, 1.400000);
	TextDrawColor(Textdraw5, 65535);
	TextDrawSetOutline(Textdraw5, 1);
	TextDrawSetProportional(Textdraw5, 1);

	Textdraw6 = TextDrawCreate(503.000000, 202.000000, "Vagos: 0");
	TextDrawBackgroundColor(Textdraw6, 255);
	TextDrawFont(Textdraw6, 3);
	TextDrawLetterSize(Textdraw6, 0.500000, 1.400000);
	TextDrawColor(Textdraw6, -65281);
	TextDrawSetOutline(Textdraw6, 1);
	TextDrawSetProportional(Textdraw6, 1);

	Textdraw7 = TextDrawCreate(503.000000, 219.000000, "NangBoys: 0");
	TextDrawBackgroundColor(Textdraw7, 255);
	TextDrawFont(Textdraw7, 3);
	TextDrawLetterSize(Textdraw7, 0.500000, 1.400000);
	TextDrawColor(Textdraw7, 1463041535);
	TextDrawSetOutline(Textdraw7, 1);
	TextDrawSetProportional(Textdraw7, 1);

	Textdraw8 = TextDrawCreate(504.000000, 237.000000, "Triads: 0");
	TextDrawBackgroundColor(Textdraw8, 255);
	TextDrawFont(Textdraw8, 3);
	TextDrawLetterSize(Textdraw8, 0.509999, 1.600000);
	TextDrawColor(Textdraw8, -1);
	TextDrawSetOutline(Textdraw8, 1);
	TextDrawSetProportional(Textdraw8, 1);

	Textdraw9 = TextDrawCreate(505.000000, 255.000000, "Bikers: 0");
	TextDrawBackgroundColor(Textdraw9, 255);
	TextDrawFont(Textdraw9, 3);
	TextDrawLetterSize(Textdraw9, 0.509999, 1.600000);
	TextDrawColor(Textdraw9, -16776961);
	TextDrawSetOutline(Textdraw9, 1);
	TextDrawSetProportional(Textdraw9, 1);
	SetGameModeText(".:Killing For Ever:.");
	// Groove Street
	AddPlayerClass(105,2531.0586,-1666.2322,15.1678,183.9649,0,0,0,0,0,0); 		// Id: 0
	AddPlayerClass(106,2531.0586,-1666.2322,15.1678,183.9649,0,0,0,0,0,0); 		// Id: 1
	AddPlayerClass(107,2531.0586,-1666.2322,15.1678,183.9649,0,0,0,0,0,0); 		// Id: 2
	// Ballas
	AddPlayerClass(102,2531.0586,-1666.2322,15.1678,183.9649,0,0,0,0,0,0); 		// Id: 3
	AddPlayerClass(103,2531.0586,-1666.2322,15.1678,183.9649,0,0,0,0,0,0); 		// Id: 4
	AddPlayerClass(104,2531.0586,-1666.2322,15.1678,183.9649,0,0,0,0,0,0); 		// Id: 5
	// Aztecas
	AddPlayerClass(115,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); 		// Id: 6
	AddPlayerClass(116,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); 		// Id: 7
	AddPlayerClass(116,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); 		// Id: 8
	// Vagos
	AddPlayerClass(108,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); 		// Id: 9
	AddPlayerClass(109,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); 		// Id: 10
	AddPlayerClass(110,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); 		// Id: 11
	// Da Nang Boys
	AddPlayerClass(121,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); 		// Id: 12
	AddPlayerClass(122,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); 		// Id: 13
	AddPlayerClass(123,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); 		// Id: 14
	// Triads
	AddPlayerClass(117,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); 		// Id: 15
	AddPlayerClass(118,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); 		// Id: 16
	AddPlayerClass(120,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); 		// Id: 17
 	// Bikers
	AddPlayerClass(254,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); 		// Id: 18
	AddPlayerClass(247,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); 		// Id: 19
	AddPlayerClass(248,2232.2813,-1158.4985,29.7969,0.3858,0,0,0,0,0,0); 		// Id: 20
	return 1;
}

stock MensagemParaAdmin(COLOR,const string[])
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			if(Administrador[i])
			{
				SendClientMessage(i, COLOR, string);
			}
		}
	}
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid,1984.4445,157.9501,55.9384);
    SetPlayerCameraPos(playerid,1984.4445,160.9501,55.9384);
	SetPlayerCameraLookAt(playerid,1984.4445,157.9501,55.9384);
	SetPlayerFacingAngle(playerid,0.0);
	if((classid >= 0) && (classid <= 2))
	{
	    LipeStronda[playerid] = GrooveStreet; 
	    GameTextForPlayer(playerid,"~g~Groove Street",1000,6);
	}
	if((classid >= 3) && (classid <= 5))
	{
	    LipeStronda[playerid] = Ballas;
	    GameTextForPlayer(playerid,"~p~Ballas",1000,6);
	}
	if((classid >= 6) && (classid <= 8))
	{
	    LipeStronda[playerid] = Aztecas;
	    GameTextForPlayer(playerid,"~b~Aztecas",1000,6);
	}
	if((classid >= 9) && (classid <= 11))
	{
	    LipeStronda[playerid] = Vagos;
	    GameTextForPlayer(playerid,"~y~Vagos",1000,6);
	}
	if((classid >= 12) && (classid <= 14))
	{
	    LipeStronda[playerid] = DaNangBoys;
	    GameTextForPlayer(playerid,"~b~Da Nang Boys",1000,6);
	}
	if((classid >= 15) && (classid <= 17))
	{
	    LipeStronda[playerid] = Triads;
	    GameTextForPlayer(playerid,"~b~Triads",1000,6);
	}
	if((classid >= 18) && (classid <=20))
	{
	    LipeStronda[playerid] = Bikers;
	    GameTextForPlayer(playerid,"~r~Bikers",1000,6);
	}
    TextDrawHideForPlayer(playerid, Killing2);
    TextDrawHideForPlayer(playerid, ServidorQualidade);
	return 1;
}


public OnPlayerConnect(playerid)
{
	if(Administrador[playerid] >= 1)
	{
	    new Entrou[100];
		format(Entrou, 30, "~g~%s ~w~ON", Nome);
		GameTextForAll(Entrou, 5000, 3);
	}
	new Celulas[260];
	SendClientMessage(playerid, -1, " ");
	SendClientMessage(playerid, -1, " ");
	SendClientMessage(playerid, -1, " ");
	SendClientMessage(playerid, -1, " ");
	SendClientMessage(playerid, -1, " ");
	SendClientMessage(playerid, -1, " ");
	SendClientMessage(playerid, -1, " ");
	SendClientMessage(playerid, -1, " ");
	SendClientMessage(playerid, -1, " ");
	SendClientMessage(playerid, -1, "{0000FF}~~~~~~~~~~~~~~~~~~~ {32CD32}Killing For Ever {FFFF00}~~~~~~~~~~~~~~~~~~~");
	SendClientMessage(playerid, -1, "{FF0000}» Seja bem vindo(a) ao servidor!");
	SendClientMessage(playerid, -1, "{FF0000}» Vocк pode ver os comandos digitando /ajuda!");
	SendClientMessage(playerid, -1, "{FF0000}» Fale com um administrador digitando /duvida!");
	SendClientMessage(playerid, -1, "{FF0000}» Contato: felipegama_pty@hotmail.com");
	SendClientMessage(playerid, -1, "{0000FF}~~~~~~~~~~~~~~~~~~~ {32CD32}Killing For Ever {FFFF00}~~~~~~~~~~~~~~~~~~~");
	TextDrawShowForPlayer(playerid, Killing2);
	TextDrawShowForPlayer(playerid, ServidorQualidade);
	GetPlayerName(playerid, Nome, sizeof(Nome));
	format(Celulas, sizeof(Celulas), Contas, Nome);
	if(!dini_Exists(Celulas))
	{
		format(Celulas, sizeof(Celulas), "{1E90FF}========================================\n\n{FFFFFF}Status de Sua Conta\n\nNome: [ {1E90FF}%s {FFFFFF}]\n\nStatus: [ {1E90FF}Nгo Registrado {FFFFFF}]\n\nDigite Uma {1E90FF}Senha{FFFFFF} para Continuar\n\n{1E90FF}========================================", Nome);
		ShowPlayerDialog(playerid, Registro, DIALOG_STYLE_INPUT, "Registro", Celulas, "Registrar", "Cancelar");
	}
	else
	{
		format(Celulas, sizeof(Celulas), "{1E90FF}========================================\n\n{FFFFFF}Status de Sua Conta\n\nNome: [ {1E90FF}%s {FFFFFF}]\n\nStatus: [ {1E90FF}Registrado {FFFFFF}]\n\nDigite Uma {1E90FF}Senha{FFFFFF} para Continuar\n\n{1E90FF}========================================", Nome);
        ShowPlayerDialog(playerid, Login, DIALOG_STYLE_INPUT, "Registro", Celulas, "Logar", "Cancelar");
	}
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    new Celulas[260];
    switch(reason)
    {
        case 0: format(Celulas, sizeof(Celulas), "{00BFFF}%s {FFFFFF}se desconectou do servidor. {00BFFF}[Crash]", Nome);
        case 1: format(Celulas, sizeof(Celulas), "{00BFFF}%s {FFFFFF}se desconectou do servidor. {00BFFF}[Conta Prуpria]", Nome);
        case 2: format(Celulas, sizeof(Celulas), "{00BFFF}%s {FFFFFF}se desconectou do servidor. {00BFFF}[Kickado ou Banido]", Nome);
	}
	SendClientMessageToAll(-1, Celulas);
    SalvarPlayer(playerid);
	return 1;
}

public OnPlayerSpawn(playerid)
{
	if(LipeStronda[playerid] == GrooveStreet)
	{
        SetPlayerPos(playerid, 2481.6372,-1665.2344,15.1317);
	}
	if(LipeStronda[playerid] == Ballas)
	{
		SetPlayerPos(playerid, 1913.5216,-1081.6240,24.2578);
	}
	if(LipeStronda[playerid] == Aztecas)
	{
		SetPlayerPos(playerid, 1718.9722,-1935.4141,16.6065);
	}
	if(LipeStronda[playerid] == Vagos)
	{
		SetPlayerPos(playerid, 2805.6816,-1180.0239,25.4387);
	}
	if(LipeStronda[playerid] == DaNangBoys)
	{
	    SetPlayerPos(playerid, 378.3397,-2047.9520,7.8301);
	}
	if(LipeStronda[playerid] == Bikers)
	{
	    SetPlayerPos(playerid, 1220.0334,-2013.0535,65.5233);
	}
	TextDrawShowForPlayer(playerid, Textdraw0);
	TextDrawShowForPlayer(playerid, Textdraw1);
	TextDrawShowForPlayer(playerid, Textdraw2);
    TextDrawShowForPlayer(playerid, Textdraw3);
    TextDrawShowForPlayer(playerid, Textdraw4);
    TextDrawShowForPlayer(playerid, Textdraw5);
    TextDrawShowForPlayer(playerid, Textdraw6);
    TextDrawShowForPlayer(playerid, Textdraw7);
    TextDrawShowForPlayer(playerid, Textdraw8);
    TextDrawShowForPlayer(playerid, Textdraw9);
	TextDrawShowForPlayer(playerid, Box);
	TextDrawShowForPlayer(playerid, Matou2);
	TextDrawShowForPlayer(playerid, Morreu2);
	TextDrawShowForPlayer(playerid, Logou2);
	TextDrawShowForPlayer(playerid, AdminLevel);
	TextDrawShowForPlayer(playerid, Level);
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    if(LipeStronda[killerid] == GrooveStreet)
    {
        new Celula[50];
        Matou[killerid] ++;
        format(Celula, sizeof Celula, "Groove: %d", Matou);
        TextDrawSetString(Textdraw3, Celula);
        for(new i=0; i<MAX_PLAYERS; i++)
		{
    		TextDrawShowForPlayer(i, Textdraw3);
		}
    }
    if(LipeStronda[killerid] == Ballas)
    {
        new Celula[50];
        Matou[killerid] ++;
        format(Celula, sizeof Celula, "Ballas: %d", Matou);
        TextDrawSetString(Textdraw4, Celula);
        for(new i=0; i<MAX_PLAYERS; i++)
		{
    		TextDrawShowForPlayer(i, Textdraw4);
		}
    }
    if(LipeStronda[killerid] == Aztecas)
    {
        new Celula[50];
        Matou[killerid] ++;
        format(Celula, sizeof Celula, "Aztecas: %d", Matou);
        TextDrawSetString(Textdraw5, Celula);
        for(new i=0; i<MAX_PLAYERS; i++)
		{
    		TextDrawShowForPlayer(i, Textdraw5);
		}
    }
    if(LipeStronda[killerid] == Vagos)
    {
        new Celula[50];
        Matou[killerid] ++;
        format(Celula, sizeof Celula, "Vagos: %d", Matou);
        TextDrawSetString(Textdraw6, Celula);
        for(new i=0; i<MAX_PLAYERS; i++)
		{
    		TextDrawShowForPlayer(i, Textdraw6);
		}
	}
    if(LipeStronda[killerid] == DaNangBoys)
    {
        new Celula[50];
        Matou[killerid] ++;
        format(Celula, sizeof Celula, "NangBoys: %d", Matou);
        TextDrawSetString(Textdraw7, Celula);
        for(new i=0; i<MAX_PLAYERS; i++)
		{
    		TextDrawShowForPlayer(i, Textdraw7);
		}
    }
    if(LipeStronda[killerid] == Triads)
    {
        new Celula[50];
        Matou[killerid] ++;
        format(Celula, sizeof Celula, "Triads: %d", Matou);
        TextDrawSetString(Textdraw8, Celula);
        for(new i=0; i<MAX_PLAYERS; i++)
		{
    		TextDrawShowForPlayer(i, Textdraw8);
		}
	}
    if(LipeStronda[killerid] == Bikers)
    {
        new Celula[50];
        Matou[killerid] ++;
        format(Celula, sizeof Celula, "Bikers: %d", Matou);
        TextDrawSetString(Textdraw9, Celula);
        for(new i=0; i<MAX_PLAYERS; i++)
		{
    		TextDrawShowForPlayer(i, Textdraw9);
		}
	}
	if(IsPlayerConnected(killerid))
	{
		Matou[killerid]++;
	}
	Morreu[playerid]++;
	return 1;
}

strtok(const string[], &index)
{
	new length = strlen(string);
	while ((index < length) && (string[index] <= ' '))
	{
		index++;
	}

	new offset = index;
	new result[20];
	while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = string[index];
		index++;
	}
	result[index - offset] = EOS;
	return result;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	new cmd[128], idx;
	new tmp[200];
	cmd = strtok(cmdtext, idx);
 	new Nome1[100];
	new Nome2[100];
	if(strcmp(cmd, "/aa", true ) == 0 )
	{
	    if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] >= 1)
	    {
			SendClientMessage(playerid, -1,"-----------------------=> Comandos Administradores <=-----------------------");
			SendClientMessage(playerid, 0xFF0000FF,"/congelar /calar /skin /veiculo /destruir /descalar ");
			SendClientMessage(playerid, 0x00FFFFFF,"/descongelar /avisar /kick /ban /gmx /descongelartodos");
			SendClientMessage(playerid, 0xFF0000FF,"/prender /a /jetpack /vida /tapa /congelartodos /grana");
			SendClientMessage(playerid, -1,"-----------------------=> Comandos Administradores <=-----------------------");
		}
		return 1;
	}
	if(strcmp(cmd, "/veiculo", true ) == 0 ) 
	{
	    if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] >= 1)
	    {
	    	ShowPlayerDialog(playerid, 852 ,DIALOG_STYLE_INPUT,"Sistema {FF5500}Veiculo","\t{FF5500}========================================\n\n{FFFFFF}Veiculos Disponiveis: Id {FF5500}400 {FFFFFF}ate {FF5500}609\n\n{FFFFFF}Crie o Seu, Se nгo for mais usar digite {FF5500}/destruir\n\n\t{FF5500}========================================","Criar","Cancelar");
		}
		return 1;
	}
	if(strcmp(cmd, "/destruir", true) == 0)
	{
		if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] >= 1)
	    {
	        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo estб em um veiculo");
	        if(IsPlayerInAnyVehicle(playerid))
		    {
				DestroyVehicle(criado);
			}
		}
		return 1;
	}
	if(strcmp(cmd, "/descalar", true) == 0)
	{
		if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] >= 1)
	    {
			tmp = strtok(cmdtext,idx);
			if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Use: /descalar [id]");
			if(!IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, -1, "Jogador nгo conectado!");
 			Mute[strval(tmp)] = 0;
			SendClientMessage(strval(tmp), -1, "Vocк agora jб pode falar");
		 	format(Disperdicio, sizeof(Disperdicio), "Administrador [{FF5500}%s{FFFFFF}] Descalou o Player [{FF5500}%s{FFFFFF}]", Nome2, Nome1);
 			SendClientMessageToAll(-1, Disperdicio);
		}
		return 1;
	}
	if(strcmp(cmdtext, "/mudarteam", true) == 0)
 	{
 		SendClientMessage(playerid, -1,"Aguarde Para Mudar de Skin...");
		SetPlayerHealth(playerid, 0.00);
		ForceClassSelection(playerid);
		return 1;
	}
	if(strcmp(cmdtext, "/kill", true) == 0)
 	{
		SetPlayerHealth(playerid, 0.00);
		return 1;
	}
	if(strcmp("/dinheiro", cmdtext, true) == 0)
	{
    	new Money = 5000 + random(30000);
   		format(Disperdicio, sizeof(Disperdicio), "~ Grana Gerada: {FF5500}%d {FFFFFF}R$", Money);
   		SendClientMessage(playerid, -1,Disperdicio);
   		GivePlayerMoney(playerid,Money);
		return 1;
 	}
	if(strcmp(cmdtext, "/navio", true) == 0)
	{
	    format(Disperdicio, sizeof(Disperdicio), "%s Foi para Navio Mata-Mata Vб tambem: ( /NAVIO )", Nome2);
	    SendClientMessageToAll(-1, Disperdicio);
	    SetPlayerPos(playerid,2837.6182,-2522.2969,21.2115);
	    return 1;
	}
	if(strcmp(cmdtext, "/corridax1", true) == 0)
	{
	    format(Disperdicio, sizeof(Disperdicio), "%s Foi para o X1 Na Arena de Corrida Vб tambem: ( /Corridax1 )", Nome2);
	    SendClientMessageToAll(-1, Disperdicio);
	    SetPlayerPos(playerid,2737.6025,-1760.3298,44.1428);
	    return 1;
	}
	if(strcmp(cmdtext, "/antenax1", true) == 0)
	{
	    format(Disperdicio, sizeof(Disperdicio), "%s Foi para o X1 Na Antena Gigante Vб tambem: ( /ANTENAX1 )", Nome2);
	    SendClientMessageToAll(-1, Disperdicio);
	    SetPlayerPos(playerid,-347.9783,1625.9731,75.4744);
	    return 1;
	}
	if(strcmp(cmdtext, "/x1", true) == 0)
	{
	    format(Disperdicio, sizeof(Disperdicio), "%s Foi para o Duelo de Duas Pessoas vб tambem: ( /X1 )", Nome2);
	    SendClientMessageToAll(-1, Disperdicio);
	    SetPlayerPos(playerid,1494.0419, -1136.7343, 135.8281);
	    return 1;
	}
	if(strcmp(cmd, "/descongelar", true) == 0)
	{
		if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] >= 1)
	    {
			tmp = strtok(cmdtext,idx);
        	GetPlayerName(strval(tmp), Nome1, sizeof(Nome1));
        	GetPlayerName(playerid, Nome2, sizeof(Nome2));
			if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Use: /descongelar [id]");
			if(!IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, -1, "Jogador nгo conectado!");
			TogglePlayerControllable(strval(tmp), 1);
	 	    SendClientMessage(strval(tmp), -1, "Vocк jб pode andar, vocк nгo estб mais congelado");
		 	format(Disperdicio, sizeof(Disperdicio), "Administrador [{FF5500}%s{FFFFFF}] Descongelou o Player [{FF5500}%s{FFFFFF}]", Nome2, Nome1);
 			SendClientMessageToAll(-1, Disperdicio);
		}
		return 1;
	}
	if(strcmp(cmd, "/congelar", true) == 0)
	{
		if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] >= 1)
	    {
			tmp = strtok(cmdtext,idx);
        	GetPlayerName(strval(tmp), Nome1, sizeof(Nome1));
        	GetPlayerName(playerid, Nome2, sizeof(Nome2));
			if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Use: /congelar [id]");
			if(!IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, -1, "Jogador nгo conectado!");
			TogglePlayerControllable(strval(tmp), 0);
	 	    SendClientMessage(strval(tmp), -1, "Vocк nгo pode mais andar, Vocк foi congelado!!!");
		 	format(Disperdicio, sizeof(Disperdicio), "Administrador [{FF5500}%s{FFFFFF}] Congelou o Player [{FF5500}%s{FFFFFF}]", Nome2, Nome1);
 			SendClientMessageToAll(-1, Disperdicio);
		}
		return 1;
	}
	if(strcmp(cmd, "/calar", true) == 0)
	{
		if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] >= 1)
	    {
			tmp = strtok(cmdtext,idx);
       		GetPlayerName(strval(tmp), Nome1, sizeof(Nome1));
        	GetPlayerName(playerid, Nome2, sizeof(Nome2));
			if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Use: /calar [id]");
			if(!IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, -1, "Jogador nгo conectado!");
			Mute[strval(tmp)] = 1;
	 	    SendClientMessage(strval(tmp), -1, "Vocк nгo pode mais falar, mutaram vocк!!!");
		 	format(Disperdicio, sizeof(Disperdicio), "Administrador [{FF5500}%s{FFFFFF}] Calou o Player [{FF5500}%s{FFFFFF}]", Nome2, Nome1);
 			SendClientMessageToAll(-1, Disperdicio);
		}
		return 1;
	}
	if(strcmp(cmd, "/skin", true) == 0)
	{
		if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] >= 1)
	    {
			tmp = strtok(cmdtext,idx);
			if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Use: /skin [id skin]");
			SetPlayerSkin(playerid,strval(tmp));
	 	    SendClientMessage(playerid, -1, "Vocк Mudou sua Skin!!!");
		}
		return 1;
	}
 	if(strcmp(cmd, "/an", true) == 0 || strcmp(cmd, "/anuncio", true) == 0)
    {
		if(Mute[playerid] == 1)
		{
    		SendClientMessage(playerid, -1,"Vocк nгo pode falar!!!");
    		return 0;
		}
		strmid(tmp, cmdtext, 4, strlen(cmdtext));
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, 0xFFFFFFFF, "Use: /anuncio [texto]");
    		return 1;
		}
		if(IsPlayerConnected(playerid))
		{
    		SendClientMessageToAll(-1, "{A10028}================= {FFDA05}>- {056DFF}Anuncio {00D0FF}-< {FFDA05}=================");
   		    GetPlayerName(playerid, Nome, sizeof(Nome));
    		format(Disperdicio, sizeof(Disperdicio), "Nome: [%s] Id: [%d] Anuncio: %s",Nome,playerid,tmp);
    		SendClientMessageToAll(0x52D615FF, Disperdicio);
    		return 1;
        }
    }
 	if(strcmp(cmd, "/av", true) == 0 || strcmp(cmd, "/avisar", true) == 0)  
    {
	    if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] >= 1)
	    {
			if(Mute[playerid] == 1)
			{
    			SendClientMessage(playerid, -1,"Vocк nгo pode falar!!!");
    			return 0;
			}
			strmid(tmp, cmdtext, 4, strlen(cmdtext));
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, 0xFFFFFFFF, "Use: /avisar [texto]");
    			return 1;
			}
			if(IsPlayerConnected(playerid))
			{
    			SendClientMessageToAll(-1, "{C7007E}================= {00D0FF}>- {FF0000}Aviso do Administrador {00D0FF}-< {C7007E}=================");
   		    	GetPlayerName(playerid, Nome, sizeof(Nome));
				format(Disperdicio, sizeof(Disperdicio), "{00A80B}Administrador {FF5500}%s: {FFFFFF}%s",Nome,tmp);
				SendClientMessageToAll(0x33CCFFAA, Disperdicio);
    			return 1;
			}
		}
    }
	if(strcmp(cmd, "/kick", true) == 0)
	{
	    if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] >= 1)
		{
			tmp = strtok(cmdtext, idx);
        	GetPlayerName(strval(tmp), Nome1, sizeof(Nome1));
        	GetPlayerName(playerid, Nome2, sizeof(Nome2));
			if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Use: /kick [playerid]");
			if(!IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, -1, "Jogador nгo conectado!");
 			format(Disperdicio, sizeof(Disperdicio), "Administrador [{FF5500}%s{FFFFFF}] Deu um Kick no Player: [{FF5500}%s{FFFFFF}]", Nome2, Nome1);
 			SendClientMessageToAll(-1, Disperdicio);
			Kick(strval(tmp));
		}
		return 1;
	}
	if(strcmp(cmd, "/gmx", true) == 0)
	{
	    if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] >= 1)
		{
		    new hour, minute, second;
			GetPlayerName(playerid, Nome, sizeof(Nome));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' ')){ idx++; }
			new offset = idx, result[100];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))){ result[idx - offset] = cmdtext[idx];idx++;}
			result[idx - offset] = EOS;
			if(strlen(result) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Use: /gmx [motivo]");
			{
			    gettime(hour, minute, second);
				format(Disperdicio, sizeof(Disperdicio), "Motivo do Gmx: [{FF5500}%s{FFFFFF}] Administrador: [{FF5500}%s{FFFFFF}] Hora: [{FF5500}%02d:%02d:%02d{FFFFFF}]",result, Nome, hour, minute, second);
				SendClientMessageToAll(-1, Disperdicio);
				GameTextForAll("~r~G~b~M~g~X", 5000, 5);
				for(new i = 0; i < MAX_PLAYERS; i++)
				{
					if(IsPlayerConnected(i))
					{
						SetPlayerCameraPos(i,1460.0, -1324.0, 287.2);
						SetPlayerCameraLookAt(i,1374.5, -1291.1, 239.0);
					}
				}
			}
		}
		return 1;
	}
	if(strcmp(cmd, "/descongelartodos", true) == 0)
	{
	    if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] == 1)
		{
	    	format(Disperdicio, sizeof(Disperdicio), "{FFFFFF}O Administrador {FF5500}%s{FFFFFF} Descongelou Todos.", Nome);
	    	SendClientMessageToAll(-1, Disperdicio);
			for(new i = 0; i < GetMaxPlayers(); i++)
			{
	    		TogglePlayerControllable(i, 1);
	    	}
		}
		return 1;
  	}
	if(strcmp(cmd, "/prender", true) == 0)
	{
	    if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] >= 1)
		{
		    tmp = strtok(cmdtext,idx);
        	GetPlayerName(strval(tmp), Nome1, sizeof(Nome1));
        	GetPlayerName(playerid, Nome2, sizeof(Nome2));
      		if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Use: /prender [id]");
	    	if(!IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, -1, "Jogador nгo conectado!");
   			format(Disperdicio, sizeof(Disperdicio), "O Administrador {FF5500}%s {FFFFFF}Lhe prendeu", Nome2);
	    	SendClientMessage(strval(tmp), -1, Disperdicio);
   			format(Disperdicio, sizeof(Disperdicio), "{FFFFFF}O Administrador {FF5500}%s{FFFFFF} Prendeu {FF5500}%s {FFFFFF}No Carandiru!!!", Nome2, Nome1);
	    	SendClientMessageToAll(-1, Disperdicio);
			SetPlayerPos(strval(tmp), -227.027999,1401.229980,27.765625);
			SetPlayerInterior(strval(tmp), 18);
		}
		return 1;
  	}
 	if(strcmp(cmd, "/a", true) == 0 || strcmp(cmd, "/admin", true) == 0) 
    {
	    if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] >= 1)
	    {
			if(Mute[playerid] == 1)
			{
    			SendClientMessage(playerid, -1,"Vocк nгo pode falar!!!");
    			return 0;
			}
			strmid(tmp, cmdtext, 2, strlen(cmdtext));
			if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Use: /a [texto]");
			if(IsPlayerConnected(playerid))
			{
   		    	GetPlayerName(playerid, Nome, sizeof(Nome));
				format(Disperdicio, sizeof(Disperdicio), "Chat: Level: %d Administrador: %s Diz: %s",Administrador[playerid], Nome,tmp);
				MensagemParaAdmin(0x1E90FFFF, Disperdicio);
    			return 1;
			}
		}
    }
	if(strcmp(cmdtext, "/jetpack", true) == 0)
	{
	    if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] == 1)
	    {
    		if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFF000AA, "Impossivel usar um jetpack em um carro!!!");
    		SetPlayerSpecialAction(playerid, 2);
   		}
	    return 1;
	}
	if(strcmp(cmd, "/vida", true) == 0)
	{
	    if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] == 1)
		{
			tmp = strtok(cmdtext, idx);
			GetPlayerName(strval(tmp), Nome1, sizeof(Nome1));
        	GetPlayerName(playerid, Nome2, sizeof(Nome2));
			new ID;
			ID = strval(tmp);
			tmp = strtok(cmdtext, idx);
			new Quantia;
			Quantia = strval(tmp);
			SetPlayerHealth(ID,Quantia);
		 	format(Disperdicio, sizeof(Disperdicio), "Administrador [{FF5500}%s{FFFFFF}] Setou a vida de: [{FF5500}%s{FFFFFF}] Para: [{FF5500}%d{FFFFFF}]", Nome2, Nome1, Quantia);
 			SendClientMessageToAll(-1, Disperdicio);
			return 1;
		}
	}
	if(strcmp(cmd, "/tapa", true) == 0)
	{
	    if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] == 1)
		{
		    tmp = strtok(cmdtext,idx);
		    if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Use: /tapa [id]");
        	if(!IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, -1, "Jogador nгo conectado!");
        	GetPlayerName(playerid, Nome2, sizeof(Nome2));
   			format(Disperdicio, sizeof(Disperdicio), "O Administrador %s Lhe Deu um Tapa.", Nome2);
	    	SendClientMessage(strval(tmp), 0x2641FEAA, Disperdicio);
			GetPlayerPos(strval(tmp), CorX, CorY, CorZ);
			SetPlayerPos(strval(tmp), CorX, CorY, CorZ+12);
		}
		return 1;
  	}
  	if(strcmp(cmdtext, "/ajuda", true) == 0)
  	{
		SendClientMessage(playerid, -1," ============================= Comandos ==============================");
  	    SendClientMessage(playerid, -1,"/mudarteam /kill /dinheiro /corridax1 /antenax1 /an /x1");
  	    return 1;
	}
	if(strcmp(cmd, "/congelartodos", true) == 0)
	{
	    if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
		if(Administrador[playerid] == 1)
		{
	    	format(Disperdicio, sizeof(Disperdicio), "{FFFFFF}O Administrador {FF5500}%s{FFFFFF} Congelou Todos.", Nome);
	    	SendClientMessageToAll(-1, Disperdicio);
			for(new i = 0; i < GetMaxPlayers(); i++)
			{
	    		TogglePlayerControllable(i, 0);
	    	}
		}
		return 1;
  	}
	if(strcmp(cmd,"/duvida",true) == 0)
	{
	    ShowPlayerDialog(playerid, 124, DIALOG_STYLE_INPUT,"Relato","Informe o ocorrido","Enviar","Cancelar");
	    return 1;
	}
	if(strcmp(cmd, "/ban", true) == 0)
	{
	    if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] >= 1)
		{
			tmp = strtok(cmdtext, idx);
        	GetPlayerName(strval(tmp), Nome1, sizeof(Nome1));
        	GetPlayerName(playerid, Nome2, sizeof(Nome2));
			if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Use: /ban [playerid]");
			if(!IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, -1, "Jogador nгo conectado!");
    		format(Disperdicio, sizeof(Disperdicio), "Administrador [{FF5500}%s{FFFFFF}] Deu um Ban no Player: [{FF5500}%s{FFFFFF}]", Nome2, Nome1);
 			SendClientMessageToAll(-1, Disperdicio);
			Ban(strval(tmp));
		}
		return 1;
	}
	if (strcmp("/grana", cmdtext, true) == 0)
	{
	    if(Administrador[playerid] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo й um {FF5500}Administrador");
	    if(Administrador[playerid] >= 1)
		{
    		new Money = 5000 + random(30000);
    		format(Disperdicio, sizeof(Disperdicio), "~ Grana Gerada: {FF5500}%d {FFFFFF}R$", Money);
    		SendClientMessage(playerid, -1,Disperdicio);
    		GivePlayerMoney(playerid,Money);
		}
		return 1;
 	}
	return 0;
}

public OnPlayerText(playerid, text[])
{
    if(strfind(text, "www.") != -1 || strfind(text, "com.br") != -1 || strfind(text, "forumeiros.com") != -1)
    {
		SendClientMessage(playerid, -1, "Impossivel Digiter Indereзo da Web");
		return 1;
    }
	if(Mute[playerid] == 1)
	{
	    SendClientMessage(playerid, -1,"Vocк nгo pode falar!!!");
	    return 0;
	}
	return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if(newstate == PLAYER_STATE_DRIVER)
	{
        TextDrawShowForPlayer(playerid, Velocimetro0);
        TextDrawShowForPlayer(playerid, Velocimetro1);
        TextDrawShowForPlayer(playerid, Velocimetro2);
        TextDrawShowForPlayer(playerid, Velocimetro3);
        TextDrawHideForPlayer(playerid, Textdraw3);
        TextDrawHideForPlayer(playerid, Textdraw4);
        TextDrawHideForPlayer(playerid, Textdraw5);
        TextDrawHideForPlayer(playerid, Textdraw6);
        TextDrawHideForPlayer(playerid, Textdraw7);
        TextDrawHideForPlayer(playerid, Textdraw8);
        TextDrawHideForPlayer(playerid, Textdraw0);
        TextDrawHideForPlayer(playerid, Textdraw1);
        TextDrawHideForPlayer(playerid, Textdraw2);
        TextDrawHideForPlayer(playerid, Textdraw9);
	}
	if(oldstate == PLAYER_STATE_DRIVER)
	{
		TextDrawShowForPlayer(playerid, Textdraw0);
		TextDrawShowForPlayer(playerid, Textdraw1);
		TextDrawShowForPlayer(playerid, Textdraw2);
	    TextDrawShowForPlayer(playerid, Textdraw3);
	    TextDrawShowForPlayer(playerid, Textdraw4);
	    TextDrawShowForPlayer(playerid, Textdraw5);
	    TextDrawShowForPlayer(playerid, Textdraw6);
	    TextDrawShowForPlayer(playerid, Textdraw7);
	    TextDrawShowForPlayer(playerid, Textdraw8);
	    TextDrawShowForPlayer(playerid, Textdraw9);
	    TextDrawHideForPlayer(playerid, Velocimetro0);
	    TextDrawHideForPlayer(playerid, Velocimetro1);
	    TextDrawHideForPlayer(playerid, Velocimetro2);
	    TextDrawHideForPlayer(playerid, Velocimetro3);
	}
	return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == 124)
	{
	    if(response) 
	    {
	        new
	            wiiStr[128],
	            wiiN[MAX_PLAYER_NAME]
	        ;
	        GetPlayerName(playerid, wiiN, sizeof( wiiN ));
	        for(new i, x = GetMaxPlayers(); i < x; i++)
	        {
	            if(Administrador[i] == 1) 
	            {
	                format(wiiStr,sizeof( wiiStr ), "{FF0543}Relato de [{1E05FF}%s{FF0543}]: [{1E05FF}%s{FF0543}]",wiiN, inputtext);
	                SendClientMessage(i, -1, wiiStr);
	                return 1;
	            }
	        }
	    }
	    return 1;
	}
    if(dialogid == 852)
    {
   		if(response)
        {
			criado = GetPlayerVehicleID(playerid);
            new Float:Angulo;
			if(!inputtext[0] || strval(inputtext) < 400 || strval(inputtext) > 609) return SendClientMessage(playerid, -1,"ID Dos Carros Apenas de 400 a 609.");
	 	    if(IsPlayerInAnyVehicle(playerid))  return SendClientMessage(playerid,-1,"Vocк Jб Estб em um Veiculo.");
	 	    GetPlayerPos(playerid,CorX, CorY, CorZ);
	 	    GetPlayerFacingAngle(playerid, Angulo);
			criado = PutPlayerInVehicle(playerid, CreateVehicle(strval(inputtext),CorX, CorY, CorZ, Angulo+2,random(999),random(999),-1),0);
			format(Disperdicio,128,"O Administrador {FF5500}%s {FFFFFF}Criou um Veiculo, ID: {FF5500}%d{FFFFFF}.", Nome, strval(inputtext));
	 	    SendClientMessageToAll(-1,Disperdicio);
		}
		return 1;
  	}
	if(dialogid == Registro)
	{
	    new Celulas[260];
		if(response)
		{
		    if(!strlen(inputtext))
		    {
				GetPlayerName(playerid, Nome, sizeof(Nome));
	        	format(Celulas, sizeof(Celulas), "{1E90FF}========================================\n\n{FFFFFF}Status de Sua Conta\n\nNome: [ {1E90FF}%s {FFFFFF}]\n\nStatus: [ {1E90FF}Nгo Registrado {FFFFFF}]\n\nDigite Uma {1E90FF}Senha{FFFFFF} para Continuar\n\n{1E90FF}========================================", Nome);
		        ShowPlayerDialog(playerid, Registro, DIALOG_STYLE_INPUT, "Registro", Celulas, "Registrar", "Cancelar");
				SendClientMessage(playerid,0x1E90FFAA,"Senha invalida, digite uma senha vбlida");
				return 1;
			}
			GetPlayerName(playerid, Nome, sizeof(Nome));
			format(Celulas, sizeof(Celulas), Contas, Nome);
			dini_Create(Celulas);
			dini_Set(Celulas,"Senha",inputtext);
			dini_IntSet(Celulas,"Matou",0);
			dini_IntSet(Celulas,"Morreu",0);
			dini_IntSet(Celulas,"Logou",0);
			dini_IntSet(Celulas,"Administrador",0);
			format(Celulas, sizeof(Celulas), "{1E90FF}========================================\n\n{FFFFFF}Status de Sua Conta\n\nNome: [ {1E90FF}%s {FFFFFF}]\n\nStatus: [ {1E90FF}Registrado {FFFFFF}]\n\nDigite Uma {1E90FF}Senha{FFFFFF} para Continuar\n\n{1E90FF}========================================", Nome);
    		ShowPlayerDialog(playerid, Login, DIALOG_STYLE_INPUT, "Registro", Celulas, "Logar", "Cancelar");
			return 1;
		}
        else
        {
            SendClientMessage(playerid, 0xFF0000AA, "Vocк Foi Kickado Porque Nгo Quis Se Registrar!!");
            Kick(playerid);
            return 1;
        }
    }
    if(dialogid == Login)
	{
	    new Celulas[260];
		if(response)
		{
			if(!strlen(inputtext))
		    {
				GetPlayerName(playerid, Nome, sizeof(Nome));
				format(Celulas, sizeof(Celulas), "{1E90FF}========================================\n\n{FFFFFF}Status de Sua Conta\n\nNome: [ {1E90FF}%s {FFFFFF}]\n\nStatus: [ {1E90FF}Registrado {FFFFFF}]\n\nDigite Uma {1E90FF}Senha{FFFFFF} para Continuar\n\n{1E90FF}========================================", Nome);
       		    ShowPlayerDialog(playerid, Login, DIALOG_STYLE_INPUT, "Registro", Celulas, "Logar", "Cancelar");
				SendClientMessage(playerid,0x1E90FFAA,"Senha Incorreta !");
				return 1;
			}
			GetPlayerName(playerid, Nome, sizeof(Nome));
			format(Celulas, sizeof(Celulas), Contas, Nome);
			if(!strcmp(inputtext,dini_Get(Celulas,"Senha"),false))
			{
			    SetarPlayer(playerid);
			    Logou[playerid]++;
			    SendClientMessage(playerid,0x00FF00AA,"Vocк Foi Logado Com Sucesso > Escolha Sua Skin!");
			    return 1;
			}
			else
			{
			    SendClientMessage(playerid,0x00FF00AA,"Senha incorreta digite-a novamente");
				format(Celulas, sizeof(Celulas), "{1E90FF}========================================\n\n{FFFFFF}Status de Sua Conta\n\nNome: [ {1E90FF}%s {FFFFFF}]\n\nStatus: [ {1E90FF}Registrado {FFFFFF}]\n\nDigite Uma {1E90FF}Senha{FFFFFF} para Continuar\n\n{1E90FF}========================================", Nome);
        		ShowPlayerDialog(playerid, Login, DIALOG_STYLE_INPUT, "Registro", Celulas, "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 Celulas[260];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    format(Celulas, sizeof(Celulas), Contas, Nome);
    dini_IntSet(Celulas,"Matou", Matou[playerid]);
    dini_IntSet(Celulas,"Morreu", Morreu[playerid]);
    dini_IntSet(Celulas,"Logou", Logou[playerid]);
    dini_IntSet(Celulas,"Administrador", Administrador[playerid]);
    return 1;
}

SetarPlayer(playerid)
{
    new Celulas[260];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    format(Celulas, sizeof(Celulas), Contas, Nome);
    Matou[playerid] = dini_Int(Celulas, "Matou");
    Morreu[playerid] = dini_Int(Celulas, "Morreu");
    Logou[playerid] = dini_Int(Celulas, "Logou");
    Administrador[playerid] = dini_Int(Celulas, "Administrador");
	return 1;
}


forward LevelRecebido(playerid);
public LevelRecebido(playerid)
{
	for(new i = 0; i != MAX_PLAYERS; ++i) if(IsPlayerConnected(i))
	{
	    new Money = 5000 + random(30000), DinheiroRecebido[50];
		SetPlayerScore(i, GetPlayerScore(playerid)+1);
		SendClientMessage(i, 0x4EEE94FF,"=== -> Hora do Pagamento  < - ===");
		format(DinheiroRecebido, sizeof DinheiroRecebido, "Dinheiro Recebido: %d R$ ", Money);
		SendClientMessage(i, 0x00BFFFFF, DinheiroRecebido);
		GivePlayerMoney(playerid,Money);
		SendClientMessage(i, 0x00BFFFFF,"Level Recebido: +1 ");
		SendClientMessage(i, 0x4EEE94FF,"=== -> ================== < - ===");
	}
}

forward Atualizar(playerid);
public Atualizar(playerid)
{
    new Float:Lataria;
    GetVehicleHealth(GetPlayerVehicleID(playerid), Lataria);
    new veiculo = GetPlayerVehicleID(playerid);
	format(texto1, sizeof texto1, "Matou: %d", Matou[playerid]);
	TextDrawSetString(Matou2, texto1);
	format(texto2, sizeof texto2, "Logou: %d", Logou[playerid]);
	TextDrawSetString(Logou2, texto2);
	format(texto3, sizeof texto3, "Administrador: %d", Administrador[playerid]);
	TextDrawSetString(AdminLevel, texto3);
	// Aqui era pra ta o 4 mais eu tirei ._.
	format(texto5, sizeof texto5, "Level: %d", GetPlayerScore(playerid));
	TextDrawSetString(Level, texto5);
	format(texto6, sizeof texto6, "Morreu: %d", Morreu[playerid]);
	TextDrawSetString(Morreu2, texto6);
    format(texto7, sizeof(texto7), "Velocidade:~n~    KM/H %d", GetPlayerSpeed(playerid));
	TextDrawSetString(Velocimetro1, texto7);
 	format(texto8, sizeof(texto8), "Veiculo:~n~   %s", NomesVeiculos[GetVehicleModel(veiculo)-400]);
 	TextDrawSetString(Velocimetro3, texto8);
  	format(texto9, sizeof(texto9), "Lataria:~n~   %0.0f%%", Lataria);
 	TextDrawSetString(Velocimetro2, texto9);
}

stock GetPlayerSpeed(playerid)
{
    new Float:ST[4];
    if(IsPlayerInAnyVehicle(playerid))
    GetVehicleVelocity(GetPlayerVehicleID(playerid),ST[0],ST[1],ST[2]);
    else GetPlayerVelocity(playerid,ST[0],ST[1],ST[2]);
    ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) + floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 100.3;
    return floatround(ST[3]);
}

stock LoadObjetos()
{
	AddStaticVehicleEx(402,2478.54052734,-1679.86230469,13.27799797,0.00000000,86,1,15); //Buffalo
	AddStaticVehicleEx(402,2481.09228516,-1679.78320312,13.27799797,0.00000000,86,1,15); //Buffalo
	AddStaticVehicleEx(402,2483.59765625,-1679.80029297,13.27799797,0.00000000,86,1,15); //Buffalo
	AddStaticVehicleEx(402,2486.12646484,-1679.73449707,13.27799797,0.00000000,86,1,15); //Buffalo
	AddStaticVehicleEx(402,2482.35253906,-1690.96435547,13.27799797,354.00000000,86,1,15); //Buffalo
	AddStaticVehicleEx(402,2488.85156250,-1679.82092285,13.27799797,0.00000000,86,1,15); //Buffalo
	AddStaticVehicleEx(402,2491.34619141,-1679.80676270,13.27799797,0.00000000,86,1,15); //Buffalo
	AddStaticVehicleEx(402,2493.94287109,-1679.96386719,13.27799797,0.00000000,86,1,15); //Buffalo
	AddStaticVehicleEx(402,2473.33984375,-1692.64306641,13.27799797,357.99597168,86,1,15); //Buffalo
	AddStaticVehicleEx(487,2501.74389648,-1672.05688477,13.62005806,220.00000000,86,1,15); //Maverick
	AddStaticVehicleEx(522,2497.74780273,-1680.75329590,13.01627350,0.00000000,86,1,15); //NRG-500
	AddStaticVehicleEx(522,2498.60693359,-1680.83068848,13.01627350,0.00000000,86,1,15); //NRG-500
	AddStaticVehicleEx(522,2499.37988281,-1680.87622070,13.01627350,0.00000000,86,1,15); //NRG-500
	AddStaticVehicleEx(402,1886.93469238,-1087.15100098,23.86938477,0.00000000,5,-1,15); //Buffalo
	AddStaticVehicleEx(402,1889.55151367,-1087.19824219,23.86938477,0.00000000,5,-1,15); //Buffalo
	AddStaticVehicleEx(402,1892.13269043,-1087.25549316,23.86938477,0.00000000,5,-1,15); //Buffalo
	AddStaticVehicleEx(402,1894.68774414,-1087.20996094,23.86938477,0.00000000,5,-1,15); //Buffalo
	AddStaticVehicleEx(402,1897.27111816,-1087.26574707,23.86938477,0.00000000,5,-1,15); //Buffalo
	AddStaticVehicleEx(402,1899.68127441,-1087.22204590,23.86938477,0.00000000,5,-1,15); //Buffalo
	AddStaticVehicleEx(402,1901.97290039,-1087.41796875,23.95452309,359.99591064,5,-1,15); //Buffalo
	AddStaticVehicleEx(402,1904.48828125,-1087.57788086,23.95452309,359.99450684,5,-1,15); //Buffalo
	AddStaticVehicleEx(522,1907.66369629,-1087.75170898,23.94518661,0.00000000,5,-1,15); //NRG-500
	AddStaticVehicleEx(522,1908.37719727,-1087.94531250,23.94518661,0.00000000,5,-1,15); //NRG-500
	AddStaticVehicleEx(522,1909.12475586,-1087.99255371,23.94518661,0.00000000,5,-1,15); //NRG-500
	AddStaticVehicleEx(487,1886.82629395,-1094.75720215,25.44088364,268.00000000,5,-1,15); //Maverick
	AddStaticVehicleEx(487,1714.58752441,-1911.76892090,13.83153057,270.00000000,2,1,15); //Maverick
	AddStaticVehicleEx(402,1723.71801758,-1929.51953125,13.50891495,0.00000000,2,1,15); //Buffalo
	AddStaticVehicleEx(402,1721.24523926,-1929.48156738,13.50891495,0.00000000,2,1,15); //Buffalo
	AddStaticVehicleEx(402,1718.94274902,-1929.38903809,13.50891495,0.00000000,2,1,15); //Buffalo
	AddStaticVehicleEx(402,1712.68566895,-1929.97790527,13.50891495,0.00000000,2,1,15); //Buffalo
	AddStaticVehicleEx(402,1710.26770020,-1930.05310059,13.50891495,0.00000000,2,1,15); //Buffalo
	AddStaticVehicleEx(402,1707.56274414,-1930.01672363,13.50891495,0.00000000,2,1,15); //Buffalo
	AddStaticVehicleEx(402,1704.92382812,-1930.07153320,13.46953297,0.00000000,2,1,15); //Buffalo
	AddStaticVehicleEx(522,1727.06970215,-1919.94494629,13.22543526,0.00000000,2,1,15); //NRG-500
	AddStaticVehicleEx(522,1726.52783203,-1911.95434570,13.22543526,0.00000000,2,1,15); //NRG-500
	AddStaticVehicleEx(522,1726.77636719,-1904.17260742,13.15431881,0.00012207,2,1,15); //NRG-500
	AddStaticVehicleEx(402,2823.83105469,-1187.11901855,25.14512825,0.00000000,6,1,15); //Buffalo
	AddStaticVehicleEx(402,2827.04785156,-1195.62927246,25.14512825,6.00000000,6,1,15); //Buffalo
	AddStaticVehicleEx(402,2829.59277344,-1195.63952637,25.14512825,4.00000000,6,1,15); //Buffalo
	AddStaticVehicleEx(402,2821.27441406,-1187.05334473,25.14512825,0.00000000,6,1,15); //Buffalo
	AddStaticVehicleEx(402,2818.63867188,-1186.98413086,25.14512825,0.00000000,6,1,15); //Buffalo
	AddStaticVehicleEx(402,2816.03320312,-1187.01306152,25.14512825,0.00000000,6,1,15); //Buffalo
	AddStaticVehicleEx(402,2813.14306641,-1186.91186523,25.14512825,0.00000000,6,1,15); //Buffalo
	AddStaticVehicleEx(402,2810.43457031,-1186.89770508,25.14512825,0.00000000,6,1,15); //Buffalo
	AddStaticVehicleEx(402,2807.77758789,-1186.90563965,25.14512825,0.00000000,6,1,15); //Buffalo
	AddStaticVehicleEx(402,2805.09082031,-1186.84033203,25.14512825,0.00000000,6,1,15); //Buffalo
	AddStaticVehicleEx(487,2852.03369141,-1174.02966309,25.04313850,60.00000000,6,1,15); //Maverick
	AddStaticVehicleEx(487,2853.60864258,-1187.29687500,24.99662209,59.99572754,6,1,15); //Maverick
	AddStaticVehicleEx(522,2826.23681641,-1171.37890625,24.80980682,180.00000000,6,1,15); //NRG-500
	AddStaticVehicleEx(522,2827.00244141,-1171.32983398,24.79781151,180.00000000,6,1,15); //NRG-500
	AddStaticVehicleEx(522,2827.91040039,-1171.23657227,24.79781151,180.00000000,6,1,15); //NRG-500
	AddStaticVehicleEx(402,375.53726196,-2018.92175293,7.77008915,0.00000000,84,1,15); //Buffalo
	AddStaticVehicleEx(402,375.75244141,-2025.71240234,7.77008915,0.00000000,84,1,15); //Buffalo
	AddStaticVehicleEx(402,375.80694580,-2032.03015137,7.77008915,0.00000000,84,1,15); //Buffalo
	AddStaticVehicleEx(402,375.71875000,-2038.23803711,7.77008915,0.00000000,84,1,15); //Buffalo
	AddStaticVehicleEx(402,363.97625732,-2039.49536133,7.77008915,0.00000000,84,1,15); //Buffalo
	AddStaticVehicleEx(402,364.04220581,-2031.82775879,7.77008915,0.00000000,84,1,15); //Buffalo
	AddStaticVehicleEx(402,363.94555664,-2025.54052734,7.77008915,0.00000000,84,1,15); //Buffalo
	AddStaticVehicleEx(402,364.01751709,-2019.36523438,7.77008915,0.00000000,84,1,15); //Buffalo
	AddStaticVehicleEx(522,372.13024902,-2048.01196289,7.49631500,0.00000000,84,1,15); //NRG-500
	AddStaticVehicleEx(522,369.77218628,-2047.91967773,7.49631500,0.00000000,84,1,15); //NRG-500
	AddStaticVehicleEx(522,367.29360962,-2048.02661133,7.42956638,359.98291016,84,1,15); //NRG-500
	AddStaticVehicleEx(487,382.06533813,-2041.69250488,8.10093784,0.00000000,84,1,15); //Maverick
	AddStaticVehicleEx(470,2768.69140625,-2437.15234375,13.75844955,90.00000000,-1,-1,15); //Patriot
	AddStaticVehicleEx(470,2768.77929688,-2441.99804688,13.75844955,90.00000000,-1,-1,15); //Patriot
	AddStaticVehicleEx(470,2768.61840820,-2446.65405273,13.75844955,90.00000000,-1,-1,15); //Patriot
	AddStaticVehicleEx(470,2768.29345703,-2451.08959961,13.75844955,90.00000000,-1,-1,15); //Patriot
	AddStaticVehicleEx(470,2768.96826172,-2427.47460938,13.67081738,90.00000000,-1,-1,15); //Patriot
	AddStaticVehicleEx(470,2768.62451172,-2432.76904297,13.67081738,90.00000000,-1,-1,15); //Patriot
	AddStaticVehicleEx(470,2754.15625000,-2433.02685547,13.59580326,270.00109863,-1,-1,15); //Patriot
	AddStaticVehicleEx(470,2754.35156250,-2438.08740234,13.59580326,270.00000000,-1,-1,15); //Patriot
	AddStaticVehicleEx(470,2754.35595703,-2442.68554688,13.59580326,270.00000000,-1,-1,15); //Patriot
	AddStaticVehicleEx(470,2754.08837891,-2447.93750000,13.59580326,270.00000000,-1,-1,15); //Patriot
	AddStaticVehicleEx(548,2758.91601562,-2404.14013672,15.52305889,50.00000000,-1,-1,15); //Cargobob
	AddStaticVehicleEx(548,2739.99829102,-2395.43920898,15.52305889,69.99877930,-1,-1,15); //Cargobob
	AddStaticVehicleEx(463,1243.59631348,-2026.04602051,59.51291275,270.00000000,3,1,15); //Freeway
	AddStaticVehicleEx(463,1243.68542480,-2025.05224609,59.51291275,270.00000000,3,1,15); //Freeway
	AddStaticVehicleEx(463,1243.64001465,-2023.97436523,59.51291275,270.00000000,3,1,15); //Freeway
	AddStaticVehicleEx(463,1243.73095703,-2022.96057129,59.51291275,270.00000000,3,1,15); //Freeway
	AddStaticVehicleEx(463,1243.74548340,-2021.97473145,59.51291275,270.00000000,3,1,15); //Freeway
	AddStaticVehicleEx(463,1243.86926270,-2021.03283691,59.51291275,270.00000000,3,1,15); //Freeway
	AddStaticVehicleEx(463,1243.87329102,-2020.17431641,59.51291275,270.00000000,3,1,15); //Freeway
	AddStaticVehicleEx(463,1243.78051758,-2019.35205078,59.53743362,270.00000000,3,1,15); //Freeway
	AddStaticVehicleEx(463,1243.84655762,-2018.36254883,59.53743362,271.95587158,3,1,15); //Freeway
	AddStaticVehicleEx(463,1243.94763184,-2017.46948242,59.53743362,271.95556641,3,1,15); //Freeway
	AddStaticVehicleEx(463,1244.05541992,-2016.40002441,59.53743362,271.95556641,3,1,15); //Freeway
	AddStaticVehicleEx(463,1244.12207031,-2015.18530273,59.53743362,271.95556641,3,1,15); //Freeway
	AddStaticVehicleEx(583,1243.88024902,-2043.03649902,58.88766479,0.00000000,3,1,15); //Tug
	AddStaticVehicleEx(583,1246.05712891,-2042.95532227,58.88766479,0.00000000,3,1,15); //Tug
	AddStaticVehicleEx(583,1248.18359375,-2042.96386719,58.88766479,0.00000000,3,1,15); //Tug
	AddStaticVehicleEx(583,1250.32153320,-2043.02758789,58.88766479,0.00000000,3,1,15); //Tug
	AddStaticVehicleEx(583,1252.12963867,-2043.15698242,58.88766479,0.00000000,3,1,15); //Tug
	AddStaticVehicleEx(583,1254.04663086,-2043.34399414,58.88766479,0.00000000,3,1,15); //Tug
	AddStaticVehicleEx(583,1255.75756836,-2043.44702148,58.88766479,0.00000000,3,1,15); //Tug
	AddStaticVehicleEx(583,1257.58984375,-2043.48046875,58.88766479,0.00000000,3,1,15); //Tug
	AddStaticVehicleEx(583,1259.48486328,-2043.47851562,58.88766479,0.00000000,3,1,15); //Tug
	AddStaticVehicleEx(583,1259.95703125,-2035.51806641,58.88766479,88.00000000,3,1,15); //Tug
	AddStaticVehicleEx(487,1254.39575195,-2011.94531250,59.84508514,90.00000000,3,1,15); //Maverick
	CreateObject(5710,2484.32397461,-1660.19250488,17.67854500,0.00000000,0.00000000,270.00000000); //object(cem01_law) (1)
	CreateObject(7392,1718.08398438,-1880.06567383,29.48709106,0.00000000,0.00000000,90.00000000); //object(vegcandysign1) (1)
	CreateObject(7392,2747.30078125,-2442.63110352,21.61325836,0.00000000,0.00000000,0.00000000); //object(vegcandysign1) (2)
	CreateObject(5710,1268.83862305,-2026.24938965,63.71211624,0.00000000,0.00000000,178.00000000); //object(cem01_law) (2)
	printf("\nObjetos Carregados");
	printf("Carros Carregados");
}
Reply
#2

Otimo GameMode Parabens Cara
Reply
#3

Quote:
Originally Posted by BrunoBSF
View Post
Otimo GameMode Parabens Cara
mano, voce nem olhou o codigo [ Vocк faz isso com todos os outros Gamemodes, e diz que ta [ Otimo, Muito bOm , Legal ]

Olhe o codigo pf.
Reply
#4

Quote:
Originally Posted by Lipe_Stronda
View Post
mano, voce nem olhou o codigo [ Vocк faz isso com todos os outros Gamemodes, e diz que ta [ Otimo, Muito bOm , Legal ]

Olhe o codigo pf.
Concordo ele й um maior spammer '-'

@Topic

Belo GameMode!
Reply
#5

Dei uma olhada rбpida e vi que precisa atualizar muitas coisas, e algumas coisas que vocк poderia evitar colocar no gamemode.

ex1:
pawn Code:
new Nome1[100];// pra que 100 se o mбximo й 24?
    new Nome2[100];
ex2
pawn Code:
strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }

    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
poderia tambйm usar zcmd,sscanf pois strtok й velho e lerdo
poderia usar DOF2 , Y_INI algo mais novo sabe..
poderia usar strings globais e nгo locais ( eu prefiro assim,mas vai do gosto )


mas fora isso eu gostei, й um gamemode legal :)

Quote:
Originally Posted by whiXґ
View Post
Concordo ele й um maior spammer '-'

@Topic

Belo GameMode!
Vocк nem olhou o cуdigo tambйm, o que estб falando aн?
Reply
#6

pawn Code:
new texto1[50],
    texto2[50],
    texto3[50],
    // Eu tirei o 4 ._.
    texto5[50],
    texto6[50],
    texto7[50],
    texto8[50],
    texto9[50],
    Disperdicio[260];
Poderia ser:
pawn Code:
new Texto[100], string[128];
---

pawn Code:
new server[50];
    format(server,sizeof(server),"hostname %s",NomeServidor);
    SendRconCommand(server);
Poderia ser:
pawn Code:
#define NomeServidor "hostname Servidor Carolzzzzzzzzzzzzzzzzzzzzz"
SendRconCommand(NomeServidor);
--

pawn Code:
public OnPlayerConnect(playerid)
{
    if(Administrador[playerid] >= 1)
    {
        new Entrou[100];
        format(Entrou, 30, "~g~%s ~w~ON", Nome);
        GameTextForAll(Entrou, 5000, 3);
    }
    new Celulas[260];
poderia ser:
pawn Code:
public OnPlayerConnect(playerid)
{
    if(Administrador[playerid] >= 1)
    {
        format(string, 30, "~g~%s ~w~ON", Nome);
        GameTextForAll(string, 5000, 3);
    }
---

pawn Code:
public OnPlayerDisconnect(playerid, reason)
{
    new Celulas[260];
    switch(reason)
    {
        case 0: format(Celulas, sizeof(Celulas), "{00BFFF}%s {FFFFFF}se desconectou do servidor. {00BFFF}[Crash]", Nome);
        case 1: format(Celulas, sizeof(Celulas), "{00BFFF}%s {FFFFFF}se desconectou do servidor. {00BFFF}[Conta Prуpria]", Nome);
        case 2: format(Celulas, sizeof(Celulas), "{00BFFF}%s {FFFFFF}se desconectou do servidor. {00BFFF}[Kickado ou Banido]", Nome);
    }
    SendClientMessageToAll(-1, Celulas);
    SalvarPlayer(playerid);
    return 1;
}
Poderia ser:
pawn Code:
public OnPlayerDisconnect(playerid, reason)
{
    switch(reason)
    {
        case 0: format(string, sizeof(string), "{00BFFF}%s {FFFFFF}se desconectou do servidor. {00BFFF}[Crash]", Nome);
        case 1: format(string, sizeof(string), "{00BFFF}%s {FFFFFF}se desconectou do servidor. {00BFFF}[Conta Prуpria]", Nome);
        case 2: format(string, sizeof(string), "{00BFFF}%s {FFFFFF}se desconectou do servidor. {00BFFF}[Kickado ou Banido]", Nome);
    }
    SendClientMessageToAll(-1, string);
    SalvarPlayer(playerid);
    return 1;
}
---

enfim, tem muito mais, sу que estou com preguicinha de ficar corrigindo..
уtimo gamemode para iniciantes.
Reply
#7

legal '-
Reply
#8

Legal.






brinks ta daora mais tem alguns disperdicios e sistemas antigos mas de resto ta bom
Reply
#9

[QUOTE='[O.z]Caroline;1492558']
pawn Code:
new texto1[50],
    texto2[50],
    texto3[50],
    // Eu tirei o 4 ._.
    texto5[50],
    texto6[50],
    texto7[50],
    texto8[50],
    texto9[50],
    Disperdicio[260];
Poderia ser:
pawn Code:
new Texto[100], string[128];
Mais o Texto1 texto 2 etc..
se eu por Texto normal no TextDrawSetString naгo ira causar nenhum erro?
Reply
#10

Gostei em partes, tem skype? willian_luigi, add lб caso tenha
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)