How Can I Add Moderator System In My Game?

Options
Hello everyone,

How can i give authoritive some players like, if i'm developer or moderator of my game, i need to have some special functionalities like i can kick someone or i can change map easily ?

Comments

  • OneManArmy
    OneManArmy ✭✭✭
    Options
    Hi, via authentication... when player logs in, you can specify if he is moderator, or simple player.
  • JohnTube
    JohnTube ✭✭✭✭✭
    edited July 2019
    Options
    Hi @3dasd,

    In general, you need authoritative logic for this.
    You could achieve it with a custom Photon Server plugin.

    Otherwise, you could rely on the MasterClient or another client to be a morderator.
    The way you identify or assign one is up to you.
    In PUN there is not real "kick" but a fake disconnect request event sent from MasterClient to others.
    Changing maps or scenes or whatever can be done from any client.
  • 3dasd
    Options
    Thanks for your answers :)