21.05.2015, 07:40
So you would like to destroy all objects that are in virtual world X?
I haven't tested this but i'm 90% sure that this should work.
Code:
// Looping through all of the objects on the server. for(new i = 0; i < Streamer_CountItems(STREAMER_TYPE_OBJECT, 1); i++) { // Getting the virtual world of the object. new virtual_world = Streamer_GetIntData(STREAMER_TYPE_OBJECT, i, E_STREAMER_WORLD_ID); // For example let's say we want to destroy all the objects in virtual world 777. if(virtual_world == 777) { DestroyDynamicObject(i); } }