Ip Kick ?
#6

I have no clue if this will work, excuse me if it doesn't but I'm half asleep:

pawn Код:
public OnPlayerConnect(playerid)
{
    new pip[16], pip2[16];
  for(new i=0; i<MAX_PLAYERS; i++)
  {
if(IsPlayerConnected(i))
{
    GetPlayerIp(i, pip, sizeof(pip));
    GetPlayerIp(playerid, pip2, sizeof(pip2));
        if(!strcmp(pip2, pip, true))
        {
          Kick(i);
        }
    }
}
    return 1;
}
You'll have to fix the indentation, as I said I was half asleep when I typed that out.
Reply


Messages In This Thread
Ip Kick ? - by Nekom - 20.09.2009, 16:41
Re: Ip Kick ? - by [NYRP]Mike. - 20.09.2009, 16:43
Re: Ip Kick ? - by Nekom - 20.09.2009, 16:46
Re: Ip Kick ? - by [NYRP]Mike. - 20.09.2009, 16:47
Re: Ip Kick ? - by Nekom - 20.09.2009, 16:50
Re: Ip Kick ? - by Calgon - 20.09.2009, 16:55
Re: Ip Kick ? - by Nekom - 20.09.2009, 17:05
Re: Ip Kick ? - by Nekom - 20.09.2009, 17:44
Re: Ip Kick ? - by Nekom - 21.09.2009, 14:03

Forum Jump:


Users browsing this thread: 2 Guest(s)