SA-MP Forums Archive
status 3D on the top of the head... - 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: status 3D on the top of the head... (/showthread.php?tid=577997)



status 3D on the top of the head... - extender1987 - 15.06.2015

I wanna script showing a status 3D text on the top of the head for admins
for example /astatus [text / off ] and showing 3d textlabel....
I am newvie soeone can tell me how?


AW: status 3D on the top of the head... - Mencent - 15.06.2015

Hello!

You need the following functions:
https://sampwiki.blast.hk/wiki/Create3DTextLabel
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer

Here is also an example, maybe it can help you:
PHP код:
public OnPlayerConnect(playerid)
{
    new 
Text3D:label Create3DTextLabel("Hello, I am new here!"0x008080FF30.040.050.040.00);
    
Attach3DTextLabelToPlayer(labelplayerid0.00.00.7);
    return 
1;

- Mencent