Hi, i am developing a multiplayer car racing game, i want that when the server will start a timer of one minute will be set and client will connect to the server in that minute, after then server will stop listening clients. How this will be done? what is the function to stop server from listening incomming connection???
When the time is up, set the Max Clients to however many are connected at that time.
There is also this
http://docs.unity3d.com/ScriptReference/Networking.NetworkServer-dontListen.html
but I dont know how aggressive it is.
If you use NetworkManager you can use the maxSize to limit number of players.
http://docs.unity3d.com/ScriptReference/Networking.NetworkManager-matchSize.html