28.12.2011, 02:06
I want to use 3d text for name tags and disable the default ones. Would this work?
Also the name needs to be visible for everyone (15) dis next to you, but not visible to yourself.
Will this work?
Also the name needs to be visible for everyone (15) dis next to you, but not visible to yourself.
pawn Код:
public OnPlayerConnect(playerid)
{
new plname2[MAX_PLAYER_NAME];
new nameformat[30];
new PlayerText3D:playertextid;
new Float:X, Float:Y, Float:Z;
GetPlayerName(playerid, plname2, sizeof(plname2));
GetPlayerPos(playerid,X,Y,Z);
format(nameformat,sizeof(nameformat),"%s",plname2);
playertextid = CreatePlayer3DTextLabel(playerid,nameformat,COLOR_WHITE,X,Y,Z,15.0);
Attach3DTextLabelToPlayer(Text3D:playertextid, playerid, 0.0, 0.0, 0.7);