Unbanning an IP
#2

pawn Код:
CMD:unban(playerid, params[])
{
    new plrIP[16], string[128];

    if(PVar[playerid][pLevel] >= 4)
    {

        if(sscanf(params, "s[30]", plrIP))// 16 for IP and other for unbanip
        {
            format(string, sizeof(string), "unbanip %s", plrIP);
            SendRconCommand(string);

            format(string, sizeof(string), "[UNBAN] Admin %s has unbanned %s", pName(playerid), plrIP);
            SendMessageToAdmins(COLOR_LIGHTBLUE, string);
        }
        else return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Usage: /Unban < IP Address >");
    }
    else return AdminCMD(playerid, 4);
    return 1;
}
Reply


Messages In This Thread
Unbanning an IP - by Skylar Paul - 02.07.2011, 17:19
Re: Unbanning an IP - by TheGarfield - 02.07.2011, 18:05
Re: Unbanning an IP - by Skylar Paul - 02.07.2011, 19:36

Forum Jump:


Users browsing this thread: 1 Guest(s)