3Dtext
#1

Hello,
On my script i put
pawn Код:
ShowNameTags(0);
to hide the players name and ID(Less MG))
Now i want to know how to make it so that it only says your ID number above your name using 3Dtext.
I'm not good with 3Dtext or textdraws and i need help.
Reply
#2

Under OnPlayerSpawn
pawn Код:
new labeltext[4];
format(labeltext, sizeof(labeltext), "%i", playerid);
Create3DTextLabel(Coords);
Attach3DTextLabelToPlayer(Coords);
Hope this helps Regards, Tiernan

EDIT: Here's some links you can use for help . https://sampwiki.blast.hk/wiki/Create3DTextLabel. https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Reply
#3

Better to just make a global array and create all labels under OnGameModeInit. If you create a new label every time a player spawns, you're eventually going to run out. The server might crash, cease to display the labels, overwrite labels or mix them up.
Reply
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
Better to just make a global array and create all labels under OnGameModeInit. If you create a new label every time a player spawns, you're eventually going to run out. The server might crash, cease to display the labels, overwrite labels or mix them up.
+1 (4Char)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)