Raised This Month: $12 Target: $400
 3% 

[ANY] HTTP Text MOTD


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Plugin ID:
3964
Plugin Version:
1.0.1
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Downloads a file over HTTP and uses it as the text MOTD
    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
     


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 05:36.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode