Chat Welcome Message 1.0
Description
An extremely basic, multi-language, MoreColors welcome message with a cvar toggle to display an alternative message. This is essentially the same as
Simple Welcome Message by Zuko, without the panel and hint message types; but the cvar that lets you display an alternative (warmode) message to connecting players is handy for several purposes. I made it so that players who join my HL2DM servers can be welcomed as normal during pub, but during a private match sm_cwm_warmode is set to 1, and the alternative message informs them not to join the game unless invited to do so (a temporary half-fix until I find/create a plugin to *stop* them from joining)
There's not much more to say. If it would be handy to have a choice of 2 different welcome messages, enjoy. Only tested in HL2DM but should work in anything.
Cvars
sm_cwm_messagelines --- How many lines of the welcome message to send (min: 1, max: 8, default: 3, set to 0 to disable plugin) (some mods may not support 8 lines)
sm_cwm_delay --- Delay in seconds after player connect before displaying the welcome message (min: 0, default: 3)
sm_cwm_warmode --- Whether or not to show the alternative (warmode) welcome message (min: 0, max: 1, default: 0)
Installation/configuration
Copy chatwelcomemessage.smx to addons/sourcemod/plugins
Copy chatwelcomemessage.phrases.txt to addons/sourcemod/translations and edit to your liking (see
here for colours)
After loading the plugin, edit cfg/sourcemod/plugin.chatwelcomemessage.cfg to your liking
(Optional) Add the plugin and 'sm_cwm_warmode 1' to sm_warmode_on.cfg, or toggle/untoggle the alternative message in whatever way suits your needs.