Doesn't ban me.
#1

Well i got a rcon pass, ok?

Well my rcon is long asf..well i did /rcon login 2 (Fake pass)

To see if dialog ban works it does but if i reconnect i am not banned BUT still in samp.ban?

Lol...Anyway to fix it?

EDIT: if i do /rcon login 2421412421 (fake pass) it doesn't show dialog when i do /rcon pass 2 it shows..lol
Reply
#2

Bump
Reply
#3

a fast example from sa-mp wiki:

pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!success) //If the password was incorrect
    {
        printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
        new pip[16];
        for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
        {
            GetPlayerIp(i, pip, sizeof(pip));
            if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
            {
                SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message
                Ban(i); //They are now banned.
            }
        }
    }
    return 1;
}
Explanation:-

this code gets the ip of the person that typed the failed password and it searches if there are other players that have the same ip and ban them all together.

any feedback would be appreciated!
Reply
#4

-remove-
Reply
#5

Ah nevermind it does ban me but 1 prob

If i type /rcon login 2 it shows me the dialog banned if i do lots of numbers it doesn't like /rcon login 3412421
Reply
#6

Bump.

Btw am i allowed to bump after a day?
Reply
#7

I think that you are allowed to bump after 24 hours; Anyway, about your problem I don't know I have never faced something like that as I remember I was going into servers (ages ago) and start guessing the rcon before I start to code and it was banning me after several attempts or something!.
Reply
#8

oh okay
Reply
#9

Bump.

Could someone help? it bans me but now it just doesn't show the dialog ban box only if i do /rcon login 23421321

only /rcon login 2 :\ help.
Reply
#10

Don't use RCON .
pawn Код:
new AdminLevel[MAX_PLAYERS];
use adminlevel or ... and in your cmds or ...
pawn Код:
if(AdminLevel[playerid] == 1)//vip
save and load in login and register ...
this will be better.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)