public OnRconLoginAttempt help
#1

im using it but i want it to have 3 attemts before it kicks

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!"); //Send a message
                Kick(i);
            }
    }
  }
  return 1;
}
Reply


Messages In This Thread
public OnRconLoginAttempt help - by johnathon956 - 07.04.2010, 14:41
Re: public OnRconLoginAttempt help - by ZeRo_HUN - 07.04.2010, 15:40
Re: public OnRconLoginAttempt help - by johnathon956 - 07.04.2010, 15:51
Re: public OnRconLoginAttempt help - by ZeRo_HUN - 07.04.2010, 16:58
Re: public OnRconLoginAttempt help - by johnathon956 - 07.04.2010, 18:00
Re: public OnRconLoginAttempt help - by Hiddos - 07.04.2010, 20:03

Forum Jump:


Users browsing this thread: 1 Guest(s)