31.05.2011, 16:59
pawn Код:
forward Repair(playerid);
public Repair(playerid)
{
if (IsPlayerInAnyVehicle(playerid))
{
new Float:health;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleHealth(vehicleid, health);
if (health <= 999)
{
RepairVehicle(vehicleid);
}
}
}
NOTE: this will not be enabled or disabled by a command. It will fix all the time.