SA-MP Forums Archive
Progress bar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Progress bar (/showthread.php?tid=336137)



Progress bar - TuTh - 21.04.2012

hi! I was a scripter 2 years ago. Now i forgat all things...

i wanna make a progress bar for vehicle health... with 4 stept. at 100hp a normal bar(green), at 50hp a lower bar(yellow), at 30hp a lower bar (red), and when the car is on fire a text like " boom "

You can explain me how to do this progress bar?


Re: Progress bar - TuTh - 23.04.2012

up!

what i have to do to disappear at 30hp for example....


Re: Progress bar - Ballu Miaa - 23.04.2012

This is to destroy the progressbar when the vehicle health is less then 30. Change the code according to your functions and definations.
pawn Код:
if(GetVehicleHealth(vehicle) < 30)
{
  DestroyProgressBar(BarID);
}