PHP код:
CMD:repair(playerid,params[])
{
new Float:health;
new veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, health);
if(health > 500) return SendClientMessage(playerid,-1, "Vehicle doesn't need repairing!");
SetVehicleHealth(veh, 1000);
SendClientMessage(playerid,-1, "Vehicle repaired!");
}