29.12.2017, 12:47
Quote:
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart) { new string[128],hp,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; } |
Код:
new string[128]; format(string, sizeof(string), "{089DCE}HP: %.0f - {00FF00}AR: %.0f", GetPlayerHealth(playerid), GetPlayerArmour(playerid)); UpdateDynamic3DTextLabelText(PlayerInfo[playerid][pSpecialTag], COLOR_WHITE, string);