[Solved] Creating a tag above player names.
#7

Why can't I see the Label myself?





Quote:
Originally Posted by Mr.Z
You will need something more.. When the player returns Text3D it should be deleted, and for that we will need ID, therefore it tries the following:

In the top
pawn Код:
new Text3D: Label_AFK[MAX_PLAYERS];
In OnPlayerConnect
pawn Код:
Label_AFK[playerid]=INVALID_3DTEXT_ID;
In OnPlayerDisconnect
pawn Код:
if(Label_AFK[playerid]!=INVALID_3DTEXT_ID) Delete3DTextLabel(Label_AFK[playerid]);
In Command /afk
pawn Код:
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
Label_AFK[playerid]=Create3DTextLabel("afk", 0xFFFF00FF, x, y, z+1, 100, 0, 0),Attach3DTextLabelToPlayer(Label_AFK[playerid], playerid, 0, 0, 0, 0);
In Command /iamback
pawn Код:
Delete3DTextLabel(Label_AFK[playerid]);
I hope gives right
Reply


Messages In This Thread
[Solved] Creating a tag above player names. - by Ace_Menace - 30.09.2009, 22:37
Re: [Help] Creating a tag above player names. - by Mr.Z - 30.09.2009, 22:49
Re: [Help] Creating a tag above player names. - by Ace_Menace - 30.09.2009, 22:51
Re: [Help] Creating a tag above player names. - by Dresden - 30.09.2009, 23:00
Re: [Help] Creating a tag above player names. - by Ace_Menace - 30.09.2009, 23:07
Re: [Help] Creating a tag above player names. - by Mr.Z - 30.09.2009, 23:11
Re: [Help] Creating a tag above player names. - by Ace_Menace - 30.09.2009, 23:50
Re: [Solved] Creating a tag above player names. - by Dresden - 01.10.2009, 02:43

Forum Jump:


Users browsing this thread: 1 Guest(s)