[Ajuda] Comando /kickall
#2

pawn Код:
if(strcmp("/kickall", cmdtext, true) == 0)
{
    if(IsPlayerAdmin(playerid))
    {
        new string[60];
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(i != playerid)
            {
                Kick(i);
            }
        }
        format(string, sizeof(string), "[~] {FFFFFF}[ID:%d]%s {E31919}kickou todos do servidor!", playerid, pNome(playerid));
        SendClientMessage(playerid, VERMELHO, string);
        printf("[SERVER] : [ID:%d]%s executou o comando /kickall e todos sairam do servidor.", playerid, pNome(playerid));
    }
    return 1;
}
Reply


Messages In This Thread
[Ajuda] Comando /kickall - by Gabriel Santana - 26.07.2012, 05:47
Re: [Ajuda] Comando /kickall - by Jason` - 26.07.2012, 06:02
Re: [Ajuda] Comando /kickall - by leonardo1434 - 26.07.2012, 07:11

Forum Jump:


Users browsing this thread: 1 Guest(s)