Objects in all worlds - streamer.
#1

Hey.
I'm using the streamer of Incognito: https://sampforum.blast.hk/showthread.php?tid=102865 .
I want to make object that will displaying in all worlds but not in one specific world.
For example, objects in all worlds but not in 998.

What is the way to make it?(and not with loop because if there are much object the samp's crashing, and there's way but I'm not sure how)
Reply
#2

I don't think it can be done. Maybe you can try something with SetArrayData, but I'm not having high hopes for that either.
Reply
#3

I can't see something that can be the world of the object in Streamer_SetArrayData.
I saw that:
native Streamer_SetArrayData(type, {Text3D,_}:id, data, const src[], maxlength = sizeof src);

How can I use it for the world?
Reply
#4

pawn Код:
native CreateDynamicObjectEx(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, Float:drawdistance = 0.0, Float:streamdistance = 200.0, worlds[] = { -1 }, interiors[] = { -1 }, players[] = { -1 }, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players);
You can create an array of the virtual worlds that you want the object(s) to be in and use it in combination with that function.
Reply
#5

Edit:
I understood that need to do in the worlds like: {0,1,2}, but what is size of for max worlds, interior, players?
Reply
#6

Quote:
Originally Posted by Activest
Посмотреть сообщение
Hey.
I'm using the streamer of Incognito: https://sampforum.blast.hk/showthread.php?tid=102865 .
I want to make object that will displaying in all worlds but not in one specific world.
For example, objects in all worlds but not in 998.

What is the way to make it?(and not with loop because if there are much object the samp's crashing, and there's way but I'm not sure how)
This is probable not a good and efficient way but
you can have up to 2,147,483,647 worlds so
pawn Код:
#define MAX_WORLDS 2147483647 // <would not recommend using this high number
for(new count;count < MAX_WORLDS;count++
{
    if(count != 998)
    {
        CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, count, interiorid = -1,    playerid = -1, Float:streamdistance = 300.0);
    }
}
Reply
#7

Код:
Streamer_RemoveArrayData( STREAMER_TYPE_OBJECT, objectid, E_STREAMER_WORLD_ID, 998 );
I'm not sure if it works with "-1" as world id.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)