How to stop player to join in my running server.
Options
I am working a racing multiplayer game. There are four players to participate this race. The race will be started when four players will join. Suppose, race is running, then a player disconnects or leave from the server. After the some time another player joined this race, that race is already running. I don't want this. When race will be starting I want to stop player to join running server.
OR
How to use this 'RoomOptions.IsOpen=false' line in running server.
OR
How to use this 'RoomOptions.IsOpen=false' line in running server.
0
Best Answer
-
Yes. Its working. Many many thanks @OneManArmy.0
Answers
-
when the players hits create the room put RoomOptions.IsOpen=false in that function0
-
Or you can lock when you are in room:
PhotonNetwork.CurrentRoom.IsOpen = false;
2 -
Yes. Its working. Many many thanks @OneManArmy.0