I Can't delete 3DTextLabel to player
#4

#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 .
Код:
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;
}
Reply


Messages In This Thread
I Can't delete 3DTextLabel to player - by SamBum - 05.07.2016, 04:15
Re: I Can't delete 3DTextLabel to player - by luke49 - 05.07.2016, 05:56
Re: I Can't delete 3DTextLabel to player - by SamBum - 05.07.2016, 06:08
Re: I Can't delete 3DTextLabel to player - by SamBum - 07.07.2016, 16:26

Forum Jump:


Users browsing this thread: 1 Guest(s)