Range Ban?
#6

** this is not made by me. I found it somewhere on the forums :P
pawn Код:
stock RangeBan(playerid)
{
  if(!IsPlayerConnected(playerid)) return 0;
  new total[16],ip[16], string[24];
  GetPlayerIp(playerid, ip, sizeof(ip));
  new cnt;
  for(new i=0;i<strlen(ip);i++)
  {
    if(ip[i] == '.') cnt++;
    if(cnt == 2)
    {
      i++;
      strdel(ip, i, strlen(ip));
      format(total,sizeof(total),"%s*.*",ip);
    }
  }
  format(string, sizeof(string),"banip %s",total);
  SendRconCommand(string);
  return 1;
}
Reply


Messages In This Thread
Range Ban? - by Face9000 - 28.09.2010, 10:08
Re: Range Ban? - by <Weponz> - 28.09.2010, 10:45
Re: Range Ban? - by sekol - 28.09.2010, 10:46
Re: Range Ban? - by iFriSki - 28.09.2010, 10:51
Re: Range Ban? - by Face9000 - 28.09.2010, 10:59
Re: Range Ban? - by Seven. - 28.09.2010, 12:29
Re: Range Ban? - by <Weponz> - 28.09.2010, 12:32
Re: Range Ban? - by Infinity - 28.09.2010, 12:46
Re: Range Ban? - by <Weponz> - 28.09.2010, 12:57

Forum Jump:


Users browsing this thread: 2 Guest(s)