Health Car - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Health Car (
/showthread.php?tid=245111)
Health Car -
Xa0s - 30.03.2011
Help.
It is necessary that a player's health bar shown here is the health of the vehicle code
PHP код:
function VehicleHealth(playerid)
{
if(Joined[playerid] == true)
{
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid),health);
SetPlayerHealth(playerid,health/10);
}
return 1;
}
But how can that be if the car has a band of 25-30 health health was at the end.
I have right now is bad. If the car is burning a health even a little less than half.