Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

Let’s explore a fresh approach to managing player connections. This guide introduces a command that enables the server to send messages for friend request denials. By implementing a repetitive module, you can effectively disconnect a player in specific scenarios.

Setting up the Command

Use the command /messenger_auth player_name to generate a message in the chat, notifying the player that the friendship request has been rejected. This can be easily integrated into a Python module, allowing it to execute rapidly (up to 1000 times per second), ideally disconnecting the player in the process.

Implementation Steps

Let’s break down the necessary adjustments.

  1. Update the messenger_manager.cpp File

    Search for the following function:

     
This is the hidden content, please

Replace it with this code:

 
  • This is the hidden content, please

     

  • Modify the Command in cmd_general.cpp

    Next, locate the command:

     
This is the hidden content, please

and replace it with the following code:

 
  • This is the hidden content, please

     

  • Make Adjustments in messenger_manager.h

    Lastly, find this declaration:

     
This is the hidden content, please

and change it to:

 
  1. This is the hidden content, please

     

 

By utilizing the changes outlined above, you will create a mechanism that not only informs the players of friend request denials but also allows for player disconnections in a controlled manner. This can enhance the overall user experience and maintain server integrity.

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...