HELP I GET ERROR ON A AUTO REPAIR
#6

Try moving it to this callback, if it's not a callback, just copy this and put it somewhere not on OnGameModeInIt:
pawn Код:
public OnPlayerUpdate(playerid) // Update CallBack
{
    if(IsPlayerInAnyVehicle(playerid)
    {
        new Float:vhealth;GetVehicleHealth(GetPlayerVehicleID(playerid),vhealth);
        if(vhealth<250)
        {
            RepairVehicle(GetPlayerVehicleID(playerid));
            SetVehicleHealth(GetPlayerVehicleID(playerid),999);
            GameTextForPlayer((playerid,"~g~Auto ~w~Fix",1500,3);
        }
    }
    return 1; // Send this update to other players.
}
This has not been tested.
Reply


Messages In This Thread
HELP I GET ERROR ON A AUTO REPAIR - by Loading... - 29.06.2011, 01:09
Re: HELP I GET ERROR ON A AUTO REPAIR - by Shadoww5 - 29.06.2011, 01:17
Re: HELP I GET ERROR ON A AUTO REPAIR - by Loading... - 29.06.2011, 01:48
Re: HELP I GET ERROR ON A AUTO REPAIR - by Mark_Weston - 29.06.2011, 01:49
Re: HELP I GET ERROR ON A AUTO REPAIR - by Loading... - 29.06.2011, 02:00
Re: HELP I GET ERROR ON A AUTO REPAIR - by dr.pepper - 29.06.2011, 02:06
Re: HELP I GET ERROR ON A AUTO REPAIR - by Loading... - 29.06.2011, 02:13
Re: HELP I GET ERROR ON A AUTO REPAIR - by Loading... - 29.06.2011, 02:15
Re: HELP I GET ERROR ON A AUTO REPAIR - by dr.pepper - 29.06.2011, 02:17
Re: HELP I GET ERROR ON A AUTO REPAIR - by Loading... - 29.06.2011, 02:25

Forum Jump:


Users browsing this thread: 1 Guest(s)