[Ajuda] Banido quando logo na RCON
#4

Bom substitua sua callback(public) por essa:

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

Agora sу traduzir..a mais oque isso irб faser?? Irб banir o player que errar a senha rcon.
Reply


Messages In This Thread
[Ajuda] Banido quando logo na RCON - by Alex_Coll - 08.11.2011, 04:09
Re: (AJUDA)Banido quando logo na RCON - by _Jizzy_ - 08.11.2011, 04:44
Re: (AJUDA)Banido quando logo na RCON - by Mteck - 08.11.2011, 05:11
Re: (AJUDA)Banido quando logo na RCON - by PlueX - 08.11.2011, 07:36
Re: (AJUDA)Banido quando logo na RCON - by [O.z]Caroline - 08.11.2011, 11:36

Forum Jump:


Users browsing this thread: 1 Guest(s)