How do i make people log into the chat room?

0 favourites
  • 2 posts
From the Asset Store
Chat with smart animals using the OpenAi Chat GPT 3 API
  • I want only specific people to log into the chat room example and be allowed to do stuff.

    What part of the events would i do that in?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • First, You can only connect to a chat room if you have the right room and instance.

    IF i suppose that the chatroom is not always the same, what I would do is that I would connect your app with an ajax request to a file you update on the backend (could be a json or even a db) and when someone request to join a specific chatroom to have a flag that check if the person is authorized to do so.

    the logic for each player would look like:

    1. click a button or whatever to join a chat room

    2. ajax call to check if the person is autorize to join it

    3. send him or not into the chatroom based on the answer the ajax give you

    The logic to update the backend information would look like:

    1. Player do something specific that make him able to join the chat room

    2. flag him inside the app as authorized to join the chat room

    3. when he request it, do an ajax to grab the chat room info to connect him to it.

    whatever solution you want to use, as you understood, the all authorization procesd happens outside the chatroom and the multiplayer plugin is not involved at all.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)