[AYUDA]Sobre OnRonLoginAttempt
#1

Hola, he estado mirando por la wiki de sa-mp y he encontrado una funciona para la 0.3 bastante interesante, antes de aсadirla queria preguntarles una duda

Aqui la original de samp wiki (en espaсol)

Код:
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, "Contraseсa Incorrecta. Has sido baneado"); //Manda mensaje
        Ban(i); //Jugador baneado
      }
    }
  }
  return 1;
}
Me parece algo excesivo que si pones mal la contraseсa te banee, asi que quiero preguntarles, si es posible, hacer que banee a la persona al segundo intento de poner mal la contraseсa.

Resumiendo, si la funcion de arriba me pueden explicar como hacerla para que al segundo error banee
Reply


Messages In This Thread
[AYUDA]Sobre OnRonLoginAttempt - by SuperMarioRol - 23.01.2010, 15:14
Re: [AYUDA]Sobre OnRonLoginAttempt - by CristianTdj - 23.01.2010, 16:20
Re: [AYUDA]Sobre OnRonLoginAttempt - by TheChaoz - 23.01.2010, 18:24
Re: [AYUDA]Sobre OnRonLoginAttempt - by SuperMarioRol - 23.01.2010, 18:57
Re: [AYUDA]Sobre OnRonLoginAttempt - by xenowort - 27.01.2010, 14:27
Re: [AYUDA]Sobre OnRonLoginAttempt - by SuperMarioRol - 28.01.2010, 11:00
Re: [AYUDA]Sobre OnRonLoginAttempt - by xenowort - 28.01.2010, 12:30
Re: [AYUDA]Sobre OnRonLoginAttempt - by TheChaoz - 28.01.2010, 18:06
Re: [AYUDA]Sobre OnRonLoginAttempt - by xenowort - 28.01.2010, 21:50
Re: [AYUDA]Sobre OnRonLoginAttempt - by SuperMarioRol - 29.01.2010, 21:26

Forum Jump:


Users browsing this thread: 2 Guest(s)