AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Simple Message Suppression (https://forums.alliedmods.net/showthread.php?t=80794)

FlyingMongoose 11-21-2008 06:12

Simple Message Suppression
 
2 Attachment(s)
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.

FroL 11-21-2008 06:41

Re: Block Spectate Join Messages for Admins
 
attachment?

nbtc971 11-21-2008 13:40

Re: Block Spectate Join Messages for Admins
 
Doh, he forgot to attach it. haha

Antithasys 11-21-2008 15:59

Re: Block Spectate Join Messages for Admins
 
Quote:

Originally Posted by FlyingMongoose (Post 716436)
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. :mrgreen:

FlyingMongoose 11-21-2008 16:09

Re: Block Spectate Join Messages for Admins
 
Comes with the not sleeping enough territory >.< attachment upped.

Crap 11-21-2008 17:16

Re: Block Spectate Join Messages for Admins
 
Plugin failed to compile! Please try contacting the author. :cry:

bl4nk 11-21-2008 17:23

Re: Block Spectate Join Messages for Admins
 
Line 27 says "ppublic" instead of "public".

FlyingMongoose 11-21-2008 18:09

Re: Block Spectate Join Messages for Admins
 
fixed.

nbtc971 11-21-2008 18:12

Re: Block Spectate Join Messages for Admins
 
Does this just suppress the such and such joined team spectate or does it block more?

FlyingMongoose 11-21-2008 18:21

Re: Block Spectate Join Messages for Admins
 
Just the message.


All times are GMT -4. The time now is 20:04.

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