BanIP and UnbanIP not working |rep+
#3

Try those,
Quote:
Originally Posted by FreshDoubleX
Посмотреть сообщение
pawn Код:
CMD:banip(playerid, params[])
{
    new
        type[ 128 ],
        string[ 128 ]
    ;
    if(sscanf(params, "s[128]", type)) SendClientMessage(playerid, -1, "Usage: /banip [IP]");
    else
    {
        format(string, sizeof(string),"banip %s", type);
        SendRconCommand(string);
        SendRconCommand("reloadbans");
    }
    return true;
}
Quote:
Originally Posted by Aprezt
Посмотреть сообщение
Here you are...
pawn Код:
CMD:unbanip(playerid, params[])
{
    new type[128],string[128];
    if(sscanf(params, "s[128]", type)) SendClientMessage(playerid, -1, "USAGE: /unbanip [Players IP]");
    else
    {
        if(PlayerInfo[playerid][pPlayerLogged] == 0) return SendClientMessage(playerid, -1, "* You are not logged in!");
       
        if(PlayerInfo[playerid][pAdminLevel] >= 1)
        {
            format(string, sizeof(string),"unbanip %s", type);
            SendRconCommand(string);
            SendRconCommand("reloadbans");
                   format(string, sizeof(string), "AdmWarning: %s has unbanned IP %s", Name( playerid ), type);
            SendAdminMessage(-1,string);
        }
        else
        {
            return SendClientMessage(playerid, -1 ,"You dont have access!");
        }
    }
    return true;
}
Reply


Messages In This Thread
BanIP and UnbanIP not working |rep+ - by TiXz0r - 20.05.2015, 15:58
Re: BanIP and UnbanIP not working |rep+ - by Devon007 - 20.05.2015, 16:03
Re: BanIP and UnbanIP not working |rep+ - by Ghazal - 20.05.2015, 16:09
Re: BanIP and UnbanIP not working |rep+ - by TiXz0r - 20.05.2015, 16:46
Re: BanIP and UnbanIP not working |rep+ - by Devon007 - 20.05.2015, 16:55
Re: BanIP and UnbanIP not working |rep+ - by TiXz0r - 20.05.2015, 17:39

Forum Jump:


Users browsing this thread: 1 Guest(s)