23.12.2011, 14:18
I don't think this is possible with a 'few lines' of code, though is definitely possible.
A way to check if a 'static' object (San Andreas object) is valid would go down a treat in this case.
A way to check if a 'static' object (San Andreas object) is valid would go down a treat in this case.
pawn Код:
#define SA_OBJECTS 18630 //I'm basing this number on the fact that SA-MP objects start at 16831
for(new i; i < SA_OBJECTS; i++)
{
if(!IsValidStaticObject(i)) continue;
RemoveSpecificBuilding(i); //A function from my include. Though it is basically: RemoveBuildingForPlayer([everyone], i, 0.0, 0.0, 0.0, A_HIGH_NUMBER.0);
}

