09.06.2013, 12:57
Hello, does anyone know why my command to ban an IP doesn't work. My ban command works perfectly, but the player just joins with another name. Can any of you take a quick look at it an tell me what I can add to actually ban the IP an keep it banned until someone unbans it. I would appreciate it alot.. Thanks in advanced
Heres the code:
Heres the code:
Код:
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] >= 1337) { AddBan(tmp); format(string, sizeof(string), "AdmCmd: %s has banned IP:%s", GetPlayerNameEx(playerid), tmp); ABroadCast(COLOR_RED,string,2); } else { SendClientMessage(playerid, COLOR_GRAD2, " You are not authorized to use that command !"); } } return 1; }