- Home /
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.
Answer by Cynikal · Sep 08, 2016 at 06:43 PM
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.
Your answer
Follow this Question
Related Questions
Port forwarding 1 Answer
Multiple Cars not working 1 Answer
Creating servers properly? 0 Answers
Distribute terrain in zones 3 Answers
Port not opening? 3 Answers