Destroy All Objects? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Destroy All Objects? (
/showthread.php?tid=246593)
Destroy All Objects? -
sciman001 - 04.04.2011
Is it possible to loop through all the objects made with CreateObject and destroy them?
Re: Destroy All Objects? -
Backwardsman97 - 04.04.2011
Yes.
pawn Код:
for(new i; i<MAX_OBJECTS; i++)
{
if(IsValidObject(i))
DestroyObject(i);
}
Re: Destroy All Objects? -
sciman001 - 04.04.2011
thx!