23.09.2014, 19:01
Mude apenas este cуdigo:
Por este:
pawn Код:
if(strcmp(cmd, "/tunar", true) == 0)
{
new org = GetPlayerOrg(playerid);
if(org != 25 && org != 28) return SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo й dos Drifters ou Racers");
{
if(!PlayerToPoint(5.0,playerid,833.0647,-2055.8433,12.9073) && !PlayerToPoint(5.0,playerid,1058.8296,-877.0164,43.5195))
{
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo estб no tunning");
return true;
}
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER || playerstate == PLAYER_STATE_PASSENGER)
{
return ShowPlayerDialog(playerid, 26547, DIALOG_STYLE_LIST, "Menu Tunning","Reparar Veiculo\nAuto Tunar\nTunning Personalizado\nInstalar Neon\nInstalar Nitro", "Selecionar", "Sair");
}
else
{
return SendClientMessage(playerid, 0xADADADAA, "** Vocк nгo estб em um veiculo!");
}
}
}
pawn Код:
if(strcmp(cmd, "/tunar", true) == 0)
{
if(!PlayerToPoint(5.0,playerid,833.0647,-2055.8433,12.9073) && !PlayerToPoint(5.0,playerid,1058.8296,-877.0164,43.5195))
{
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo estб no tunning");
return true;
}
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER || playerstate == PLAYER_STATE_PASSENGER)
{
return ShowPlayerDialog(playerid, 26547, DIALOG_STYLE_LIST, "Menu Tunning","Reparar Veiculo\nAuto Tunar\nTunning Personalizado\nInstalar Neon\nInstalar Nitro", "Selecionar", "Sair");
}
else
{
return SendClientMessage(playerid, 0xADADADAA, "** Vocк nгo estб em um veiculo!");
}
}