Raised This Month: $168 Target: $400
 42% 

Simple Message Suppression


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Plugin ID:
641
Plugin Version:
1.2.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    83 
    Plugin Description:
    Blocks Specific Message Outputs
    Old 11-21-2008 , 06:12   Simple Message Suppression
    Reply With Quote #1

    This plugin optionally blocks any/all of the following: connect messages, disconnect messages, message for admin joining spectator or any team.

    CVARS:
    • sm_blockspectatemessage
      • 0 = Off
      • 1 = On
    • sm_blockdisconnectmessage
      • 0 = Off
      • 1 = On
    • sm_blockconnectmessage
      • 0 = Off
      • 1 = On
    • sm_blockjointeammessage
      • 0 = Off
      • 1 = On
    • sm_adminshowmessages
      • 0 = Off
      • 1 = On
    • sm_suppress_spectatorvalue
      • Default = 1
      • This is the value of the spectator team.

    CHANGELOG:
    • 1.2.1
      • Added sm_blockjointeammessage
      • Changed GetUserAdmin(i) != INVALID_ADMIN_HANDLE to GetUserFlagBits(i) != 0
        • Only users with SOME kind of access rights will be able to see join team messages.
    • 1.2.0
      • Changed from block+refiring of event to using SetEventBroadcast.
    • 1.1.0
      • Enforced proper logging of all events by re-firing events serverside after blocking, rather than attempting to rewrite the log line manually. (fixes some conflicts with HLstatsX:CE)
      • Removed need for sm_suppress_spectatorvalue cvar.
      • Option to hide message for admins switching to Spectator team now only hides messages of admins with at least kick flag, rather than anyone with a valid admin id (such as donators/VIP users)
    • 1.0.6
      • Added connect messages suppresssion
      • Enforced proper logging on ALL events suppressed (hopefully)
      • Changed "sm_adminshowdisconnect" to "sm_adminshowmessage" it is recommended you DELETE your previous config
      • Added "sm_blockconnectmessage"
    • 1.0.5
      • Fixed error where it would display player 0, server name, or "world" leaving the server.
    • 1.0.4
      • Fixed an error in output to admin (shouldn't show an error in server console anymore.)
    • 1.0.3
      • Added logging to disconnect messages for admin.
    • 1.0.2
      • Added ability to allow (all) admins to see disconnect messages.
    • 1.0.1
      • Added ability to suppress disconnect messages.
    • 1.0.0
      • Released

    INSTALLATION:
    • Click "Get Plugin" at the bottom of the post and save to your addons\sourcemod\plugins directory

    Thank you to SteamFriends for allowing me to test this on their servers.
    Attached Files
    File Type: sp Get Plugin or Get Source (simple-suppressmessages.sp - 1217 views - 5.5 KB)
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers

    Last edited by FlyingMongoose; 09-12-2013 at 13:07. Reason: Updated
    FlyingMongoose is offline
    FroL
    Member
    Join Date: Jul 2007
    Old 11-21-2008 , 06:41   Re: Block Spectate Join Messages for Admins
    Reply With Quote #2

    attachment?
    __________________

    3SMedia #1 | classic gameplay | tick 100 (81.25.49.19:27015)
    3SMedia #2 | pro gaming | tick 100 (81.25.49.19:27016)
    3SMedia #3 | deathmatch | tick 100 (81.25.49.19:27017)
    Sorry for my VERY bad english .
    FroL is offline
    nbtc971
    Senior Member
    Join Date: Sep 2008
    Old 11-21-2008 , 13:40   Re: Block Spectate Join Messages for Admins
    Reply With Quote #3

    Doh, he forgot to attach it. haha
    nbtc971 is offline
    Antithasys
    Moderator
    Join Date: Apr 2008
    Old 11-21-2008 , 15:59   Re: Block Spectate Join Messages for Admins
    Reply With Quote #4

    Quote:
    Originally Posted by FlyingMongoose View Post
    Click "Get Plugin" at the bottom of the post and save to your addons\sourcemod\plugins directory
    lol. I think the mongoose ran off with the attachment.
    Antithasys is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 11-21-2008 , 16:09   Re: Block Spectate Join Messages for Admins
    Reply With Quote #5

    Comes with the not sleeping enough territory >.< attachment upped.
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    Crap
    Senior Member
    Join Date: Aug 2008
    Old 11-21-2008 , 17:16   Re: Block Spectate Join Messages for Admins
    Reply With Quote #6

    Plugin failed to compile! Please try contacting the author.
    Crap is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 11-21-2008 , 17:23   Re: Block Spectate Join Messages for Admins
    Reply With Quote #7

    Line 27 says "ppublic" instead of "public".
    bl4nk is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 11-21-2008 , 18:09   Re: Block Spectate Join Messages for Admins
    Reply With Quote #8

    fixed.
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    nbtc971
    Senior Member
    Join Date: Sep 2008
    Old 11-21-2008 , 18:12   Re: Block Spectate Join Messages for Admins
    Reply With Quote #9

    Does this just suppress the such and such joined team spectate or does it block more?
    nbtc971 is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 11-21-2008 , 18:21   Re: Block Spectate Join Messages for Admins
    Reply With Quote #10

    Just the message.
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    Reply


    Thread Tools
    Display Modes

    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 02:21.


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