SA-MP Forums Archive
Help with the 3DTextLabel - 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 with the 3DTextLabel (/showthread.php?tid=597604)



Help with the 3DTextLabel - D1am0nd - 02.01.2016

Hello. So basically, If the player is VIP and when he spawns, there must be attached 3dtextlabel on the top of his skin's head. Also I don't want that 3dtextlabel appear also on other player's head.


Here is the code from OnPlayerSpawn and I would like to know, if it is correct:
PHP код:
if(pInfo[playerid][pVipLevel] >=1)
        {
            new 
Text3D:labelvip[MAX_PLAYERS];
            
labelvip[playerid] = Create3DTextLabel("Bronze VIP"0x008080FF30.040.050.040.00);
            
Attach3DTextLabelToPlayer(labelvip[playerid], playerid0.00.00.7);
        } 



Re: Help with the 3DTextLabel - Lucky13 - 02.01.2016

Try to add this on top of the script ( also remove it from OnPlayerSpawn ):

Код:
new Text3D:labelvip[MAX_PLAYERS];