SA-MP Forums Archive
help! - 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: help! (/showthread.php?tid=427399)



help! - [Crimeson - 01.04.2013

how can i remove 3D text off player head?
like /adminduty when onduty text on player head
/adminduty again when player gose off duty i want text to move
help me please


Re: help! - SuperViper - 01.04.2013

You need to assign a variable to your label. You can do so by modifying your Create3DTextLabel line to the following:

pawn Код:
myLabel[playerid] = Create3DTextLabel(.....);
Above that, you should create the variable for the label:

pawn Код:
new Text3D: myLabel[MAX_PLAYERS];
Then when you want to destroy it:

pawn Код:
Delete3DTextLabel(myLabel[playerid]);
You should also destroy it under OnPlayerDisconnect if the label exists.