View Single Post
Author Message
FlyingMongoose
Veteran Member
Join Date: Mar 2004
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 - 3294 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