Need help with Streamer object
#2

You can easily perform this by using streamer memory natives.

pawn Код:
for (new i, j = Streamer_GetUpperBound(STREAMER_TYPE_OBJECT); i < j; i++) {//loop through all dynamic objects
    if (IsValidDynamicObject(i) && Streamer_GetIntData(STREAMER_TYPE_OBJECT, i, E_STREAMER_WORLD_ID) == 10) {//check for virtual world 10
        DestroyDynamicObject(i);//destroy the object in world id 10
    }
}
EDIT: Use a validity check to avoid that warning.
Reply


Messages In This Thread
Need help with Streamer object - by AleemIqbal1 - 05.10.2015, 11:50
Re: Need help with Streamer object - by Gammix - 05.10.2015, 12:21
Re: Need help with Streamer object - by ATGOggy - 05.10.2015, 14:04
Re: Need help with Streamer object - by AleemIqbal1 - 06.10.2015, 02:01
Re: Need help with Streamer object - by Affan - 06.10.2015, 09:11
Re: Need help with Streamer object - by AleemIqbal1 - 06.10.2015, 11:34
Re: Need help with Streamer object - by AbyssMorgan - 06.10.2015, 11:36
Re: Need help with Streamer object - by AleemIqbal1 - 10.10.2015, 00:42

Forum Jump:


Users browsing this thread: 1 Guest(s)