Vehicle health state
#7

Since a vehicle catches on fire at a health of 250.0, we'll assume that to be 0%. So:

pawn Код:
new Float:percentage = (((vehiclehealth - 250.0) / (1000.0 - 250.0)) * 100.0);
Reply


Messages In This Thread
Vehicle health state - by iOxide - 14.01.2014, 09:33
Re: Vehicle health state - by SilentSoul - 14.01.2014, 09:41
Re: Vehicle health state - by Face9000 - 14.01.2014, 09:46
Re: Vehicle health state - by SilentSoul - 14.01.2014, 09:48
Re: Vehicle health state - by iOxide - 14.01.2014, 09:50
Re: Vehicle health state - by SilentSoul - 14.01.2014, 09:56
Re: Vehicle health state - by Vince - 14.01.2014, 10:02
Re: Vehicle health state - by iOxide - 14.01.2014, 10:39

Forum Jump:


Users browsing this thread: 1 Guest(s)