DestroyAllPlayerObjects - 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: DestroyAllPlayerObjects (
/showthread.php?tid=185118)
DestroyAllPlayerObjects -
Libra_PL - 23.10.2010
Hey, I need a function DestroyAllPlayerObjects here to my script (I know there isn't). Can anyone make a include (only fragment) of this? Then I will paste to correct file... I'm asking because I don't want put 1000 times DestroyPlayerObject...
Re: DestroyAllPlayerObjects -
Mauzen - 23.10.2010
pawn Код:
stock DestroyAllPlayerObjects(playerid)
{
for (new i = 0; i < MAX_OBJECTS; i ++)
DestroyPlayerObject(playerid, i);
}
Here you have one, untested, but should work.