DestroyAllPlayerObjects
#1

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...
Reply
#2

pawn Код:
stock DestroyAllPlayerObjects(playerid)
{
    for (new i = 0; i < MAX_OBJECTS; i ++)
        DestroyPlayerObject(playerid, i);
}
Here you have one, untested, but should work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)