How To Make Full Car Health Show as 100 instead of 1000 - 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 Full Car Health Show as 100 instead of 1000 (
/showthread.php?tid=493076)
How To Make Full Car Health Show as 100 instead of 1000 -
AnonScripter - 06.02.2014
Hey guys! i have a textdraw shows the vehicle's car health. i made the health/10 to show the full health as 100% instead of 1000%
i have a problem when the car is burning, it shows the health as 25%.....how to make it as 0% ?
AW: How To Make Full Car Health Show as 100 instead of 1000 -
Nero_3D - 06.02.2014
Just subtract 250 from the health and divide it through 7.5 (max possible health is 750)
pawn Код:
new
Float: health
;
GetVehicleHealth(vehicleid, health);
health = (health - 250.0) / 7.5;
Re: How To Make Full Car Health Show as 100 instead of 1000 -
AnonScripter - 07.02.2014
thank you so much <3