[Ajuda] Anti Rcon-Hack
#16

mesmo assim, nao irб funcionar.
Desse jeito so funciona com o ID 0 (pois o break vai parar o loop)

o correto seria pegar o IP e comparar com os players online do mesmo IP.


Completando o codigo seus....
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    new pIP[20],
        pName[MAX_PLAYER_NAME];

    if(success)
    {
        for(new i; i < GetMaxPlayers(); i++)
        {
            GetPlayerIp(i, pIP, sizeof(pIP));
            if(strcmp(pIP, ip, true) != 0) continue;

            GetPlayerName(i, pName, sizeof(pName));
            if(!strcmp(pName, "NICK", true) || !strcmp(pName, "NICK", true)) // vc pode definir mais ou menos nicks
            {
                SendClientMessage(i, -1, "Vocк estб autorizado a logar na RCON.");
            }
            else
            {
                SendClientMessage(i, -1, "Vocк nгo estб autorizado a logar na RCON.");
                Kick(i);
            }
            break;
        }
    }
    return 1;
}
Nгo cheguei a testar, mas й assim que eu estava falando .__.
Reply


Messages In This Thread
Anti Rcon-Hack - by Samantha_Holler - 19.07.2012, 18:27
Re: [AJUDA] Anti RCON-HACK - by [JD]BlackFire - 19.07.2012, 18:31
Re: [AJUDA] Anti RCON-HACK - by WaGnerLiima - 19.07.2012, 18:32
Re : Anti Rcon-Hack - by ipsBruno - 19.07.2012, 19:46
Re: Anti Rcon-Hack - by DouglasRodrigues - 19.07.2012, 19:54
Re: Anti Rcon-Hack - by Victor' - 19.07.2012, 23:32
Re: Anti Rcon-Hack - by [JD]BlackFire - 20.07.2012, 00:54
Re: Anti Rcon-Hack - by Don_Speed - 20.07.2012, 01:09
Re: Anti Rcon-Hack - by Gii - 20.07.2012, 01:45
Re: Anti Rcon-Hack - by Kmatsu - 20.07.2012, 02:01
Re: Anti Rcon-Hack - by Gii - 20.07.2012, 02:12
Re: Anti Rcon-Hack - by Kmatsu - 20.07.2012, 02:13
Re: Anti Rcon-Hack - by .FuneraL. - 20.07.2012, 02:14
Re: Anti Rcon-Hack - by Gii - 20.07.2012, 02:16
Re: Anti Rcon-Hack - by .FuneraL. - 20.07.2012, 02:19
Re: Anti Rcon-Hack - by Kmatsu - 20.07.2012, 02:33
Re: Anti Rcon-Hack - by Samantha_Holler - 20.07.2012, 02:35
Re: Anti Rcon-Hack - by Gii - 20.07.2012, 02:42

Forum Jump:


Users browsing this thread: 1 Guest(s)