26.04.2010, 23:13
You'd have to create a function and put that function on a timer, for example:
Then set that on a timer whenever you show the textdraw, maybe OnGameModeInit?
pawn Code:
forward DrawNewHealth(playerid);
public DrawNewHealth(playerid)
{
new Float:pHealth, string[128];
GetPlayerHealth(playerid, pHealth);
format(string, sizeof(string), "Health %f", pHealth);
TextDrawSetString(TEXTDRAWNAME, string) // this is where you would update the actual textdraw
return 1;
}