05.10.2015, 12:21
(
Последний раз редактировалось Gammix; 06.10.2015 в 02:26.
)
You can easily perform this by using streamer memory natives.
EDIT: Use a validity check to avoid that warning.
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
}
}