[Plugin] How does streamer work for objects??
#1

Hi. I've opened incognito's streamer source with microsoft visual c++ and it was really complicated to understand any function and i'd like to know how streamer works to stream objects. It creates playerobjects when the player is in range and destroys them when he gets further but i wanna know more about it, cuz i only use 1 native from streamer and it would be better if i make my own plugin instead but it doesn't work :/ thanks for helping
Reply
#2

You can try reading this
Reply
#3

Why would it be better to make your own streamer? You should focus on your script features.
Reply
#4

Stick to Incognito's streamer.

You might find out later on you need more things to stream and you'll end up converting it all to a fully working, updated streamer in the end anyway instead of writing your own streamer-code for everything.

Right now, you might only use the streamer for objects, but later on, you could need it for map-icons, 3D text labels and such things as well.
Reply
#5

i just want the createdynamicobject function from streamer and all the rest is a waste of memory on my server
Reply
#6

Unless you're hosting your server with a Pentium 3 CPU with 128 MB RAM, do you really need to "save" memory by writing your own streamer? Incognito's will probably remain the best streamer in SA:MP world. It's stable, documented and used by thousands of server owners.
Document yourself about "reinventing the wheel" (http://en.wikipedia.org/w/index.php?...ting_the_wheel).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)