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

[INS] Message Of The Day - Insurgency


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
InsurgencyANZ
Junior Member
Join Date: Apr 2015
Location: Melbourne, Australia
Plugin ID:
4611
Plugin Version:
2.0
Plugin Category:
All
Plugin Game:
Insurgency (2014)
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Displays the server MOTD window upon joining the server
    Old 04-19-2015 , 08:08   [INS] Message Of The Day - Insurgency
    Reply With Quote #1

    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)



    Attached Files
    File Type: sp Get Plugin or Get Source (motd.sp - 2083 views - 637 Bytes)
    File Type: txt motd.txt (726 Bytes, 1374 views)
    __________________
    [AUR] Ace
    Insurgency ANZ Founder | Aussie Rebels Co-Founder
    www.InsurgencyANZ.com | www.AussieRebels.org

    Last edited by InsurgencyANZ; 04-19-2015 at 08:39. Reason: Added more example info & added motd.txt
    InsurgencyANZ is offline
    Send a message via Skype™ to InsurgencyANZ
     



    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 10:34.


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