SA-MP Forums Archive
Create3DTextLabel Messed up - 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: Create3DTextLabel Messed up (/showthread.php?tid=360607)



Create3DTextLabel Messed up - [Cali]ChrOnic_T - 18.07.2012

This is fucking getting me mad , this is a good time to say "UMAD BRO?"


this is the problem

Код:
new Text3D:admin = Create3DTextLabel("-Admin ON Duty- Dont Kill!",0xFF00FFC8, 0.0, 0.0, 40.0, 20.0, 0, 1);
  Attach3DTextLabelToPlayer(admin, playerid, 0.0, 0.0, 0.47);
Now how to remove it? I will +REP You for the first 5 people that answers...


Re: Create3DTextLabel Messed up - tiernantheman - 18.07.2012

This is how you destroy a 3DTextLabel. https://sampwiki.blast.hk/wiki/Delete3DTextLabel. Just put it under when you go off duty as an admin


Re: Create3DTextLabel Messed up - Roko_foko - 18.07.2012

What's the problem actually?

If you wan't once the admin goes off duty remove the 3d text then the admin var needs to be global one
Don't know if you can attach one 3DTextLabel to more then one player( I think you can't). I would do this way:
pawn Код:
new Text3D:admin[MAX_PLAYERS] = Create3DTextLabel("-Admin ON Duty- Dont Kill!",0xFF00FFC8, 0.0, 0.0, 40.0, 20.0, 0, 1);// top od the script
When admin 0n duty
pawn Код:
Attach3DTextLabelToPlayer(admin[playerid], playerid, 0.0, 0.0, 0.47);
when admin off duty:
pawn Код:
DeletePlayer3DTextLabel(admin[playerid]);