3d text label problem - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 3d text label problem (
/showthread.php?tid=214420)
3d text label problem -
Face9000 - 21.01.2011
Hi all,im using the include to detect when a player is paused,and if it's,the server will add a text label above hid head:
pawn Код:
label[playerid] = Create3DTextLabel("I'm PAUSED!",0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
I added this on the function Paused.
Then,i added this on Unpaused:
pawn Код:
Delete3DTextLabel(label[playerid]);
But the textlabel want leave :/
Re: 3d text label problem -
ExeC - 21.01.2011
Quote:
Originally Posted by Logitech90
pawn Код:
Delete3DTextLabel(label[playerid]);
But the textlabel want leave :/
|
In my gamemode, I made it like this:
pawn Код:
Update3DTextLabelText(label[playerid], 0xFFFA00FF, " ");
Delete3DTextLabel(label[playerid]);
Try that.
Re: 3d text label problem -
Face9000 - 21.01.2011
Ok,i maked on Pause:
Update3DTextLabelText(label[playerid], 0xFFFA00FF, "I'm PAUSED!");
and on Unpause:
Delete3DTextLabel(label[playerid]);
Re: 3d text label problem -
HyperZ - 21.01.2011
Quote:
Originally Posted by Logitech90
Ok,i maked on Pause:
Update3DTextLabelText(label[playerid], 0xFFFA00FF, "I'm PAUSED!");
and on Unpause:
Delete3DTextLabel(label[playerid]);
|
lol he meant
Put this on player UnPause.
pawn Код:
Update3DTextLabelText(label[playerid], 0xFFFA00FF, " ");
Delete3DTextLabel(label[playerid]);
Re: 3d text label problem -
Face9000 - 21.01.2011
And on Pause,i remove:
Update3DTextLabelText(label[playerid], 0xFFFA00FF, "Paused");
?
Re: 3d text label problem -
ExeC - 21.01.2011
Quote:
Originally Posted by Logitech90
And on Pause,i remove:
Update3DTextLabelText(label[playerid], 0xFFFA00FF, "Paused");
?
|
No, just keep it.
Re: 3d text label problem -
Face9000 - 21.01.2011
Ok,thanks.