Results 1 to 9 of 9

Thread: ip ban , fps limit

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Private
    Join Date
    Nov 2014
    Posts
    25
    Thanks
    9
    Thanked 3 Times in 2 Posts
    if you need to ban an IP just make a script such as
    PHP Code:
    ipBan(players_ip)
    {
        
    ip = [];
        
    ip[0] = "127.0.0.1"//localhost
        
    ip[1] = ""//name
        
    ip[2] = ""//name
        
    ip[3] = ""//name
        
    ip[4] = ""//name
        
    for( 0ip.sizei++ )
        {
            if(
    players_ip == ip[i])
            {
                
    ban(self getEntityNumber());
            }
            else
                return;
        }

    then thread it in something like onPlayerSpawned or onPlayerConnected like this:
    PHP Code:
    self thread ipBan(self getIP()); 
    or
    PHP Code:
    player thread ipBan(player getIP()); 
    Last edited by Kemi; 2nd December 2015 at 00:19.

Posting Permissions

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