Server: Unkown command
#4

Quote:
Originally Posted by KaMeLeOn
Посмотреть сообщение
if(strcmp(cmd, "/fixveh", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerData[playerid][pAdmin] < 4)
{
SendError(playerid,cmd);
return 1;
}
if(IsPlayerInAnyVehicle(playerid))
{
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, COLOR_WHITE, "Masina reparata cu {ADFF2F}succes{ffffff}.");
}
}
return 1;
}
pawn Код:
if(strcmp(cmd, "/fixveh", true) == 0)
{
     if(IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "Not connected.");
     if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Not in a vehicle.");
     RepairVehicle(GetPlayerVehicleID(playerid));
     SendClientMessage(playerid, COLOR_WHITE, "Masina reparata cu {ADFF2F}succes{ffffff}.");
     return 1;
}
Reply


Messages In This Thread
Server: Unkown command - by KaMeLeOn - 23.12.2014, 21:13
Re: Server: Unkown command - by Biess - 23.12.2014, 21:39
Re: Server: Unkown command - by KaMeLeOn - 23.12.2014, 22:12
Re: Server: Unkown command - by Biess - 24.12.2014, 19:00

Forum Jump:


Users browsing this thread: 2 Guest(s)