20.03.2012, 01:28
pawn Код:
if(strcmp("/teles", cmdtext, true) == 0)
{
new Cmds[999];
new string2[256];
format(string2, sizeof(string2), "{FF0000}[Cidades]:{FFFFFF}\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/ls\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/lv\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/sf\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), " \n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "{912CEE}[4fun]:{FFFFFF}\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/aerolv\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/aerosf\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/aa\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/stunt\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/drift\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/montechilliad\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/arranhaceu\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/cpiscina\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/dunas\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/drop\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/loopdamorte\n"); strcat(Cmds, string2);
ShowPlayerDialog(playerid,10, DIALOG_STYLE_MSGBOX, "Comandos Veнculo", Cmds, "Ok", "");
return 1;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(strcmp("/veiculo", cmdtext, true) == 0)
{
new Cmds[999];
new string2[256];
format(string2, sizeof(string2), "/carro [id/nome]\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/flip\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/reparar\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/godcarON\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/godcarOFF\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/tunar1\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/tunar2\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/tunar3\n"); strcat(Cmds, string2);
ShowPlayerDialog(playerid,10, DIALOG_STYLE_MSGBOX, "Comandos Veнculo", Cmds, "Ok", "");
return 1;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(strcmp("/dm", cmdtext, true) == 0)
{
new Cmds[999];
new string2[256];
format(string2, sizeof(string2), "{FFFFFF}/urbandm\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/minigun\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/colinadm\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/sairdm\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/area51{FFFFFF} \n"); strcat(Cmds, string2);
ShowPlayerDialog(playerid,10, DIALOG_STYLE_MSGBOX, "Comandos DeathMatch", Cmds, "Ok", "");
return 1;
}
//{FF0000} - Vermelho
//{0000FF} - Azul
//{9C9C9C} - Cinza
//{008B00} - Verde
//{00FFFF} - Cyan
//{FF00FF} - Rosa
//{88AA88} - verde fraco
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(strcmp("/outros", cmdtext, true) == 0)
{
new Cmds[999];
new string2[256];
format(string2, sizeof(string2), "/armas\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/jetpack\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/HA [Vida e Colete]\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/kill\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/grana\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/skin [0~299]\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/nick\n"); strcat(Cmds, string2);
format(string2, sizeof(string2), "/cred\n"); strcat(Cmds, string2);
ShowPlayerDialog(playerid,10, DIALOG_STYLE_MSGBOX, "Outros Comandos", Cmds, "Ok", "");
return 1;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(strcmp(cmd, "/cred", true) == 0) {
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Crйditos Havaiana's","{912CEE}Fojo_","Sair","");
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
return 1;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if (strcmp("/godcar", cmdtext, true) == 0)
{
if ( tem [ playerid ] == true )
return SendClientMessage ( playerid , -1 , "Vocк nгo pode usar comandos em uma Arena Deathmatch. Use /sairdm para sair da arena." ) ;
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo estб em um veнculo!");
SetVehicleHealth(GetPlayerVehicleID(playerid),999999999);
SendClientMessage(playerid, 0xFFFFFFFF, "Godcar Ativado!");
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "[Godcar]: %s ativou o god car.(/godcar)", pname);
SendClientMessageToAll(0x00F400AA, string);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
return 1;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if (strcmp("/godcarOFF", cmdtext, true) == 0)
{
if ( tem [ playerid ] == true )
return SendClientMessage ( playerid , -1 , "Vocк nгo pode usar comandos em uma Arena Deathmatch. Use /sairdm para sair da arena." ) ;
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo estб em um veнculo!");
SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
SendClientMessage(playerid, 0xFFFFFFFF, "Godcar Desativado!");
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "[Godcar]: %s desativou o god car.(/godcarOFF)", pname);
SendClientMessageToAll(0x00F400AA, string);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
{
return 1;
}
return 0;
}
}