autorepair does not work
#4

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);
        }
    }
}
Far more simple ?
NOTE: this will not be enabled or disabled by a command. It will fix all the time.
Reply


Messages In This Thread
autorepair does not work - by Madsen - 31.05.2011, 14:24
Re: autorepair does not work - by xir - 31.05.2011, 14:41
Re: autorepair does not work - by Madsen - 31.05.2011, 16:47
Re: autorepair does not work - by sleepysnowflake - 31.05.2011, 16:59
Re: autorepair does not work - by Sasino97 - 31.05.2011, 17:25
Re: autorepair does not work - by Markx - 31.05.2011, 17:26
Re: autorepair does not work - by Laronic - 31.05.2011, 17:36
Re: autorepair does not work - by Madsen - 03.06.2011, 12:35

Forum Jump:


Users browsing this thread: 1 Guest(s)