View Single Post
Author Message
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 11-06-2013 , 21:09   [ANY] HTTP Text MOTD
Reply With Quote #1

[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:
  • v1.0.0 (11/6/13)
    • Initial release

Download Plugin (motd_text_http.smx)
View Source (motd_text_http.sp)


Requires updater.inc, socket.inc, and mckayupdater.sp to compile.
__________________

Last edited by Dr. McKay; 07-14-2020 at 05:02. Reason: Feedback given
Dr. McKay is offline