[Ajuda] Comandos /ban e /kick
#2

Tenta ver este comando e pegar alguma coisa dele
pawn Код:
COMMAND:kickar(playerid, params[])
{
    new PlayerToKick, Reason[128], ReasonMsg[128], Name[24];
    if (APlayerData[playerid][LoggedIn] == true)
    {
        if (APlayerData[playerid][PlayerLevel] >= 1)
        {
            if (sscanf(params, "us[128]", PlayerToKick, Reason)) SendClientMessage(playerid, 0xFF0000AA, "Use: \"/kickar <ID> <Motivo>\"");
            else
                if (IsPlayerConnected(PlayerToKick))
                {
                    GetPlayerName(playerid, Name, sizeof(Name));
                    format(ReasonMsg, 128, "Vocк foi kikado pelo %s %s", AdminLevelName[APlayerData[playerid][PlayerLevel]], Name);
                    SendClientMessage(PlayerToKick, 0xFF0000FF, ReasonMsg);
                    format(ReasonMsg, 128, "Motivo: %s", Reason);
                    SendClientMessage(PlayerToKick, 0xFF0000FF, ReasonMsg);
                    Kick(PlayerToKick);
                }
                else
                    SendClientMessage(playerid, 0xFF0000FF, "Este Jogador nгo estб online");
        }
        else
            return 0;
    }
    else
        return 0;

    return 1;
}
Reply


Messages In This Thread
Comandos /ban e /kick - by StrondaXxT - 15.10.2014, 20:16
Re: Comandos /ban e /kick - by PedexM - 15.10.2014, 20:23
Re: Comandos /ban e /kick - by ProKillerpa - 15.10.2014, 20:51
Re: Comandos /ban e /kick - by StrondaXxT - 15.10.2014, 21:05
Re: Comandos /ban e /kick - by ArthurxD - 15.10.2014, 22:42

Forum Jump:


Users browsing this thread: 1 Guest(s)