vehicle fix
#2

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new Float: health;
        new veh;
        veh = GetPlayerVehicleID(playerid);
        if(GetVehicleHealth(veh,health) < 1000) //Max vehicle health is 1000 not 100.
        {
            RepairVehicle(playerid);
        }
    }
    return 1;
}
Reply


Messages In This Thread
vehicle fix - by R4VER - 12.09.2012, 06:35
Re: vehicle fix - by clarencecuzz - 12.09.2012, 06:43
Re: vehicle fix - by R4VER - 12.09.2012, 08:15
Re: vehicle fix - by R4VER - 12.09.2012, 08:19
Respuesta: vehicle fix - by Siralos - 12.09.2012, 08:22
Re: vehicle fix - by [ABK]Antonio - 12.09.2012, 08:58

Forum Jump:


Users browsing this thread: 1 Guest(s)