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

[Dystopia/ANY] MOTD For Dystopia (1-20-2016, v5.0)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
dysemjay
Junior Member
Join Date: Nov 2015
Plugin ID:
4918
Plugin Version:
4.0
Plugin Category:
General Purpose
Plugin Game:
Dystopia
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    "Creates the \"motd\" console command, and displays the MOTD upon connection if the motdfordys_automotd ConVar is set to 1.",
    Old 11-23-2015 , 23:46   [Dystopia/ANY] MOTD For Dystopia (1-20-2016, v5.0)
    Reply With Quote #1

    The MOTD seems to be disabled in Dystopia. This plugin creates the "motd" command to show the MOTD, and will display it automatically when a player enters the server if the "motdfordys_automotd" ConVar is set to 1. This plugin will conflict with the basetriggers plugin that ships with vanilla SourceMod, because they both create the "motd" command. However many of the functions provided by basetriggers do not work properly in Dystopia, and I would recommend removing it. This will probably also work for other games, that the basetriggers motd command would work properly for.

    Convar:
    Code:
    motdfordys_automotd "<1|0>" Default Value "1"
    Command:
    Code:
    motd
    Special Credits:

    Vizzy http://steamcommunity.com/profiles/76561197972958598/ - For testing the plugin.
    SourceMod Development Team - The implementation of the motd command was basically copied from basetriggers.

    Known Bugs:

    * It seems that when Dystopia is played at non-native resolutions, a button at the top right corner of the panel is visible, in addition to the normal "OK" button. The top right button will not properly close the MOTD panel. The transparent panel will be visible with no text or buttons, and no apparent way to continue without disconnecting from the server, after closing the loadouts menu with the button labled "Done!". Although, it does seem to close properly if the loadouts menu is closed by joining the Spectators team. This issue is probably with how VGUI panels are handled in Dystopia, and probably cannot be fixed in SourceMod.

    Changelog:
    Code:
    1-20-2016 (v5.0)
    
    * Now written in SourcePawn Transitional Syntax.
    * More robust checking of the motdfordys_automotd ConVar.
    
    11-23-2015 (v4.0) 
     
    * Added comments, and better formatted for public release.
    * Added the motdfordys_automotd ConVar.
    Attached Files
    File Type: sp Get Plugin or Get Source (MOTDForDys5.0.sp - 442 views - 2.0 KB)

    Last edited by dysemjay; 01-20-2016 at 02:44. Reason: Plugin Update.
    dysemjay 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 01:06.


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