Create3DTextLabel Messed up
#1

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...
Reply
#2

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
Reply
#3

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]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)