04.08.2014, 09:34
Hi all...
I'm wondering why sometimes the names made with 3D Text Label, sometimes overlap and change...
Example:
Player1 has Player2 name, but Player2 has Player1 name overlapped to his name.
Here's the code.
Thanks.
I'm wondering why sometimes the names made with 3D Text Label, sometimes overlap and change...
Example:
Player1 has Player2 name, but Player2 has Player1 name overlapped to his name.
Here's the code.
pawn Код:
//On top
#define NAME_DRAWDISTANCE (5)
new Text3D:NameTag[MAX_PLAYERS];
//OnPlayerDisconnect
Delete3DTextLabel( NameTag[playerid] );
//OnPlayerConnect
playerName = p_name( playerid );
NameTag[playerid] = Create3DTextLabel(playerName, 0xFFFFFFFF, 0, 0, 0, NAME_DRAWDISTANCE, 0, 1 );
Attach3DTextLabelToPlayer(NameTag[playerid], playerid, 0.0, 0.0, 0.2);
//OnGameModeInit
SetNameTagDrawDistance(0.0);
ShowNameTags(false);