06.01.2015, 21:23
Hello can some1 help my with this i made timer for 1 sec that count vehicle health but it still not working properly and i dont thing i could do something about it , so now i have this code :
its a timer everything on this code , the prolem is like i cant get right value of health to add cuz is blows even with +80 and sometimes with +75 not its depend on how hard u hit and lose health so , i need some alternative code that helps my to increase vehicle burning time
Код:
public carcheck() { for(new i=0; i<MAX_PLAYERS; i++) { new vehicle, Float:health; vehicle = GetPlayerVehicleID(i); GetVehicleHealth(vehicle, health); if(health <= 250) { RemovePlayerFromVehicle(i); health += 75; SetVehicleHealth(vehicle, health); } } return 1; }