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

MOTD Commands


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-19-2017 , 15:42   MOTD Commands
Reply With Quote #1



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



__________________

Last edited by OciXCrom; 07-17-2018 at 10:05.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
EFFx
Veteran Member
Join Date: Feb 2016
Location: SP, Brazil
Old 05-19-2017 , 16:53   Re: MOTD Commands
Reply With Quote #2

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
__________________
EFFx is offline
Send a message via Skype™ to EFFx
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-19-2017 , 17:01   Re: MOTD Commands
Reply With Quote #3

Thanks.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
DevilBoy.eXe
Member
Join Date: Mar 2017
Location: Romania
Old 05-19-2017 , 18:38   Re: MOTD Commands
Reply With Quote #4

Good job! Now i can make admin price motd and vip price motd separated
__________________

DevilBoy.eXe is offline
Send a message via Yahoo to DevilBoy.eXe Send a message via Skype™ to DevilBoy.eXe
numbster
Member
Join Date: Dec 2016
Old 05-19-2017 , 19:14   Re: MOTD Commands
Reply With Quote #5

Excellent plugin!
numbster is offline
GoRiLliAz
Senior Member
Join Date: May 2013
Old 05-19-2017 , 20:37   Re: MOTD Commands
Reply With Quote #6

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
__________________

GoRiLliAz is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-19-2017 , 20:40   Re: MOTD Commands
Reply With Quote #7

Good idea. I'll add this tomorrow.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-21-2017 , 10:54   Re: MOTD Commands
Reply With Quote #8

Added map sections.

PHP Code:
[de_dust2]

/
dust asdsadad

[de_inferno]

/
something blablab

[#all] for all maps 
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
EFFx
Veteran Member
Join Date: Feb 2016
Location: SP, Brazil
Old 05-21-2017 , 16:07   Re: MOTD Commands
Reply With Quote #9

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

Last edited by EFFx; 05-21-2017 at 16:07.
EFFx is offline
Send a message via Skype™ to EFFx
GoRiLliAz
Senior Member
Join Date: May 2013
Old 05-22-2017 , 04:53   Re: MOTD Commands
Reply With Quote #10

Thanks i try soon, don't forget update your first post.
__________________

GoRiLliAz is offline
Reply


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 15:06.


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