vehiclehealt = playerhealth
#3

Quote:
Originally Posted by Michael@Belgium
Посмотреть сообщение
pawn Код:
new Float:vehhealth;
GetVehicleHealth(GetPlayerVehicleID(playerid),vehhealth);
SetPlayerHealth(playerid,vehhealth[B]/100[/B]);
Actually this isn't gonna work, but when i get home i'll send the ... correct calculation ..
Why you put /100, isnt it /10 , because the car have 1000 HP, and the player have 100HP , the difference is 1000/100 = 10 i think...
Reply


Messages In This Thread
vehiclehealt = playerhealth - by cruising - 23.10.2011, 19:28
Re: vehiclehealt = playerhealth - by Michael@Belgium - 24.10.2011, 12:14
Re: vehiclehealt = playerhealth - by Jesus_wow - 24.10.2011, 12:21
Re: vehiclehealt = playerhealth - by Babul - 24.10.2011, 13:53

Forum Jump:


Users browsing this thread: 1 Guest(s)