BanIP and UnBanIP Command
#4

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 Command - by TV94 - 04.01.2012, 10:41
Re: BanIP and UnBanIP Command - by TV94 - 05.01.2012, 08:46
Re: BanIP and UnBanIP Command - by FreshDoubleX - 05.01.2012, 09:04
Re: BanIP and UnBanIP Command - by Aprezt - 05.01.2012, 09:05
Re: BanIP and UnBanIP Command - by James Coral - 05.01.2012, 09:50
Re: BanIP and UnBanIP Command - by Boooth - 05.01.2012, 10:21
Re: BanIP and UnBanIP Command - by TV94 - 05.01.2012, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)