29.12.2017, 12:39
Код:
forward NameTag();
public NameTag()
{
new Float:health,Float:armour, playerid,string[40];
GetPlayerHealth(playerid,health);
GetPlayerArmour(playerid,armour);
format(string,sizeof(string),"%d hp and %d armour",health,armour);
UpdateDynamic3DTextLabelText(PlayerInfo[playerid][pSpecialTag], -1, string);
return 1;
}
If doesn't work, you can try this
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
new string[40],Float:hp,Float:ar;
GetPlayerArmour(playerid,ar);
GetPlayerHealth(playerid,hp);
format(string, sizeof(string), "%d hp and %d armour",hp,ar);
UpdateDynamic3DTextLabelText(PlayerInfo[playerid][pSpecialTag], -1, string)
return 1;
}

