Raised This Month: $164 Target: $400
 41% 

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 , 14: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> = <file.txt>
    • <chat command> = <http://your-link-here.com>
    • <chat command> = <HTML code>
  • 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 = <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 this will work on all maps 

Additional information and download link


__________________
404: Not Found

Last edited by OciXCrom; 05-23-2017 at 15:11.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
EFFx
Veteran Member
Join Date: Feb 2016
Location: Brazil, SP
Old 05-19-2017 , 15: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 , 16:01   Re: MOTD Commands
Reply With Quote #3

Thanks.
__________________
404: Not Found
OciXCrom is offline
Send a message via Skype™ to OciXCrom
DevilBoy.eXe
Junior Member
Join Date: Mar 2017
Location: Romania
Old 05-19-2017 , 17: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
Junior Member
Join Date: Dec 2016
Old 05-19-2017 , 18:14   Re: MOTD Commands
Reply With Quote #5

Excellent plugin!
numbster is offline
GoRiLliAz
Senior Member
Join Date: May 2013
Old 05-19-2017 , 19: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 , 19:40   Re: MOTD Commands
Reply With Quote #7

Good idea. I'll add this tomorrow.
__________________
404: Not Found
OciXCrom is offline
Send a message via Skype™ to OciXCrom
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-21-2017 , 09: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 
__________________
404: Not Found
OciXCrom is offline
Send a message via Skype™ to OciXCrom
EFFx
Veteran Member
Join Date: Feb 2016
Location: Brazil, SP
Old 05-21-2017 , 15: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 15:07.
EFFx is offline
Send a message via Skype™ to EFFx
GoRiLliAz
Senior Member
Join Date: May 2013
Old 05-22-2017 , 03: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 12:34.


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