Raised This Month: $32 Target: $400
 8% 

[NMRiH] MOTD Opener (v1.0.0, 12/12/13)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marcus_Brown001
AlliedModders Donor
Join Date: Nov 2012
Location: Illinois, United States
Plugin ID:
3997
Plugin Version:
1.0.0
Plugin Category:
Server Management
Plugin Game:
No More Room in Hell
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Opens the default motd when a client joins the server.
    Unapprover:
    Reason for Unapproving:
    No longer needed.
    Old 12-12-2013 , 19:47   [NMRiH] MOTD Opener (v1.0.0, 12/12/13)
    Reply With Quote #1

    No More Room In Hell: MOTD Opener (v1.0.0, 12/12/13)


    Plugin Background: Before the big release of No More Room In Hell, when the game was still in beta, it still had the regular MOTD functionality. With the most recent update, they disabled the motd. To be simple, the motd still exists it is not opened when a client joins the server though. This plugin does simply that: opens the motd for a new client joining the server. If you wish to have a custom MOTD, all you have to do is create the file motd.txt and put it into the servers nmrih/ directory. The motd itself will still function as it does in other source games.

    Installation: Simply place the motd.smx into your sourcemod/plugins directory, and restart the server, change the map, or manually load it. After that, you are good to go!

    Plugin Information: This is a very simple plugin that will open the MOTD (message of the day) for every client that joins the server..
    Attached Files
    File Type: sp Get Plugin or Get Source (motd.sp - 2170 views - 673 Bytes)

    Last edited by RedSword; 03-13-2015 at 20:15. Reason: fb given
    Marcus_Brown001 is offline
    JEnglish
    Junior Member
    Join Date: Feb 2012
    Old 01-18-2014 , 13:59   Re: [NMRiH] MOTD Opener (v1.0.0, 12/12/13)
    Reply With Quote #2

    awesome..good stuff,will test this later.
    __________________
    Visit my forums Simpsons Gungame Turbo /Battlefield 3 servers
    www.NoMercyKillers.com
    JEnglish is offline
    ph
    AlliedModders Donor
    Join Date: Mar 2006
    Old 01-18-2014 , 16:12   Re: [NMRiH] MOTD Opener (v1.0.0, 12/12/13)
    Reply With Quote #3

    I couldn't get it working, l will try again.

    Plugin loaded, motd.txt located under file cstrike/cfg

    css game.
    __________________
    ph is offline
    Marcus_Brown001
    AlliedModders Donor
    Join Date: Nov 2012
    Location: Illinois, United States
    Old 01-18-2014 , 19:48   Re: [NMRiH] MOTD Opener (v1.0.0, 12/12/13)
    Reply With Quote #4

    This will not work on any game other than No More Room In Hell. I know the field Plugin Game is set to Any but that is only because there is not an option for No More Room In Hell. I do believe the MOTD inside of CS:S opens automatically when a client joins the server.
    Marcus_Brown001 is offline
    JEnglish
    Junior Member
    Join Date: Feb 2012
    Old 01-20-2014 , 02:01   Re: [NMRiH] MOTD Opener (v1.0.0, 12/12/13)
    Reply With Quote #5

    tested works great on nmrih..good stuff
    __________________
    Visit my forums Simpsons Gungame Turbo /Battlefield 3 servers
    www.NoMercyKillers.com
    JEnglish is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 01-20-2014 , 05:25   Re: [NMRiH] MOTD Opener (v1.0.0, 12/12/13)
    Reply With Quote #6

    *requires basetriggers.smx
    Leonardo is offline
    Marcus_Brown001
    AlliedModders Donor
    Join Date: Nov 2012
    Location: Illinois, United States
    Old 01-20-2014 , 09:59   Re: [NMRiH] MOTD Opener (v1.0.0, 12/12/13)
    Reply With Quote #7

    Quote:
    Originally Posted by Leonardo View Post
    *requires basetriggers.smx
    Why? O.o The only reason I can think of is the native AddCommandListener could be a part of that I guess. I'm not invested enough to go look through the source, roflmao. In any event, that is a plugin that comes default with the sourcemod install, I see no reason why you would remove it.
    Marcus_Brown001 is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 01-20-2014 , 11:04   Re: [NMRiH] MOTD Opener (v1.0.0, 12/12/13)
    Reply With Quote #8

    Quote:
    Originally Posted by Marcus_Brown001 View Post
    Why? O.o
    Disable basetriggers - and you'll lost ability to run the "motd" command. See basetriggers.sp
    PHP Code:
    // ...

    public OnPluginStart()
    {
        
    // ...
        
    RegConsoleCmd("motd"Command_Motd);
        
    // ...
    }

    // ...

    public Action:Command_Motd(clientargs)
    {
        if (
    client == 0)
        {
            
    ReplyToCommand(client"[SM] %t""Command is in-game only");
            return 
    Plugin_Handled;
        }

        if (!
    IsClientInGame(client))
            return 
    Plugin_Handled;
        
        
    ShowMOTDPanel(client"Message Of The Day""motd"MOTDPANEL_TYPE_INDEX);

        return 
    Plugin_Handled;
    }

    // ... 
    __________________

    Last edited by Leonardo; 01-20-2014 at 11:07.
    Leonardo is offline
    Marcus_Brown001
    AlliedModders Donor
    Join Date: Nov 2012
    Location: Illinois, United States
    Old 01-20-2014 , 11:23   Re: [NMRiH] MOTD Opener (v1.0.0, 12/12/13)
    Reply With Quote #9

    Thanks, Leonardo. I will add that in with the next update.
    Marcus_Brown001 is offline
    He Hate Me
    SourceMod Donor
    Join Date: Oct 2006
    Old 01-29-2014 , 00:45   Re: [NMRiH] MOTD Opener (v1.0.0, 12/12/13)
    Reply With Quote #10

    Any chance you could incorporate this into Insurgency (Stand-alone). It has a MOTD on the loading page when joining servers, and when you say 'motd' in game, but doesn't automatically come up when you have successfully joined the server.
    He Hate Me 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 23:32.


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