[Ajuda] /kick (icmd)
#7

Quote:
Originally Posted by Willian_Luigi
Посмотреть сообщение
Nгo fale besteira.



Continuas com o spam inъtil ?


@tуpico

use apenas
pawn Код:
if (!params[0])
Essa sua condiзгo estб errada, nenhuma condiзгo й imposta com vнrgulas.
vc nem reparou que tem 2 parametros

pawn Код:
public OnPlayerCommandText(playerid, commandid, params[])
{
    switch(commandid)
    {
        case iscmd("k,i,c,k"):
        {
            if(!IsPlayerAdmin(playerid) && PlayerDados[playerid][pAdmin] < 1) return SendClientMessage(playerid,-1,"Vocк precisa ser admin para usar este comando.");
            if(!params[0], !params[1])
                return SendClientMessage(playerid, -1, "[Erro]: Use /kick [id] [motivo]");
            if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid,-1, "Jogador nгo estб conectado.");
            new string[140];
            format(string,sizeof(string),":Admin: - %s Foi kickado Por %s, Motivo: %s", PlayerName(params[0]), PlayerName(playerid), motivo);
            SendClientMessageToAll(-1,string);
            Kick(params[0]);
            return true;
        }
        default: return SendClientMessage(playerid, -1, "[Erro]: Comando desconhecido, desculpe.");
    }
    return false;
}
Reply


Messages In This Thread
/kick (icmd) - by XxFaTaLxX - 03.11.2013, 14:13
Re: /kick (icmd) - by bruxo00 - 03.11.2013, 14:14
Re: /kick (icmd) - by PT - 03.11.2013, 14:16
Re: /kick (icmd) - by WLSF - 03.11.2013, 14:16
Re: /kick (icmd) - by XxFaTaLxX - 03.11.2013, 14:23
Re: /kick (icmd) - by WLSF - 03.11.2013, 14:30
Re: /kick (icmd) - by PT - 03.11.2013, 14:32
Re: /kick (icmd) - by WLSF - 03.11.2013, 14:36
Respuesta: /kick (icmd) - by DanDRT - 03.11.2013, 14:43
Re: /kick (icmd) - by XxFaTaLxX - 03.11.2013, 15:05

Forum Jump:


Users browsing this thread: 1 Guest(s)