How To Make Full Car Health Show as 100 instead of 1000
#1

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% ?
Reply
#2

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;
Reply
#3

thank you so much <3
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)