SA-MP Forums Archive
Needing script for IP exceptions over a Rangeban - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Needing script for IP exceptions over a Rangeban (/showthread.php?tid=145151)



Needing script for IP exceptions over a Rangeban - gviperc - 01.05.2010

Hello,
Are there any scripts that can create an IP exception over a Rangeban, allowing a specific IP that was effected by the rangeban to continue playing the server?




Re: Needing script for IP exceptions over a Rangeban - Joe Staff - 01.05.2010

pawn Code:
public OnPlayerConnect(playerid)
{
  new ip[16];
  GetPlayerIp(playerid,ip,16);
  if(!strcmp(ip,"192.196.",false,8))
  {
    if(strcmp(ip[8],"0.100",false,5))
    if(strcmp(ip[8],"0.101",false,5))
    if(strcmp(ip[8],"0.102",false,5))
    Kick(playerid);
  }
}
Atleast I think so anyway.