[HELP] OnRconLoginAttempt - 3 Chances
#2

Would this work?
pawn Код:
new LoginAttempt[MAX_PLAYERS] = 0;

public OnRconLoginAttempt(ip[], password[], success)
{
    if(!success)
    {
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            LoginAttempt[i]++;
            if(LoginAttempt[i] > 2)
            {
                SendClientMessage(i, 0xF0F0FFF, "Wrong Password. Good Bye!");
                Ban(i);
            }
        }
    }
    return 1;
}
Edit: No it won't
I guess the challenge is to find the playerid.
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: 1 Guest(s)