Permissions of lobby creating

Options
Hello guys I have few questions.
1st
When I use my api key for game how can I protect my server from not being used by someone else who decompile the source and get my api key.
2nd
How can I protect my server from being used for own room?Now every user can create room and I want to have only 2 of them.Is there any way to force only these 2?If no goto 3rd.
3rd
Can I delete lobbys that already exist?f yes how can I set permissions to do that only to some people?
Thank you fro your time :)

Answers

  • Mir
    Options
    1st Dont know this answer should from authors.

    2nd You can control create room not from server but from client.
    Tell player through RPC that "You can create" permission.
    Make Client who have that right can create room.

    3rd You cant delete lobby. Photonserver lobby automatically generates.