30.03.2011, 03:35
Help.
It is necessary that a player's health bar shown here is the health of the vehicle code
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.
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;
}
I have right now is bad. If the car is burning a health even a little less than half.