Message Of The Day [MOTD] for Insurgency (2014)
CREDITS
woklex - Discovered their connmotd.smx plugin after making version 1.0 and due to similarities, added Enable/Disable Cvar to mine to differentiate the two for version 2.0.
DESCRIPTION
Displays the server MOTD window upon joining the server (as well as the default 5 lines of text in the loadscreen).
By default, the only MOTD you get, if set, is a few lines of text with no formatting, displayed in the bottom right of the load screen.
With this plugin, that same MOTD is displayed, but you can also have a large MOTD display as a window, after they spawn in and choose their team, class, etc.
You can also redirect the motd.txt to motd.html and upload that to a web server, to have a fully formatted MOTD, including images, links, videos, etc.
CVAR LIST
Quote:
sm_motd_enabled 1 // (1) Enables, (0) Disables
|
CHANGELOG
Quote:
Version 1.0 (16-04-15)
Initial Release
Version 2.0 (19-04-15)
Added g_CvarEnabled to turn on and off
|
INSTALLATION
Place "motd.smx" in "addons/sourcemod/plugins/" and make sure you have set "motdfile motd.txt" and then restart the server. Presto!
("plugin.motd.cfg" is automatically generated in "insurgency/cfg/sourcemod/" with the Cvar, if you want to disable it, change 1 to 0.)
If you wish to redirect to a HTML file, for extra formatting, then the following steps are important, otherwise feel free to skip.
Add "<!-- XXX -->" at the top of the txt file and replace XXX with text to display in the load screen.
This allows you to have a text MOTD during loadscreen and full html window on spawn.
Otherwise, while in the loading screen, people see "<!DOCTYPE html>", etc.
Now create and upload your motd.html to a web server and point the link in motd.txt to it.
View the EXAMPLE section below for how I did mine.
EXAMPLE
The following is how I set up my MOTD;
In my "server.cfg" I placed "motdfile motd.txt".
My "motd.txt" has been attached, to see my comments that display in the loadscreen and how I redirect to "motd.html".
My "motd.html" can be found here ->
MOTD (View Source for a better understanding/ideas)