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

[TF2/Any?] No MOTD


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Plugin ID:
4020
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Removes the initial MOTD shown upon joining.
    Old 12-30-2013 , 11:59   [TF2/Any?] No MOTD
    Reply With Quote #1

    Given the ongoing drama over MOTDs, I figured there ought to be a way to just outright disable MOTDs, and get players right into the action.

    This plugin enables that ability (for servers) by closing the first ("on-join") MOTD as soon as its sent. Unless the player is running on a toaster, they probably won't even see the MOTD at all.

    I'm not sure if this (especially the below cvar) works outside of TF2. If someone could test for me, and maybe make it compatible if it's not, that'd be absolutely splendid

    Comes with a cvar, sm_nomotd_forceteam, to auto-assign players to a team when the MOTD is closed. It fakes the command "jointeam %TEAM%" on them if set, and shows the "team" VGUI panel to them if not. If your game already has this stuff, you're good to go.

    Not sure how this plays with HTML MOTDs, especially ones that play sound. Better safe than sorry: don't run advertisement plugins alongside this. The ad providers will hate you. Your players will hate you. Everyone will hate you. Your life will be miserable. Instead, just pick one.

    This plugin does, however, allow mid-game MOTDs of any kind, such as !motd, !bp, !radio, or whatnot. It only blocks the first one that gets sent to clients, i.e. the Message of the Day.

    Also, this plugin doesn't work when clients join via matchmaking in TF2. :c
    Attached Files
    File Type: sp Get Plugin or Get Source (nomotd.sp - 1328 views - 1.6 KB)
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)

    Last edited by MasterOfTheXP; 03-16-2014 at 02:09. Reason: Because 'closing the opening' doesn't really sound right
    MasterOfTheXP is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 12-31-2013 , 01:38   Re: [TF2/Any?] No MOTD
    Reply With Quote #2

    Youcould just block/autoclose them on player spawn (make a timer) while getclientteam == 0, since the first player spawn is when thry connect.. They will also have no tram.
    They wont ever be able to return to this team, and any motd popups in this window will rape team join vgui panels anyway.
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.
    friagram is offline
    chuj
    Member
    Join Date: Jan 2012
    Location: Kraków, Poland
    Old 01-01-2014 , 09:41   Re: [TF2/Any?] No MOTD
    Reply With Quote #3

    I don't know how it is in TF2, but in CSGO or CSS you can just delete motd.txt from server and there will be no motd clientside.
    chuj is offline
    MasterOfTheXP
    Veteran Member
    Join Date: Aug 2011
    Location: Cloudbank
    Old 01-01-2014 , 14:29   Re: [TF2/Any?] No MOTD
    Reply With Quote #4

    Hm, that seems pretty convenient...TF2 doesn't seem to have a default motd.txt at all though, just motd_default.txt and motd_text_default.txt, which only get rid of the contents of the MOTD if deleted.
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
    MasterOfTheXP is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 01-01-2014 , 19:46   Re: [TF2/Any?] No MOTD
    Reply With Quote #5

    You'd think there would be a cvar or something for it like off/text/html
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.
    friagram is offline
    MasterOfTheXP
    Veteran Member
    Join Date: Aug 2011
    Location: Cloudbank
    Old 01-02-2014 , 07:36   Re: [TF2/Any?] No MOTD
    Reply With Quote #6

    I did just come across motdfile and motdfile_text, but setting them to "" seems to just reset them, and setting them to a non-existent file also seems to have no effect.

    wtb cl_disablemotd
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
    MasterOfTheXP 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 07:16.


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