Results 1 to 10 of 28

Thread: Kicking bots

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    You have to wait a little bit before freeing slot or just use libcod from my repo, has an autofreeslot for bots so you can just normally kick it. Also your isBot definiton seems wrong, just use:
    PHP Code:
    isBot()
    {
        return 
    self getAddressType() == 0;
    }

    if (
    self isBot())
    {
        
    bla bla...

    sudo apt-get rekt

  2. The Following 2 Users Say Thank You to voron00 For This Useful Post:

    guiismiti (31st March 2017),kung foo man (1st April 2017)

  3. #2
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    Quote Originally Posted by voron00 View Post
    You have to wait a little bit before freeing slot or just use libcod from my repo, has an autofreeslot for bots so you can just normally kick it. Also your isBot definiton seems wrong, just use:
    PHP Code:
    isBot()
    {
        return 
    self getAddressType() == 0;
    }

    if (
    self isBot())
    {
        
    bla bla...

    1 - I tried using getAddressType() but my version of libcod is a little old so, whenever I'm not using .isbot I'm using getIP() == 0.
    .isbot works well because it is defined when the test client is added;
    2 - Are you serious??? All I had to do was to add a wait before freeing the slot??? I wasted hours last night trying to figure this out, testing and testing and testing, before writing everything in details... lol

    Thanks
    set logfile 2

Posting Permissions

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