24.12.2014, 19:00
(
Последний раз редактировалось Biess; 25.12.2014 в 17:04.
)
Quote:
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;
}