Name in 3dtextlabel
#2

pawn Код:
public OnGameModeInit()
{
     ShowNameTags( 0 );
}

new Text3D:NameTag[500];
public OnPlayerConnect(playerid)
{
     new pName[24], string[30];
     GetPlayerName(playerid, pName, 24);
     format(string, sizeof(string), "%s (%i)", pName, playerid);
     NameTag[playerid] = Create3DTextLabel(string, GetPlayerColor(playerid), 0.0, 0.0, 0.0, 0.0, 0);
     Attach3DTextLabelToPlayer(NameTag[playerid], playerid, 0.0, 0.0, +2.5) //Not sure about the Z Offset, you might have to play with it
     return 1;
}
Reply


Messages In This Thread
Name in 3dtextlabel - by thimo - 31.01.2011, 18:08
Re: Name in 3dtextlabel - by Ash. - 31.01.2011, 18:15
Re: Name in 3dtextlabel - by thimo - 31.01.2011, 18:19
Re: Name in 3dtextlabel - by Ash. - 31.01.2011, 18:21
Re: Name in 3dtextlabel - by Ash. - 31.01.2011, 18:22
Re: Name in 3dtextlabel - by thimo - 31.01.2011, 18:25
Re: Name in 3dtextlabel - by thimo - 04.02.2011, 10:05

Forum Jump:


Users browsing this thread: 1 Guest(s)