3dtextlabel nametags?
#4

This at OnPlayerConnect:
pawn Код:
new string1[128], name[24];
    GetPlayerName(playerid, name, sizeof(name));
    label[playerid] = format(string1, sizeof(string), "%s",name);
    Create3DTextLabel(string1,0xFFFFFFFF,name,130,0,1);
    Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
Ontop of your script:
pawn Код:
new Text3D:label[MAX_PLAYERS];
NOTE: This will probably work if you disable all nametags first.

OnPlayerDisconnect:
pawn Код:
Delete3DTextLabel(label[playerid]);
Reply


Messages In This Thread
3dtextlabel nametags? - by Oh - 21.09.2011, 14:48
Re: 3dtextlabel nametags? - by Kingunit - 21.09.2011, 14:50
Re: 3dtextlabel nametags? - by Oh - 21.09.2011, 14:52
Re: 3dtextlabel nametags? - by Kingunit - 21.09.2011, 14:58
Re: 3dtextlabel nametags? - by Kingunit - 21.09.2011, 15:00
Re: 3dtextlabel nametags? - by Oh - 21.09.2011, 19:53
Re: 3dtextlabel nametags? - by Riddick94 - 21.09.2011, 19:57
Re: 3dtextlabel nametags? - by Oh - 21.09.2011, 19:58
Re: 3dtextlabel nametags? - by Kingunit - 21.09.2011, 20:01
Re: 3dtextlabel nametags? - by Oh - 21.09.2011, 20:06

Forum Jump:


Users browsing this thread: 1 Guest(s)