29.06.2011, 02:17
Correct:
Edit: Oops, I didn't see you post another post lol.
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.
}