SA-MP Forums Archive
ChatBubble or 3D label? - 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: ChatBubble or 3D label? (/showthread.php?tid=632426)



ChatBubble or 3D label? - ElMaestro123 - 14.04.2017

Hello, how can I make chatbubble or 3d label to be above player and stay until player performs certain command to remove them? I want to make text [ADMIN] over players head, but how?


Re: ChatBubble or 3D label? - Sew_Sumi - 14.04.2017

There's a distinct lack of tutorials in this field.

You'll want to be using 3D labels. Chatbubbles are only around a short time before they disappear.


Re: ChatBubble or 3D label? - raydx - 14.04.2017

Create3DTextLabel + Attach3DTextLabelToPlayer.


Re: ChatBubble or 3D label? - ElMaestro123 - 14.04.2017

i am going to use task function from ******'s y_timers.
Thank you for answers.


Re: ChatBubble or 3D label? - GangstaSunny. - 14.04.2017

You can set the time for chat bubbles. So they dont "dissapear in short time".

https://sampwiki.blast.hk/wiki/SetPlayerChatBubble


Re: ChatBubble or 3D label? - ElMaestro123 - 14.04.2017

Quote:
Originally Posted by GangstaSunny.
View Post
You can set the time for chat bubbles. So they dont "dissapear in short time".

https://sampwiki.blast.hk/wiki/SetPlayerChatBubble
that's exactly what i did.

Code:
task ChatDouble[3000]()
{
	foreach(Player,i)
	{
                //chat bubbles with 3000ms time



Re: ChatBubble or 3D label? - AndreiWow - 14.04.2017

Quote:
Originally Posted by ElMaestro123
View Post
that's exactly what i did.

Code:
task ChatDouble[3000]()
{
	foreach(Player,i)
	{
                //chat bubbles with 3000ms time
I still suggest using 3DTextLabels for long time texts, like if you want to display something above the player head that should stay there for a while, for example writing "Admin" or things like those.

And use bubble for short term texts like actions, appearance, etc.


Re: ChatBubble or 3D label? - ElMaestro123 - 14.04.2017

Quote:
Originally Posted by AndreiWow
View Post
I still suggest using 3DTextLabels for long time texts, like if you want to display something above the player head that should stay there for a while, for example writing "Admin" or things like those.

And use bubble for short term texts like actions, appearance, etc.
you are right, but the player that which has 3d text on him will see it


Re: ChatBubble or 3D label? - AndreiWow - 14.04.2017

No he wont?


Re: ChatBubble or 3D label? - GangstaSunny. - 14.04.2017

Quote:
Originally Posted by ElMaestro123
View Post
you are right, but the player that which has 3d text on him will see it
No he won't see it. Do only use 3DText if you want them to destroy them by yourself.