SA-MP Forums Archive
Kick all command? - 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: Kick all command? (/showthread.php?tid=199912)



Kick all command? - Rokzlive - 16.12.2010

How so i make a function that kicks all players?


Re: Kick all command? - admantis - 16.12.2010

pawn Код:
stock KickAll()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i)) Kick(i);
    }
    return 1;
}