05.05.2013, 06:27
pawn Код:
if(strcmp("/repair", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_YELLOW,"You must be inside vehicle to use this command!");
if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, COLOR_YELLOW,"You do not have enough money to repair your vehicle!");
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid,0xFFFF00AA,"Server: Your Vehicle Has Been Repaired!");
return 1;
}