New name tags
#1

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.
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);
Will this work?
Reply


Messages In This Thread
New name tags - by HondaCBR - 28.12.2011, 02:06
Re: New name tags - by Steven82 - 28.12.2011, 02:32
Re: New name tags - by HondaCBR - 28.12.2011, 02:38
Re: New name tags - by MP2 - 28.12.2011, 03:00
Re: New name tags - by HondaCBR - 28.12.2011, 07:50
Re: New name tags - by HondaCBR - 28.12.2011, 08:16

Forum Jump:


Users browsing this thread: 1 Guest(s)