Kick all CMD
#3

pawn Код:
if(!strcmp("/kickall", cmdtext, true))
    {
        for(new i; i < MAX_PLAYERS; i++)
        {
            if(pInfo[i][pLevel] < 1)
            {
                    if(IsPlayerConnected(i))
                    {
                    Kick(i);
                     }
        }
    }
       
        return 1;
    }
very simple and easy, you cann add some more stuff like messages and stuff...
just remmeber that after the loop and after the pLevel if statment i represents every player that hasn't got an admin level.
also change the pLevel array into the array that u use for your admin level

EDIT: damn u poster above!, like ur name btw
Reply


Messages In This Thread
Kick all CMD - by DaRkAnGeL[NBK] - 10.11.2011, 23:05
Re: Kick all CMD - by grand.Theft.Otto - 10.11.2011, 23:25
Re: Kick all CMD - by knackworst - 10.11.2011, 23:26
Re: Kick all CMD - by DaRkAnGeL[NBK] - 10.11.2011, 23:31
Re: Kick all CMD - by Norn - 10.11.2011, 23:47

Forum Jump:


Users browsing this thread: 1 Guest(s)