SA-MP Forums Archive
Incognito's Streamer - 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: Incognito's Streamer (/showthread.php?tid=632112)



Incognito's Streamer - Bigwebicek - 09.04.2017

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.


Re: Incognito's Streamer - verlaj - 09.04.2017

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.


Re: Incognito's Streamer - Threshold - 09.04.2017

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); 



Re: Incognito's Streamer - Bigwebicek - 09.04.2017

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


Re: Incognito's Streamer - Kane - 10.04.2017

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


Re: Incognito's Streamer - Bigwebicek - 11.04.2017

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?


Re: Incognito's Streamer - Threshold - 12.04.2017

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.


Re: Incognito's Streamer - Bigwebicek - 12.04.2017

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.


Re: Incognito's Streamer - Bigwebicek - 29.04.2017

bump