18.06.2013, 20:54
i suggest instead of unloading those just load into another map,
Also if you wanna destroy the objects use this,
then call it at endmap or that way it will destroy all the objects and vehicles in your currently playing map(when it's switching)
Also if you wanna destroy the objects use this,
Код:
stock ClearObjects()
{
for(new i; i<MAX_OBJECTS; i++)
{
if(IsValidObject(i)) DestroyObject(i);//ok so look the map does not change. //do you have more than 1 map?
}
}
stock DestroyAllVehicle()
{
for(new i=1;i<=MAX_VEHICLES;i++)
{
DestroyVehicle(i);
}
return 1;
}

