PDA

View Full Version : ChatBubble or 3D label?


ElMaestro123
14/04/2017, 05:41 AM
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?

Sew_Sumi
14/04/2017, 07:39 AM
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.

raydx
14/04/2017, 08:10 AM
Create3DTextLabel + Attach3DTextLabelToPlayer.

ElMaestro123
14/04/2017, 04:40 PM
i am going to use task function from ******'s y_timers.
Thank you for answers.

GangstaSunny.
14/04/2017, 04:46 PM
You can set the time for chat bubbles. So they dont "dissapear in short time".

http://wiki.sa-mp.com/wiki/SetPlayerChatBubble

ElMaestro123
14/04/2017, 04:52 PM
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.

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

AndreiWow
14/04/2017, 05:15 PM
that's exactly what i did.

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.

ElMaestro123
14/04/2017, 05:26 PM
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 :D

AndreiWow
14/04/2017, 05:32 PM
No he wont?

GangstaSunny.
14/04/2017, 08:44 PM
you are right, but the player that which has 3d text on him will see it :D
No he won't see it. Do only use 3DText if you want them to destroy them by yourself.