[HELP] OnRconLoginAttempt - 3 Chances
#4

This works, yeah I did test it:
pawn Код:
new LoginAttempt[MAX_PLAYERS] = 0;

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(pip, ip) == 0)
            {
                LoginAttempt[i]++;
                if(LoginAttempt[i] > 2)
                {
                    SendClientMessage(i, COLOR_RED, "Wrong Password. Good Bye!");
                    Ban(i);
                }
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
[HELP] OnRconLoginAttempt - 3 Chances - by Larsey123IsMe - 28.12.2010, 14:13
Re: [HELP] OnRconLoginAttempt - 3 Chances - by _rAped - 28.12.2010, 14:16
Re: [HELP] OnRconLoginAttempt - 3 Chances - by MadeMan - 28.12.2010, 14:22
Re: [HELP] OnRconLoginAttempt - 3 Chances - by _rAped - 28.12.2010, 14:34
Re: [HELP] OnRconLoginAttempt - 3 Chances - by Jeffry - 28.12.2010, 15:11
Re: [HELP] OnRconLoginAttempt - 3 Chances - by _rAped - 28.12.2010, 15:12
Re: [HELP] OnRconLoginAttempt - 3 Chances - by Jeffry - 28.12.2010, 15:59
Re: [HELP] OnRconLoginAttempt - 3 Chances - by _rAped - 28.12.2010, 16:05
Re: [HELP] OnRconLoginAttempt - 3 Chances - by Jochemd - 28.12.2010, 16:26

Forum Jump:


Users browsing this thread: 2 Guest(s)