28.12.2010, 14:16
Would this work?
Edit: No it won't
I guess the challenge is to find the playerid.
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;
}
I guess the challenge is to find the playerid.