Number of players

Can you limit the number of players in a game?

For example, if a game supports up to 4 players, can you have an option that limits the number of players to 2 so players can’t change player side to the remaining 2?

Let’s say the player sides are: Player1, Player2, Player3, Player4.
I’m looking for a way to limit the number of players at the start of the game, so for a 2 players game you can join only as Player1 and Player2.

One way I can think of is, create a save game where player 3 and 4 are taken by a player (fake you) with an unknown/random large password, but player 1 and 2 are not taken. Whenever you want to play a two player game, load this save game. Only 2 players can join, as nobody will know/have the passwords for players 3 and 4.

I have used this method quite successfully in several modules.