Jump to content
  • 0

Auto lock server script?


Flosstradamus

Question

16 answers to this question

Recommended Posts

  • 0

BEC - Battleye Extended Controls, in your config.cfg

 

We lock at server restart when 20 or so join and are in the lobby, when they progress into game the server auto unlocks and lets more in etc etc. If theres problems and 20 players end back in the lobby/cant spawn it relocks etc etc.

 

# Type 1
FloodControl = 20
# Locks the server when there is 20 or more players in the lobby.

 

Adjust the number to suit

Link to comment
Share on other sites

  • 0

Is floodcontrol actually working for you MGT?  Are you starting BEC up slightly before DayZ/Arma2?

 

I've tried starting it up slightly before/after and still have yet to see it lock.  The option isn't documented in the latest versions config but I see when it was added and such.

Link to comment
Share on other sites

  • 0

Is floodcontrol actually working for you MGT?  Are you starting BEC up slightly before DayZ/Arma2?

 

I've tried starting it up slightly before/after and still have yet to see it lock.  The option isn't documented in the latest versions config but I see when it was added and such.

 

We run BEC as a Windows service

Link to comment
Share on other sites

  • 0

Download BEC.zip.  In the plugins folder you will see ConnectionLimiter.  You will need to customize CL_Settings.py.

 

Here is mine I used for testing purposes only.  1 connection in 10 seconds will lock the server for 60 seconds.  

 

After finally finding out how to do this I can't find any benefit from it at least for my server.  I'd have 100x players asking me daily why the server is locked too

 

 

# Set your config name for your Bec(s) here. 
SERVER1 = "Config.cfg"
 
# This is the list that contains all servers you want the plugin to run on..
SERVERS = [sERVER1] 
 
def Servers(config_name):
 
# Settings for server1
if config_name == SERVER1:
 
# set sample time in sec.
samptime = 10
 
# set how long the server will be locked..
locktime = 60
 
# set limit of connections.
consec = 1
 
return [samptime, locktime, consec]
 
else:
return False
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...