SA-MP Forums Archive
rcon login problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: rcon login problem (/showthread.php?tid=257053)



rcon login problem - CrazyBlob - 23.05.2011

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




Re: rcon login problem - Sascha - 23.05.2011

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


Re: rcon login problem - CrazyBlob - 23.05.2011

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 ;|