03.02.2015, 21:01
Hello guys. I have a problem here. When someone tries to login with the rcon pw, it should say:
But when they use the wrong pw, they cant use the rcon cmds but it shows like this:
I dont know what is wrong here
Код:
AdmLogin: %s has failed login into RCON. Password used: %s. IP: %s
Код:
AdmLogin: %s has successfully logged into RCON. IP: %s.
Код:
public OnRconLoginAttempt(ip[], password[], success) { new pip[16], string[128]; foreach(Player, i) { GetPlayerIp(i, pip, sizeof(pip)); if(!strcmp(ip, pip, false)) { if(!success) format(STRING, "AdmLogin: %s has failed login into RCON. Password used: %s. IP: %s.", GetPlayerNameEx(i), password); if(PlayerInfo[i][pAdmin] <= 4 && !success) { Kick(i); } else format(STRING, "AdmLogin: %s has successfully logged into RCON. IP: %s.", GetPlayerNameEx(i)); ABroadCast(COLOR_ADMIN, string, 4); if(!success) format(STRING, "AdmLogin: %s has failed login into RCON. Password used: %s. IP: %s", GetPlayerNameEx(i), password, ip); else format(STRING, "AdmLogin: %s has successfully logged into RCON. IP: %s", GetPlayerNameEx(i), ip); Log("logs/rcon.log", string); } } return 1; }