forward autojavit(playerid);
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
javitas[playerid] = SetTimerEx(\"autojavit\", 3000, true, \"i\", playerid);
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
KillTimer(javitas[playerid]);
return 1;
}
public autojavit(playerid)
{
new Float:Elet;
GetVehicleHealth(GetPlayerVehicleID(playerid), Elet);
if(elet < 1000) return RepairVehicle(GetPlayerVehicleID(playerid));
return 1;
}