AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   MOTD Commands (https://forums.alliedmods.net/showthread.php?t=297627)

OciXCrom 05-19-2017 14:42

MOTD Commands
 

Description
  • With this plugin you can easily add chat commands which will display MOTD windows where you can add the server rules, server information, open a website, etc.

Configuring the plugin
  • Each command is added on a new line in the file configs/MotdCommands.ini following one of these formats:
    • <chat command> [MOTD title] = <file.txt>
    • <chat command> [MOTD title] = <HTML code>
    • <chat command> [MOTD title] = <http://your-link-here.com>
  • The default path for the .txt files is the cstrike folder, but you can use any other.
  • The maximum MOTD size is 1536 characters if not using a webpage.
  • You can make specific commands active on specific maps only. Add a section with [mapname] or [map prefix_*].
  • Examples:

    PHP Code:

    /rules rules.txt
    /google http://google.com
    /mymotd My MOTD Title = <b><font color="red">My</font> <font color="green">Cool</font> <font color="blue">MOTD</font></b>

    [
    de_dust2]
    /
    dust2 my dust2 rules

    [cs_*]
    /
    cs my cs_ maps rules

    [#all]
    /asd My Cool MOTD this will work on all maps 


Additional information and download link

https://raw.githubusercontent.com/Oc...using_this.png
https://raw.githubusercontent.com/Oc...plugin_lab.png
https://raw.githubusercontent.com/Oc...ad_default.png

EFFx 05-19-2017 15:53

Re: MOTD Commands
 
I like it. Will be good for my Furien Mod. Instead of adding cvars for put the url/.txt file, i'll add your plugin. Gj

OciXCrom 05-19-2017 16:01

Re: MOTD Commands
 
Thanks.

DevilBoy.eXe 05-19-2017 17:38

Re: MOTD Commands
 
Good job! Now i can make admin price motd and vip price motd separated :D

numbster 05-19-2017 18:14

Re: MOTD Commands
 
Excellent plugin!

GoRiLliAz 05-19-2017 19:37

Re: MOTD Commands
 
Hi
It is possible to add /rules by maps

Example: map de_dust2 if the player does / rules this displays rules-de_dust2.txt or web page

OciXCrom 05-19-2017 19:40

Re: MOTD Commands
 
Good idea. I'll add this tomorrow.

OciXCrom 05-21-2017 09:54

Re: MOTD Commands
 
Added map sections.

PHP Code:

[de_dust2]

/
dust asdsadad

[de_inferno]

/
something blablab

[#all] for all maps 


EFFx 05-21-2017 15:07

Re: MOTD Commands
 
What about set another param to check if the command is only for VIPs or something else that needs flags?

GoRiLliAz 05-22-2017 03:53

Re: MOTD Commands
 
Thanks i try soon, don't forget update your first post.


All times are GMT -4. The time now is 01:15.

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