[Tutorial] Comando /r (Usado para reparar veiculo/Servidores Drift/DM)
#9

Quote:
Originally Posted by Shadoww5
Посмотреть сообщение
Comando correto:

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/r"true) == 0)
    {
        if(
IsPlayerInAnyVehicle(playerid)) { RepairVehicle(GetPlayerVehicleID(playerid)) }
        else { 
SendClientMessage(playerid, -1"Vocк nгo estб em veiculo nenhum.");
        return 
1;
    }
    return 
0;

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
   if(strcmp(cmdtext, "/r", true) == 0)
   {
       if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo estб em veiculo nenhum.");
       RepairVehicle(GetPlayerVehicleID(playerid));
       return true;
   }
   return false;
}
Nгo Importa. da no mesmo D:
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)