14.01.2014, 10:02
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);