08.01.2014, 11:12
hello i want to make vehicle health only for one vehicle with 3DTextLabelText and i have do it, but health say all time 0 here is my code
pawn Код:
public OnGameModeInit()
{
SetTimer("rhinoHP", 250, true);
return 1;
}
forward rhinoHP(playerid);
public rhinoHP(playerid)
{
new rstr[30];
new Float:health;
format(rstr, sizeof(rstr), "health: %.2f", GetVehicleHealth(432, health));
Update3DTextLabelText(vehicle3Dtext[ Rhino1 ], 0xFFFFFFAA, rstr);
}