AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [INS] Message Of The Day - Insurgency (https://forums.alliedmods.net/showthread.php?t=261719)

InsurgencyANZ 04-19-2015 08:08

[INS] Message Of The Day - Insurgency
 
2 Attachment(s)
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)

http://i.imgur.com/FIPhXBW.jpg?1


mikehawk 04-24-2015 18:54

Re: [INS] Message Of The Day - Insurgency
 
This.... is freakin' awesome

Thanks and great work!

**edit**
With this I am able to link directly a page on my site so that new users can find more info on my mod. It is a great way for server operators to get messages to clients

http://insmaps.com/images/2015-04-26_00001z.jpg

InsurgencyANZ 04-27-2015 04:54

Re: [INS] Message Of The Day - Insurgency
 
Thanks mate, so glad you enjoy it. Any positive or negative feedback is appreciated. Taking requests and ideas as well!
I hope the instructions for setting up motd.txt pointing to motd.html was clear enough.

Allower 04-27-2015 05:50

Re: [INS] Message Of The Day - Insurgency
 
So what i want say?
Yes, i want say: Great, nice and thank's for you.
Goodluck with plugin for Insurgency Community motd really usally plugin for most public Push or Strike servers, with rules and faq for new users.
Just +rep!

garybourbier 05-06-2015 20:08

Re: [INS] Message Of The Day - Insurgency
 
Thanks you for this plugins !
This is my Motd :
http://teamfff.fr/motd.html

InsurgencyANZ 05-08-2015 01:01

Re: [INS] Message Of The Day - Insurgency
 
I am glad you like it, thanks. Let me know if you have any suggestions for plugins, theaters, etc.
You can also check out some of my other work at the following links;
http://tools.insurgencyanz.com/
http://steamcommunity.com//sharedfil...&savesuccess=1

daimyo21 05-09-2015 23:32

Re: [INS] Message Of The Day - Insurgency
 
Thanks for this ANZ and great work!

Heres my motd:

http://216.131.79.171/sernix_ins_servers.html

davidmirv 05-10-2015 19:33

Re: [INS] Message Of The Day - Insurgency
 
this is cool but can we not have this motd separate from the main motd so the comments don't appear when loading?

InsurgencyANZ 05-11-2015 02:04

Re: [INS] Message Of The Day - Insurgency
 
Cheers Daimyo, been doing a lot of work for Insurgency lately, so thanks for pointing me towards JBallou as well, helped me get started!

DavidMirv, If you do not wish top include a small text motd in the loading screen and prefer to have it blank, simply add at least 5 blank lines in your motd.txt before the redirect to a motd.html or whatever you use, instead of a comment...

StonedLover 05-19-2015 18:26

Re: [INS] Message Of The Day - Insurgency
 
Does it work with the SourceMod 1.7.2 ? cause I just updated the Sourcemod and now the MOTD doesnt shown after spawn


All times are GMT -4. The time now is 21:09.

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