SA-MP Forums Archive
/rcon login ****** bug, how to fix it? - 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)
+--- Thread: /rcon login ****** bug, how to fix it? (/showthread.php?tid=245307)



/rcon login ****** bug, how to fix it? - Cr4zyR0d - 30.03.2011

Alright as you can see I did /rcon login [password]
but I got banned everytime I do /rcon login[password] ((Correct password))





In Server.logs it says that I logged in..

[17:08:43] ______________
[17:08:43]
[17:08:43] Number of vehicle models: 86
[17:09:34] Incoming connection: 127.0.0.1:56709
[17:09:34] [join] Robert_Harrison has joined the server (0:127.0.0.1)
[17:10:19] [chat] [Robert_Harrison]: male
[17:10:25] [chat] [Robert_Harrison]: 7/12/1989
[17:13:10] [part] Robert_Harrison has left the server (0:2)
[17:13:10] RCON (In-Game): Player #0 (Robert_Harrison) has logged in.


Re: /rcon login ****** bug, how to fix it? - TheYoungCapone - 30.03.2011

look in your script for OnRconLoginAttempt


Re: /rcon login ****** bug, how to fix it? - grand.Theft.Otto - 30.03.2011

Your admin ban system could be interfering with it or something else in your script. Try undoing the latest changes if you can.


Respuesta: /rcon login ****** bug, how to fix it? - Cr4zyR0d - 30.03.2011

Код:
public OnRconLoginAttempt(ip[], password[], success)
{
	return 1;
}
Lol there it is, now what do I have to do...
I'm new doing this and working with Script


Re: /rcon login ****** bug, how to fix it? - TheYoungCapone - 30.03.2011

I thought there was something that was banning you but try this maybe.
Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!success)
    {
        printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
        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. Bye!");
                Kick(i);
            }
        }
    }
    return 1;
}



Respuesta: /rcon login ****** bug, how to fix it? - Cr4zyR0d - 30.03.2011

Okay, I found it.. This is the real one.. I was checking in FilterScript -___-

Код:
public OnRconLoginAttempt(ip[], password[], success)
{
	if(success)
	{
		new pip[16];
		////foreach(Player,i)
        for(new i; i<MAX_PLAYERS; i++)
		{
			GetPlayerIp(i, pip, sizeof(pip));
			if(!strcmp(ip, pip, true))
			if(PlayerInfo[i][pAdmin] < 3) Ban(i);
		}
	}
}



Re: /rcon login ****** bug, how to fix it? - TheYoungCapone - 30.03.2011

either delete it or replace it with mine either way.


Respuesta: /rcon login ****** bug, how to fix it? - Cr4zyR0d - 30.03.2011

It doesn't work...
Thanks anyway..


Re: /rcon login ****** bug, how to fix it? - Venice - 30.03.2011

remove that fully OnRconLoginAttempt


Respuesta: /rcon login ****** bug, how to fix it? - Cr4zyR0d - 31.03.2011

It doesn't work, still banning me, when I do /rcon login *****
I changed the OnRconLoginAttemp like 5 or 6 times..