New name tags
#5

Ok this code works fine:

The name comes up, but it doesnt move with the player, it stays at spawn.
pawn Код:
public OnPlayerSpawn(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);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        playertextid = CreatePlayer3DTextLabel(i,nameformat,COLOR_WHITE,X,Y,Z,15.0);
    }
    Attach3DTextLabelToPlayer(Text3D:playertextid, playerid, 0.0, 0.0, 2.7);
}
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)