[Pedido] Verificar o IP do player e autobanir aquele IP
#5

Quote:
Originally Posted by HoodScript
Посмотреть сообщение
coloque isto no OnPlayerConnect.

Код:
new ip[16];
if(!strfind(GetPlayerIp(playerid, ip, sizeof(ip)), "198.144", true))
{
      SendClientMessage(playerid, -1, "Vocк possui um ip nгo permitido neste servidor!");
      Kick(playerid); //ALTERE AQUI PELA SUA VARIAVEL DE BAN
      return 1;
}
Mano muito obrigado! Deu certo aqui
Reply


Messages In This Thread
Verificar o IP do player e autobanir aquele IP - by Bieell - 03.04.2017, 00:41
Re: Verificar o IP do player e autobanir aquele IP - by IlanZ - 03.04.2017, 01:08
Re: Verificar o IP do player e autobanir aquele IP - by Bieell - 03.04.2017, 01:10
Re: Verificar o IP do player e autobanir aquele IP - by HoodScript - 03.04.2017, 02:20
Re: Verificar o IP do player e autobanir aquele IP - by Bieell - 03.04.2017, 02:25
Re: Verificar o IP do player e autobanir aquele IP - by ClaudioF - 03.04.2017, 10:41

Forum Jump:


Users browsing this thread: 1 Guest(s)