Results 1 to 4 of 4

Thread: Player counter

  1. #1
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts

    Player counter

    Hi again,

    I would like to not count bots as online players, so they won't use slots.
    Can anybody tell me where is the function responsible for this?

    Thanks in advance.
    set logfile 2

  2. #2
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    I think its hardcoded and cant be done. And bots will always take in slots. You cant have a 20 slots server with 10 bots and still allow 20 players

  3. #3
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    Quote Originally Posted by Ni3ls View Post
    I think its hardcoded and cant be done. And bots will always take in slots. You cant have a 20 slots server with 10 bots and still allow 20 players
    I was thinking about creating two new functions.
    One would be called on playerConnect - would increase one slot if it's not a bot
    And the other would be called on disconnect - would decrease one slot if it's not a bot

    But I would need to ask permission to the server provider to change that...
    set logfile 2

  4. #4
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by guiismiti View Post
    I was thinking about creating two new functions.
    One would be called on playerConnect - would increase one slot if it's not a bot
    And the other would be called on disconnect - would decrease one slot if it's not a bot

    But I would need to ask permission to the server provider to change that...
    Only 1 major problem with that - you cannot change the player number without restarting the server.

Tags for this Thread

Posting Permissions

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