06.09.2012, 03:57
pawn Код:
CMD:banip(playerid, params[])
{
if(IsPlayerConnected(playerid)) {
new string[128], tmp[32];
if(sscanf(params, "s[32]", tmp)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /banip [ip]");
if(PlayerInfo[playerid][pAdmin] >= 3) {
AddBan(tmp);
format(string, sizeof(string), "AdmCmd: %s has banned IP:%s", GetPlayerNameEx(playerid), tmp);
ABroadCast(COLOR_LIGHTRED,string,2);
} else {
SendClientMessage(playerid, COLOR_GRAD2, " You are not authorized to use that command !");
}
}
return 1;
}

