This plugin relays messages prefixed with + to other servers.
Usage:
say +
<message>
relay a message to other servers.
Requirements:
The
socket extension 2.3.0 or later
Installation:
1. Add the following cvars to your server.cfg:
sm_mr_localhost "
<local ip>:
<local port>"
The local IP should be your gameserver's IP whose server.cfg you are currently editing. The local port can be any unused port above 1024,
but NOT the gameserver's port (usually 27015).
Example: sm_mr_localhost "1.2.3.4:48476".
sm_mr_remotehost "
<remote ip>:
<remote port>"
The remote ip has to be the gameserver's IP you want to relay the messages to, the port has to be the one specified in the other gameserver's server.cfg by sm_mr_localhost.
Example: sm_mr_remotehost "4.5.6.7:48476".
sm_mr_password "
<password>"
The password prevents 3rd party servers from relaying messages to your server, make sure it is equal for all your gameservers participating in your relay network.
Example: sm_mr_password "my secret password".
2. Copy the compiled plugin (msgrelay.smx) to your sourcemod/plugins directory
3. Execute your server.cfg (exec server.cfg) and change the map
Changelog
Version 1.0.1
- support and strip quotes from quoted messages
Version 1.0.0Future- support for more than 2 servers