SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/04/2017, 05:41 AM   #1
ElMaestro123
Big Clucker
 
Join Date: Feb 2017
Location: Stuck in the middle of nowhere.
Posts: 105
Reputation: 0
Default ChatBubble or 3D label?

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?
ElMaestro123 is offline   Reply With Quote
Old 14/04/2017, 07:39 AM   #2
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,243
Reputation: 525
Default Re: ChatBubble or 3D label?

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.
Sew_Sumi is offline   Reply With Quote
Old 14/04/2017, 08:10 AM   #3
raydx
Huge Clucker
 
raydx's Avatar
 
Join Date: Feb 2017
Posts: 203
Reputation: 73
Default Re: ChatBubble or 3D label?

Create3DTextLabel + Attach3DTextLabelToPlayer.
raydx is offline   Reply With Quote
Old 14/04/2017, 04:40 PM   #4
ElMaestro123
Big Clucker
 
Join Date: Feb 2017
Location: Stuck in the middle of nowhere.
Posts: 105
Reputation: 0
Default Re: ChatBubble or 3D label?

i am going to use task function from ******'s y_timers.
Thank you for answers.
ElMaestro123 is offline   Reply With Quote
Old 14/04/2017, 04:46 PM   #5
GangstaSunny.
Huge Clucker
 
GangstaSunny.'s Avatar
 
Join Date: Apr 2010
Location: Hamburg - Germany
Posts: 244
Reputation: 41
Default Re: ChatBubble or 3D label?

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

http://wiki.sa-mp.com/wiki/SetPlayerChatBubble
GangstaSunny. is offline   Reply With Quote
Old 14/04/2017, 04:52 PM   #6
ElMaestro123
Big Clucker
 
Join Date: Feb 2017
Location: Stuck in the middle of nowhere.
Posts: 105
Reputation: 0
Default Re: ChatBubble or 3D label?

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

http://wiki.sa-mp.com/wiki/SetPlayerChatBubble
that's exactly what i did.

Code:
task ChatDouble[3000]()
{
	foreach(Player,i)
	{
                //chat bubbles with 3000ms time
ElMaestro123 is offline   Reply With Quote
Old 14/04/2017, 05:15 PM   #7
AndreiWow
High-roller
 
AndreiWow's Avatar
 
Join Date: Nov 2014
Location: Romania, Bucharest
Posts: 1,046
Reputation: 48
Default Re: ChatBubble or 3D label?

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.
AndreiWow is offline   Reply With Quote
Old 14/04/2017, 05:26 PM   #8
ElMaestro123
Big Clucker
 
Join Date: Feb 2017
Location: Stuck in the middle of nowhere.
Posts: 105
Reputation: 0
Default Re: ChatBubble or 3D label?

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
ElMaestro123 is offline   Reply With Quote
Old 14/04/2017, 05:32 PM   #9
AndreiWow
High-roller
 
AndreiWow's Avatar
 
Join Date: Nov 2014
Location: Romania, Bucharest
Posts: 1,046
Reputation: 48
Default Re: ChatBubble or 3D label?

No he wont?
AndreiWow is offline   Reply With Quote
Old 14/04/2017, 08:44 PM   #10
GangstaSunny.
Huge Clucker
 
GangstaSunny.'s Avatar
 
Join Date: Apr 2010
Location: Hamburg - Germany
Posts: 244
Reputation: 41
Default Re: ChatBubble or 3D label?

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.
GangstaSunny. is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] ChatBubble Showzs Português/Portuguese 11 18/10/2016 10:11 PM
[Ajuda] ChatBubble Ts3 Português/Portuguese 4 16/07/2014 06:25 PM
Chatbubble Dan. Scripting Help 3 24/08/2012 11:11 AM
help with NPC ChatBubble snabbo Help Archive 4 13/01/2010 06:39 PM
ChatBubble Help.. GforceNL Help Archive 4 03/01/2010 04:36 PM


All times are GMT. The time now is 05:01 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.