08.03.2017, 17:30
Hello there! i have been trying to make textdraw which it got the amount of player's health and got this
:
![](http://imgur.com/OE3um1s.jpg)
What if that is the random player's health? LMAO
![Smiley](images/smilies/smile.png)
![](http://imgur.com/OE3um1s.jpg)
What if that is the random player's health? LMAO
PHP код:
public OnPlayerUpdate(playerid)
{
new string7[20];
new Float: Health;
GetPlayerHealth(playerid, Health);
format(string7, sizeof(string7), "%d", Health);
TextDrawSetString(Textdraw14[playerid], string7);
TextDrawShowForPlayer(playerid, Textdraw14[playerid]);
new string8[120];
new Float: Armour;
GetPlayerArmour(playerid, Armour);
format(string8, sizeof(string8), "%d", Armour);
TextDrawSetString(Textdraw15[playerid], string8);
TextDrawShowForPlayer(playerid, Textdraw15[playerid]);
return 1;
}