PDA

View Full Version : SetPlayerChatBubble question.


Omirrow
10/07/2017, 02:03 PM
Hey there,

Is it possible to use SetPlayerChatBubble for only a player? Is there anything like SetPlayerChatBubbleForPlayer ? If not, then I'll need to use 3DTextLabels.

JasonRiggs
10/07/2017, 02:10 PM
What system are you trying to create tell us to help you with what you should use..

NaS
10/07/2017, 02:11 PM
Nope, chat bubbles are always visible for anyone. As you already suggested, you must use 3D Text Label for that.

Omirrow
10/07/2017, 02:15 PM
What system are you trying to create tell us to help you with what you should use..

I want a player's variable to show above him when another player aims at him (with GetPlayerTarget) but ONLY for him, not for any player near him.

JasonRiggs
10/07/2017, 02:17 PM
I want a player's variable to show above him when another player aims at him (with GetPlayerTarget) but ONLY for him, not for any player near him.

Then go ahead using textdraws..

OneDay
10/07/2017, 02:33 PM
YSF plugin can do it .

Sew_Sumi
10/07/2017, 02:43 PM
Then go ahead using textdraws..

3DTextLabels... Not textdraws.

Omirrow
10/07/2017, 03:13 PM
YSF plugin can do it .

How can I use it? I'll give it a look.

EDIT:

native SetPlayerChatBubbleForPlayer(forplayerid, playerid, const text[], color, Float:drawdistance, expiretime);
http://forum.sa-mp.com/showthread.php?t=513499

Thanks, I didn't know there was something like that.

cdoubleoper
10/07/2017, 03:22 PM
How can I use it? I'll give it a look.

EDIT:

native SetPlayerChatBubbleForPlayer(forplayerid, playerid, const text[], color, Float:drawdistance, expiretime);
http://forum.sa-mp.com/showthread.php?t=513499

Thanks, I didn't know there was something like that.

But it's still based on 3D labels.

Omirrow
10/07/2017, 03:28 PM
But it's still based on 3D labels.

And using YSF plugin just for a single native is not a good idea at all, I guess. I'll be scripting it on my own as I stated in my first post, using 3DTextLabels.

OneDay
10/07/2017, 06:45 PM
And using YSF plugin just for a single native is not a good idea at all, I guess. I'll be scripting it on my own as I stated in my first post, using 3DTextLabels.

Why? Scripting it seems worse than using a plugin.

Omirrow
11/07/2017, 01:11 PM
Why? Scripting it seems worse than using a plugin.

This is what you think but not what I think, YSF is not a simple plugin and it uses some memory to be honest. I'm not gonna be using all other functions or even more than one from YSF plugin so why should I use it for JUST a function?

Meller
11/07/2017, 01:39 PM
Why? Scripting it seems worse than using a plugin.

Oh god.. you know nothing about plugins do you?

"Oh look, people said that plugins are faster, I'll just tell everyone it's worse than using the embedded scripting language we're scripting everything in with."
Just take a look in YSF and come back with some common sense.

Paulice
11/07/2017, 03:59 PM
You'd be wanting to use 3DTextLabels to begin with as SetPlayerChatBubble does not have the testLOS parameter and furthermore, does not have the feature natively integrated.