How can I add GetPLayerHP in Textdraws? Help fast
#3

pawn Код:
secret = TextDrawCreate(X, Y, Z, "my health", GetPlayerArmour(playerid));
pawn Код:
secret = TextDrawCreate(X, Y, Z, "my armour", GetPlayerHealth(playerid));
pawn Код:
format(string,sizeof(string), "~y~A~b~R~g~: ~p~%0.2f", GetPlayerHealth(playerid));
// update it somewhere when the player logs in or whatever
new string[16];
TextDrawSetString(secret, string);
I hope I helped any feedback would be appreciated!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)