Results 1 to 10 of 11

Thread: ip ban script

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private First Class
    Join Date
    Nov 2015
    Posts
    128
    Thanks
    37
    Thanked 14 Times in 14 Posts

    ip ban script

    hi , i need a ban script.. does it work ? my hosting service dont give me iptables right..so i need really ip ban.. tired to kick.. if it does work how can i put my on mod ?




    PHP Code:
    ipBan()

    players_ip self getIP()
    {
        
    ip = [];
        
    ip[0] = "127.0.0.1"//example
        
    ip[1] = ""//name
        
    ip[2] = ""//name
        
    ip[3] = ""//name
        
    ip[4] = ""//name
        
    for( 0ip.sizei++ )
        {
            if(
    players_ip == ip[i])
            {
                
    userid self getEntityNumber();
                
    kick(userid);
            }
            else
                return;
        }

    Last edited by feanor; 17th February 2016 at 06:55.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •