[Off] Novo hacker jб identificado no SA:MP.
#10

Quote:
Originally Posted by DrTHE
Посмотреть сообщение
Basta fazer uma checagem do jogador ao desconectar e em seguida bloquear a conexгo do jogador mal intencionado.

pawn Код:
#include <a_samp>

#define max_players 100

new disconnectLimit[max_players];

public OnPlayerConnect(playerid) {
    disconnectLimit[playerid] = 0;
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    disconnectLimit[playerid]++;
    if(disconnectLimit[playerid] > 1) {
        new playerIP[16];
        GetPlayerIp(playerid, playerIP, sizeof(playerIP));
        BlockIpAddress(playerIP, 0);
    }
    return 1;
}
Esta funзгo nгo obteve sucesso, o problema continua. Fiz o teste e o resultado foi o mesmo.
Reply


Messages In This Thread
Novo hacker jб identificado no SA:MP. - by Ley - 22.06.2014, 21:03
Re: Novo hacker jб identificado no SA:MP. - by Schocc - 22.06.2014, 21:06
Re: Novo hacker jб identificado no SA:MP. - by PT - 22.06.2014, 21:09
Re: Novo hacker jб identificado no SA:MP. - by Locky_ - 22.06.2014, 21:25
Re: Novo hacker jб identificado no SA:MP. - by Ley - 22.06.2014, 21:28
Respuesta: Novo hacker jб identificado no SA:MP. - by ErickOwnZ - 22.06.2014, 21:37
Re: Novo hacker jб identificado no SA:MP. - by DrTHE - 22.06.2014, 22:02
Re: Novo hacker jб identificado no SA:MP. - by PT - 22.06.2014, 22:20
Re: Novo hacker jб identificado no SA:MP. - by DrTHE - 22.06.2014, 22:24
Re: Novo hacker jб identificado no SA:MP. - by Ley - 23.06.2014, 19:13

Forum Jump:


Users browsing this thread: 1 Guest(s)