[Ajuda] Comando /kickall
#3

Vocкs estгo fumando nй ?Vocкs vгo kickar e depois enviar a mensagem como? o_O

pawn Код:
if(!strcmp("/kickall", cmdtext, true))
{
    if(IsPlayerAdmin(playerid)) {
        static string[80];
        format(string, sizeof(string), "[~] {FFFFFF}[ID:%d]%s {E31919}kickou todos do servidor!", playerid, pNome(playerid));
        for(new i = 0; i < MAX_PLAYERS;  ++i) {
            if(i != playerid) {
                SendClientMessage(i, VERMELHO, string);
                Kick(i);
            }
        }
        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)