02.07.2011, 19:36
Quote:
pawn Код:
|
pawn Код:
CMD:unban(playerid, params[])
{
new plrIP[16], string[128];
if(PVar[playerid][pLevel] >= 4)
{
if(!sscanf(params, "s[16]", plrIP))
{
//if(strlen(plrIP) < 16) return SendClientMessage(playerid, COLOR_RED, "Enter a valid IP Address!");
format(string, sizeof(string), "unbanip %s", plrIP);
SendRconCommand(string);
SendRconCommand("reloadbans");
format(string, sizeof(string), "[UNBAN] Admin %s has unbanned %s", pName(playerid), plrIP);
SendMessageToAdmins(COLOR_LIGHTBLUE, string);
printf(string);
}
else return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Usage: /Unban < IP Address >");
}
else return AdminCMD(playerid, 4);
return 1;
}