05.06.2010, 23:39
This should fix it
(I think)
(I think)pawn Код:
public carhealth()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new car2 = GetPlayerVehicleID(i);
new Float:Vhealth;
GetVehicleHealth(car2, Vhealth);
if(Vhealth < 200)
{
RemovePlayerFromVehicle(i);
SetTimer("carhealth",1000,1); //maybe you should put the timer ongamemodeinit?
}
}
}

