22.10.2012, 05:53
Guyz i need help with vehicle health bar,,, it dont increase and decrease
I use ProgressBar.inc
i Use like this:
I use ProgressBar.inc
i Use like this:
Код:
public OnGameModeInit() { SetTimer("VehicleHealthBarUpdate",500,true); return 1; } forward VehicleHealthBarUpdate(); public VehicleHealthBarUpdate() { for(new i=0;i<MAX_PLAYERS;i++) if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i)) { new Float:health; GetVehicleHealth(i,health); SetProgressBarValue(Barid1,health); //Value must be Float ProgressBarUpdate(Barid1); } }