21.05.2015, 10:14
My code atm:
I tried to optimize it a little bit. Still doesn't work, still lags.. Should I just give up this idea?
Code:
for(new i = 0; i < CountDynamicObjects(); i++)
{
if(!IsValidDynamicObject(i)) continue;
if(Streamer_GetIntData(STREAMER_TYPE_OBJECT, i, E_STREAMER_WORLD_ID) != WORLD_CSDM) continue;
DestroyDynamicObject(i);
}

