14.07.2014, 22:05
// First you should probably change it to return the message instead of continue, as even if one statement turns false it will continue to execute the next if statement.
Hope this helps.
pawn Код:
CMD:repair(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "SERVER:Unknown Command.");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "ERROR: You're not in a vehicle.");
RepairVehicle(GetPlayerVehicleID(playerid));
return 1;
}