rcon login problem
#1

im trying to make it so when you try to login it just says "wrong password" but it says SERVER: bad admin password etc

anyway to fix it?


heres the code

Код:
public OnRconLoginAttempt(ip[], password[], success)
{
	if(!success)
    {
        new pip[16];
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            GetPlayerIp(i, pip, sizeof(pip));
            if(!strcmp(ip, pip, true))
            {
                SendClientMessage(i, 0xFFFFFFFF, "Wrong Password.");
                return 1;
            }
        }
    }
	return 1;
}
and a picture of the text

Reply
#2

try changing the "return 1;" at the very end of the code to "return 0".. no clue if it works though
Reply
#3

Quote:
Originally Posted by Sascha
Посмотреть сообщение
try changing the "return 1;" at the very end of the code to "return 0".. no clue if it works though
i already tried that ;|
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)