17.01.2018, 14:46
1.) Set "Textdraw1" as a PlayerTextdraw - https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw
2.) Make a player timer (or use OnPlayerUpdate, but it's called very frequently) and update the textdraw's string with this function - https://sampwiki.blast.hk/wiki/PlayerTextDrawSetString
For example:
2.) Make a player timer (or use OnPlayerUpdate, but it's called very frequently) and update the textdraw's string with this function - https://sampwiki.blast.hk/wiki/PlayerTextDrawSetString
For example:
Код:
new string[32], Float:Health; GetPlayerHealth(playerid, Health); format(string, sizeof(string), "HP: %0.1f", Health); PlayerTextDrawSetString(playerid, Textdraw1[playerid], string);

