You can pass in optional arguments when opening a level, including number of players you want to be able to join This data will be avaliable in an “Options string” in the GameMode, where you must parse the string back to your variable.
As shown in this post; Open Level Options - #13 by Atheist91
Hope this helps