02.07.2011, 17:19
pawn Код:
CMD:unban(playerid, params[])
{
new plrIP[16], string[128];
if(PVar[playerid][pLevel] >= 4)
{
if(sscanf(params, "s[16]", plrIP))
{
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;
}