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.

OciXCrom 05-23-2017 15:10

Re: MOTD Commands
 
Quote:

Originally Posted by EFFx (Post 2522101)
What about set another param to check if the command is only for VIPs or something else that needs flags?

Well the only free spot will be right after the command:

PHP Code:

/command flag motd 

I don't have much free time at the moment and I don't feel like doing it. You can either do it yourself or use this for now - https://github.com/OciXCrom/CommandB...ive/master.zip

Hectik17 06-04-2017 14:27

Re: MOTD Commands
 
Works perfectly to display Webpage data awesom Manny gold tails for you.:bacon!:

brlight 01-21-2018 13:51

Re: MOTD Commands
 
Quote:

Originally Posted by Hectik17 (Post 2526119)
Works perfectly to display Webpage data awesom Manny gold tails for you.:bacon!:

Didnīt take a look at the Oxicrom plugin, can be that is better coded but we already have one here (Alliedmodders) in approved section where you could do that and more.

karimoo97 04-28-2018 10:24

Re: MOTD Commands
 
Great plugin !
keep up the good work

greetings

highcoder 07-04-2018 15:41

Re: MOTD Commands
 
Hi OciXCrom,

Thanks for made this plugin. Could you make we can add a title to the MOTD screen using the configuration file? We will be very grateful if you can :)

OciXCrom 07-05-2018 08:20

Re: MOTD Commands
 
Quote:

Originally Posted by highcoder (Post 2601034)
Hi OciXCrom,

Thanks for made this plugin. Could you make we can add a title to the MOTD screen using the configuration file? We will be very grateful if you can :)

Done. Thanks for the suggestion.

highcoder 07-09-2018 05:31

Re: MOTD Commands
 
Quote:

Originally Posted by OciXCrom (Post 2601134)
Done. Thanks for the suggestion.

Thanks for your updating.

abobeanu 05-21-2020 09:44

Re: MOTD Commands
 
It may be silly questions, but:
1. where can i change the locations of the .txt files (i don't want them to be in "\cstrike" folder?
2. Why i get -107 in MOTD when i try to access my website with /site?

OciXCrom 05-21-2020 10:04

Re: MOTD Commands
 
Quote:

Originally Posted by abobeanu (Post 2701417)
It may be silly questions, but:
1. where can i change the locations of the .txt files (i don't want them to be in "\cstrike" folder?
2. Why i get -107 in MOTD when i try to access my website with /site?

1. /command = folder/subfolder/blabla/file.txt
2. Either your site uses https which is not supported or it doesn't allow access from outdated browsers.

Ark_Procession 12-16-2020 11:59

Re: MOTD Commands
 
Hi, thanks for this plugin.
It is possible to add a transparent/black background to the motds?

Solved with

HTML Code:

<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: #000000
}
</style>
</head>
</html>

<b><font color="orange"> TEST



All times are GMT -4. The time now is 06:16.

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