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

M3Motd - MOTD / Rules Display


Post New Thread Reply   
 
Thread Tools Display Modes
Author
KaOs
Senior Member
Join Date: Apr 2004
Plugin ID:
279
Plugin Version:
0.2.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Displays server rules when a player says 'motd' or 'rules', or admin uses sm_motd command.
    Old 02-08-2008 , 21:49   M3Motd - MOTD / Rules Display
    Reply With Quote #1

    Hello everyone!
    I've played in a few servers with an 'motd' say command, but none were SM so I decided to make this. I'm taking feature requests, comments, anything. Let me know. The reason why I use a URL is because I couldn't figure out an *efficient* way to make it display the server's MOTD. Also, it's only CONFIRMED working with CS:S.. if anyone tests on other mods, please let me know!

    Description:
    Displays the set URL to a user when they say 'motd', 'rules' or an admin forces them to view with 'sm_motd' command.

    CVars:
    sm_motd_url "http://www.google.com/" - Obviously don't leave this at google. Set this to the URL of your server rules.

    Commands:
    sm_motd <user id# | name> - Forces display of rules to a user, also in chat writes '<admin> thinks that <name> needs to read the rules!'
    say motd - Displays rules to the user
    say rules - Copy of above comand

    Installation:
    1) Only plugin file is required. Click 'get plugin' and save it to your 'addons/sourcemod/plugins' folder.
    2) Add a line to 'server.cfg' like this for example:
    Code:
    // SM MOTD Rules URL
    sm_motd_url "http://www.m3studiosinc.com/work/gameserver/motd.php"

    ChangeLog:

    Version 0.2.1:
    -Name change
    -Small bugfix

    Version 0.2.0:
    -First release.






    Attached Files
    File Type: sp Get Plugin or Get Source (m3motd.sp - 13344 views - 2.5 KB)
    __________________

    Last edited by KaOs; 02-08-2008 at 22:04.
    KaOs is offline
    Send a message via AIM to KaOs Send a message via MSN to KaOs
    Rebell
    Veteran Member
    Join Date: Nov 2004
    Location: GERMANY
    Old 02-09-2008 , 10:54   Re: M3Motd - MOTD / Rules Display
    Reply With Quote #2

    Like it !

    cya
    __________________
    Rebell is offline
    FrostbyteX
    Senior Member
    Join Date: Dec 2007
    Old 02-23-2008 , 19:30   Re: M3Motd - MOTD / Rules Display
    Reply With Quote #3

    It would be nice if a client could type "motd" without the server announcing that "client thinks that client should read the rules!".
    FrostbyteX is offline
    oliverk23
    Junior Member
    Join Date: Jan 2008
    Old 03-02-2008 , 16:12   Re: M3Motd - MOTD / Rules Display
    Reply With Quote #4

    can you put in a variable , which set that se rules are displayed @ join or not ?
    oliverk23 is offline
    Send a message via ICQ to oliverk23
    Lt Llama
    Senior Member
    Join Date: Aug 2004
    Old 03-03-2008 , 10:49   Re: M3Motd - MOTD / Rules Display
    Reply With Quote #5

    I have a suggestion to build this plugin out a bit.
    Instead of restricting it to show only a rules motd why not have it show any kind of information you want? And the server owner decides what should be shown.

    I made a plugin for amxmodx where you say /help in say.
    A menu pops up with a list of help sections. In the menu you can select:
    1. Admins
    2. Commands
    3. Rules
    4. General info
    bla bla

    Anything ...

    I hard coded the help files and they are just text files in the game folder.

    But it would be nice with an ini file in the form:

    Rules, rules.txt, http://www.mysite.nu/rules.php
    Admins, admins.txt, http://www.mysite.nu/admins.php
    Rules, rules.txt, http://www.mysite.nu/rules.php
    General info, geninfo.txt, http://www.mysite.nu/geninfo.php

    If the ini file misses a link to a php page it shows the txt file in the motd.

    And an admin could say sm_help <nickname> <number of help file>

    That would be very very useful I think.

    But if youre not interested I might hack up something myself based on your plugin, if thats ok .
    __________________
    A dodo: Used to describe someone without common sense and who always has the pathetic confused look on their face when a question is asked.
    Lt Llama is offline
    StevenT
    Member
    Join Date: Dec 2007
    Old 03-28-2008 , 05:02   Re: M3Motd - MOTD / Rules Display
    Reply With Quote #6

    +1 karma excellent plugin
    StevenT is offline
    recon0
    Veteran Member
    Join Date: Sep 2007
    Location: US
    Old 06-23-2008 , 07:29   Re: M3Motd - MOTD / Rules Display
    Reply With Quote #7

    Working on EmpiresMod.

    I think you're missing a return Plugin_Handled statement from your console command sm_motd, as I get a message back that says no such command, but it shows the chat message and shows the client the MOTD.
    __________________
    recon0 is offline
    disconnect81
    Senior Member
    Join Date: Jul 2006
    Location: Ottawa, ON, Canada
    Old 07-10-2008 , 16:59   Re: M3Motd - MOTD / Rules Display
    Reply With Quote #8

    You can accomplish this same thing if you have the webshortcuts plugin installed. I just set the triggers MOTD and RULES to open my motd page.

    Just a heads up to those who may have webshortcuts AND this installed.
    disconnect81 is offline
    willy1234x1
    Senior Member
    Join Date: Jun 2008
    Old 07-10-2008 , 21:40   Re: M3Motd - MOTD / Rules Display
    Reply With Quote #9

    Quote:
    Originally Posted by Lt Llama View Post
    I have a suggestion to build this plugin out a bit.
    Instead of restricting it to show only a rules motd why not have it show any kind of information you want? And the server owner decides what should be shown.

    I made a plugin for amxmodx where you say /help in say.
    A menu pops up with a list of help sections. In the menu you can select:
    1. Admins
    2. Commands
    3. Rules
    4. General info
    bla bla

    Anything ...

    I hard coded the help files and they are just text files in the game folder.

    But it would be nice with an ini file in the form:

    Rules, rules.txt, http://www.mysite.nu/rules.php
    Admins, admins.txt, http://www.mysite.nu/admins.php
    Rules, rules.txt, http://www.mysite.nu/rules.php
    General info, geninfo.txt, http://www.mysite.nu/geninfo.php

    If the ini file misses a link to a php page it shows the txt file in the motd.

    And an admin could say sm_help <nickname> <number of help file>

    That would be very very useful I think.

    But if youre not interested I might hack up something myself based on your plugin, if thats ok .
    That's covered by Chundo's Helpmenu plugin
    willy1234x1 is offline
    DIVINE INTERVENTION
    New Member
    Join Date: Nov 2007
    Location: Littleton Co.
    Old 07-15-2008 , 13:37   Re: M3Motd - MOTD / Rules Display
    Reply With Quote #10

    Does this work with the dod:s Orange box?
    It starts out Okay but the Motd only stays up for a second then goes to a webpage error.
    DIVINE INTERVENTION is offline
    Reply



    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 20:22.


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