07.07.2016, 16:26
#Luke49 It's work, thank you so much !
I have an idea about Mask system, this will destroy old 3d text label, and update new 3d text label with new health, armor when player take damage. but sometime it's hide the 3dtextlabel. If someone has another plan please tell me .
I have an idea about Mask system, this will destroy old 3d text label, and update new 3d text label with new health, armor when player take damage. but sometime it's hide the 3dtextlabel. If someone has another plan please tell me .
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid) { Delete3DTextLabel(masknamelabel[playerid]); new string[128], Float:health, Float:armour; if(PlayerInfo[playerid][pDangdeomask] == 1) { GetPlayerHealth(playerid, health); GetPlayerArmour(playerid, armour); masknamelabel[playerid] = Create3DTextLabel(" ",0x9ACD32AA,30.0,40.0,50.0,15.0,0); format(string,sizeof(string),"Stranger #%d\nHealth: %d, Armour: %d", GetPlayerSQLId(playerid), floatround(health), floatround(armour)); Update3DTextLabelText(masknamelabel[playerid], 0x9ACD32AA, string); Attach3DTextLabelToPlayer(masknamelabel[playerid], playerid, 0.0, 0.0, 0.4); } //bumbum-mask return 1; }