SA-MP Forums Archive
How to make HP in % ? - 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: How to make HP in % ? (/showthread.php?tid=462822)



How to make HP in % ? - bustern - 08.09.2013

I saw in another servers that health is in %.How to do that ?


Re: How to make HP in % ? - Konstantinos - 08.09.2013

Get the health and then format a message. Use %% to get the percent symbol.


Respuesta: How to make HP in % ? - admantis - 08.09.2013

Additionally, you can do this with vehicle health values by dividing it by ten (since the max health for vehicles is 1000). So, 1000/10 is 100 being the max value. If the car had 500 health points (half of the max) it would be 50.


Re: Respuesta: How to make HP in % ? - Pottus - 08.09.2013

Quote:
Originally Posted by admantis
Посмотреть сообщение
Additionally, you can do this with vehicle health values by dividing it by ten (since the max health for vehicles is 1000). So, 1000/10 is 100 being the max value. If the car had 500 health points (half of the max) it would be 50.
Vehicles catch on fire at 250.0hp then explode at 0.0hp so that is not a good idea as it would be very misleading.