A little help with textdraws.
#2

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:
Код:
new string[32], Float:Health;
GetPlayerHealth(playerid, Health);
format(string, sizeof(string), "HP: %0.1f", Health);
PlayerTextDrawSetString(playerid, Textdraw1[playerid], string);
Reply


Messages In This Thread
A little help with textdraws. - by ivndosos - 17.01.2018, 14:23
Re: A little help with textdraws. - by Daveosss - 17.01.2018, 14:46
Re: A little help with textdraws. - by ivndosos - 17.01.2018, 14:56
Re: A little help with textdraws. - by Daveosss - 17.01.2018, 15:24
Re: A little help with textdraws. - by ivndosos - 17.01.2018, 15:53
Re: A little help with textdraws. - by Daveosss - 17.01.2018, 16:05

Forum Jump:


Users browsing this thread: 1 Guest(s)