3Dtext - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 3Dtext (
/showthread.php?tid=359364)
Create3DTextLabel -
dannyk0ed - 13.07.2012
Hello,
On my script i put
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.
Re: 3Dtext -
tiernantheman - 13.07.2012
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
Re: 3Dtext -
Vince - 13.07.2012
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.
Re: 3Dtext -
Elysian` - 13.07.2012
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)