SA-MP Forums Archive
[Plugin] Streamer Plugin - 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: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] Streamer Plugin (/showthread.php?tid=102865)



Respuesta: Streamer Plugin - admantis - 11.10.2013

The default SA:MP OnPlayerEditObject and OnPlayerSelectObject aren't being called when I use this plugin (I placed a printf line at the beginning and nothing was printed!). Why?


Re: Streamer Plugin - im - 11.10.2013

So, when you set a player to a custom interior, sometimes he will fall through the floor because objects are not streamed fast enough. Any way to detect if all the objects that should be streamed for the player are actually streamed in? I know I can freeze the player and use a timer, but sometimes objects are streamed in faster than that so the freeze is not needed.


Re: Streamer Plugin - iZN - 11.10.2013

Quote:
Originally Posted by im
Посмотреть сообщение
So, when you set a player to a custom interior, sometimes he will fall through the floor because objects are not streamed fast enough. Any way to detect if all the objects that should be streamed for the player are actually streamed in? I know I can freeze the player and use a timer, but sometimes objects are streamed in faster than that so the freeze is not needed.
Actually it depends on the player pings too. You can set small and big timer upto the player pings. If the player pings are < 100, it will spawn the player in 3 seconds. Or if the player is having 200>, it will spawn the player in 5-6 seconds.


Re: Streamer Plugin - Konstantinos - 11.10.2013

Or you can use Streamer_UpdateEx to pre-load the objects before setting the position to a player; however, using Streamer_UpdateEx and a timer of 1.5-2 seconds would be better.


Re: Streamer Plugin - im - 11.10.2013

How long does Streamer_UpdateEx keep data for?

For example, if I'm in a custom interior and I use the /spectate option to spectate a player in another interior, can I use Streamer_UpdateEx in my /spectate command so that the custom interior I was in before spectating will stay loaded for me? When I use /specoff, my position is set back to the custom interior so I'll fall through the floor.

Also, can Streamer_UpdateEx be used multipl times to preload multiple interiors?


Re: Streamer Plugin - iZN - 11.10.2013

Yes, also mention the correct coordinates or get the player position (whatever was it before the spectate)

pawn Код:
Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1);



Re: Streamer Plugin - caoraivoso3 - 13.10.2013

what is the playerid = -1? what does?


Re: Streamer Plugin - shittt - 13.10.2013

Good PluGin .


Re: Streamer Plugin - caoraivoso3 - 13.10.2013

how i can see if the player enter the checkpoint with this streamer? it is the regular way or i need specials functions?


Re: Streamer Plugin - ColdFly - 06.11.2013

deleted.


Re: AW: Streamer Plugin - leong124 - 06.11.2013

Quote:
Originally Posted by Blueicy
Посмотреть сообщение
Does anyone else experience problems, when creating objects otherwise than using ongamemodeinit?

For me the objects just disappear after some time.
I don't have any problem. I add my objects in a filterscript and some other callbacks that will remove the objects after some time by script. I have objects added outside ongamemodeinit/onfilterscriptinit callback and remove them after about 5 minutes, and it doesn't disappear itself.

I guess he problem is probably caused by creating non-dynamic objects overtime so it start to reach the limit.


Re: Streamer Plugin - White_116 - 08.11.2013

Hello everyone..
Does anyone know how to get data object E_STREAMER_INTERIOR_ID, E_STREAMER_WORLD_ID and PlayerObjectID
I using
Quote:

new ds[32];
Streamer_GetArrayData(STREAMER_TYPE_OBJECT, id, E_STREAMER_INTERIOR_ID, ds);

But it is not working


Re: Streamer Plugin - Pottus - 13.11.2013

Has anyone had problems with OnPlayerEditDyanmicObject() and OnPlayerSelectDynamicObject() not being called?


Re: Streamer Plugin - Sublime - 13.11.2013

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
Has anyone had problems with OnPlayerEditDyanmicObject() and OnPlayerSelectDynamicObject() not being called?
Um.. I don't think so (Unless you spelt it wrong like I see here O.O)


Re: Streamer Plugin - Pottus - 13.11.2013

Quote:
Originally Posted by Sublime
Посмотреть сообщение
Um.. I don't think so (Unless you spelt it wrong like I see here O.O)
Did you even try those callbacks yourself ?


Re: Streamer Plugin - Sublime - 13.11.2013

I did, it calls fine here. Do you need my test code?


Re: Streamer Plugin - Pottus - 13.11.2013

Alright just making sure, I'll have to keep looking.

Lets see that test code anyways.


Re: Streamer Plugin - BlackBank - 17.11.2013

Quote:
Originally Posted by White_116
Посмотреть сообщение
Hello everyone..
Does anyone know how to get data object E_STREAMER_INTERIOR_ID, E_STREAMER_WORLD_ID and PlayerObjectID
I using

But it is not working
Try to use 'Streamer_GetIntData' instead of the Array function.


Re: Streamer Plugin - white_energy - 14.12.2013

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
Has anyone had problems with OnPlayerEditDyanmicObject() and OnPlayerSelectDynamicObject() not being called?
Yeap... it's a huge problem..


Re: Streamer Plugin - Alphlax - 29.12.2013

Nice streamer