Description :
As the title say, this plugin send the message from your servers to other one !
This plugin also supprot
MORECOLORS !
Original request :
https://forums.alliedmods.net/showthread.php?t=269627
For the developers who don't know how to use sockets, or a just intersted on how I did that, I wrote this :
https://forums.alliedmods.net/showthread.php?p=2336943
Screenshots & Videos :
If someone wanna do a video / pictures about this plugin, you can send me the link and I will post it here.
Cvar & installation
Cvar : READ IT PLEASE ! Carefully.
"sm_csc_is_master_server" "0"
Is this server the master chat server ? 1 = yes | 0 = no
Note : ONLY 1 SERVER SHOULD HAVE THIS VALUE TO 1, others should have 0. It doesn't matter wich server have the value 1.
"sm_csc_master_chat_server_ip" "123.467.89.10"
IP of the master chat server, the server who have 'sm_csc_is_master_server' to 1.
"sm_csc_connection_port" "2001"
On wich port should the plugin read & send the messages ? This value should be the same on ALL servers. Also, the port need to be forwarded. CAN NOT ME THE SERVER PORT (usually, 27015)
"sm_csc_message_key" "[PASSWORD]" //Exemple of good password : 786%*ç%)=)&/, you don't need to remember it.
Wich key should the plugin use to send messages, KEEP PRIVATE !!!
"sm_csc_reconnect_time" "45.00"
After how much time a connection should try to reconnect disconnected sockets ?
"sm_csc_server_tag" "[REMOTE MSG]" //Support more colors ! Use {green} or what you prefer !
Tag before messages coming from outside of the actual server
"sm_csc_mark_to_send" "+"
Tag before chat messages to send to all other servers
"sm_csc_admin_flag" "NONE"
Putting a flag as value will restrict the usage to all players who hvae this flag, putting NONE don't restrict the acces.
"sm_csc_message_format" "{red}[SERVER TAG] {purple}->{default} {pink}[SENDER NAME]{default} {purple}said{default} [MESSAGE]"
Format of the message. Use the tag [SERVER TAG] to represent the value of 'CVAR_ServerTag', [SENDER NAME] for the player name who send the message, and [MESSAGE] to represent the message of teh player.
Commands :
sm_msg [MESSAGE] -
Send a message to all servers produce smae effect as +[message] but, +[message] doesn't work on some servers 'cause of simple chat processor.
Exemple : sm_msg Hello everybody
!
Admin command :
sm_cscgag [TARGET] - Block / Unblock a player from sending messages to other servers.
Installation :
1) Put CrossServerChat.smx in your plugins folder.
2) Download and install
the socket extension. Update if you already have it installed.
3) Read and configure the config file 'CrossServerChat.cfg' and put it in your cfg/sourcemod folder !
4) Restart all your servers.
For those who wanna compille the plugin manually, you will need :
- Socket extension
- Multicolors
Configuration
A configuration file is created at the first start, in the cfg/sourcemod/ folder ! The same as the attached one, below.
Bugs :
When a socket fail to connect, produce strange things on reconnect. ->
FIXED !
Request & to do:
Nothing, feel free to ask.
Logs :
------
1.0 : First public release.
1.1 : Added the tag support thing.
1.2 : Added a new command, sm_cscgag. ( See admin command )
1.3 : Added a new CVAR, to restrict who can send messages, and who can't.
1.4 : Removed the start order restriciton. cleaned a bit the code.
1.5 : Even more clean up, also, fixed some strange bugs occuring rarelly.
1.6 : Added a new command.
-------
IMPORTANT NOTE:
Take a very good look at the cvar.