[ANY] HTTP Text MOTD
v1.0.1
Description:
On startup, downloads a file via HTTP and uses it as the server's text MOTD (for those who have HTML MOTDs disabled).
Cvars:- motd_text_version - plugin version
- motd_text_auto_update - enables automatic updating (has no effect if Updater is not installed)
- motd_text_host - host to download file from (domain or IP)
- motd_text_port - port your HTTP server is running on (defaults to 80)
- motd_text_path - path to request the file from on your server (defaults to /)
- motd_text_write_file - if 1, also writes the content of the downloaded file to motd_text.txt (defaults to 1)
Plugin creates and loads cfg/sourcemod/plugin.motd_text_http.cfg.
Commands:- sm_motd_text_redownload - redownloads the file specified by the cvars, restricted to root by default
Requirements:
Requires the
Socket extension.
Installation:
Install
Socket if you don't have it already, put motd_text_http.smx into /addons/sourcemod/plugins, type "sm plugins load motd_text_http" into your console or rcon, set your cvars in cfg/sourcemod/plugin.motd_text_http.cfg, and reload the plugin ("sm plugins reload motd_text_http").
Auto Update:
Install
Updater. The plugin will be auto-updated according to your Updater settings. It'll work without Updater.
Changelog:
Download Plugin (motd_text_http.smx)
View Source (motd_text_http.sp)
Requires updater.inc, socket.inc, and mckayupdater.sp to compile.
__________________