Results 1 to 10 of 11

Thread: ip ban script

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by feanor View Post
    ******* script compile error *******
    bad syntax
    ************************************
    Sys_Error: Error during initialization:
    script compile error
    (see console for details)

    > [PLUGIN UNLOADED]
    Run your server with developer set to 1 and then post the error message.

    Edit: try this:
    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);
                break;
            }
        }

    Last edited by Mitch; 28th February 2016 at 08:52.

Posting Permissions

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