Incognito's Streamer
#1

Hi there,
I have a question.

I am using latest Incognito's Streamer version on my server. When player X writes something in local chat, a chat bubble created by 3d text label should appear upon his nametag, so player Y can see it. The problem is, that player Y is able to see that dynamic 3d text label after he moves. So, I need to create 3d dynamic text label upon player X's head, so it will stream instantly to other players, that they wouldn't need to move.

Thanks.
Reply
#2

Streamer plugin usually works by detecting player's movement. That way it becomes possible for the plugin to identify whether the player is near the stream distance or not.(This is to prevent it from using much memory)

So, there is no way(as far as i know). Tho, you can wait for more replys or try editing the plugin yourself! it never hurts to give it a try.
Reply
#3

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

OR you can update the streamer for the player by using 'Streamer_Update'.

Quote:

Streamer_Update(playerid, type = -1)

Parameters:
playerid: The player ID.
type: The item type.
Returns:
0 on failure, 1 on success.
Issues an update for the player.

Optionally, an item type may be specified.

https://github.com/samp-incognito/sa...treamer_Update
https://github.com/samp-incognito/sa...ons#item-types

So technically:
PHP код:
Streamer_Update(playeridSTREAMER_TYPE_3D_TEXT_LABEL); 
Reply
#4

Thanks everyone,
I'll try Threshold's second advice.
Reply
#5

What's the point of making a 3d text label for local chat? SetPlayerChatBubble would be easier n save you time.
Reply
#6

Well, Streamer_Update didn't work.

I can't use SetPlayerChatBubble, because I am using it already for a nametag w/o health and armour. Using SPCB for nametag is better than creating 3D Text Label (in my opinion), because 3D Text Labels got bugged sometimes, and they appeared upon wrong player. So, I decided to use SPCB for a nametag and 3d text label for a chat bubble.

Any ideas, someone?
Reply
#7

That's because you're not handling the labels correctly. It has nothing to do with the fact that they're text labels.

Delete the labels when you're finished with them. Create them when the player connects. Attach them when the player spawns. Reset the label variables when you delete them.
Reply
#8

Then, I found another problem. When I am using 3D label for a nametag, when the player is tabbed and AFK as a passenger in a vehicle, the nametag will disappear after vehicle changes its position.
Reply
#9

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)