Password on a server (MasterServer)

Hello guys. I’m trying to figure out how anyone that when he plays the game and when he clicks start server it should have server password, and when he types it it will create a server. And other players that want to connect to that server need to know the password of the server to connect.

Thanks.

The simplest way of doing it, is to query the server. Look for something along the lines of “IsServerProtected”. If true, then present the joining player to enter a password. Send that password to the server, and if it matches, send it back saying good, or bad.

The goal is to allow everyone to connect to the server… but then limit what they can do.

So you’d do things like:

If (Player.IsConnected && Player.IsVerified) DoWhatever();

This is pretty vague, as it really all depends on your setup.