View Single Post
Author Message
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 11-04-2009 , 17:43   [Any] NoSpam - The Anti-Micspam to allow or block HLSS/HLDJ per-client
Reply With Quote #1

[Any] NoSpam
Version 2.0.1.0
Servers Running This Plugin



Description:
Allows admins to block specific players from using HLSS/HLDJ mic spams.
Useful if you want to run your server with "sv_allow_voice_from_file 1" but prevent clients from using annoying spams without actually muting them.

This plugin can also be used to allow specific players to play sounds while having the server set to "
sv_allow_voice_from_file 0".

Commands:
sm_nospam <client> 1 - Prevents a player from using spams
sm_nospam <client> 0 - Allows a player to use spams
(This description was wrong for a while, sorry about that, it's correct now).
Cvars:
sm_nospam_version -- shows plugin version

Install Instructions:
  1. Place nospam.smx into your addons/sourcemod/plugins/ folder.
  2. Update your adminmenu_custom with the attached copy if desired.

Notes:
Tested and working in TF2, should work in any game that has the sv_allow_voice_from_file cvar.
nospam_retro is included for people who prefer the old command types. If you don't know what this means, you don't need it.


ToDo:
  • -

Version History:
  • V1.5.2
    • Initial Release
  • V2.0.0.0
    • Changed commands from sm_nospam_on and sm_nospam_off to sm_nospam 1 and sm_nospam 0 respectively.
    • Added support for custom admin menu.
  • V2.0.1.0
    • Fixed some errors that the plugin would print if used via rcon
Credit to EHG and his fake cvar variables plugin for the general idea and code.
Thanks to DeJaDeW for help with the admin menu.

51
Attached Files
File Type: sp Get Plugin or Get Source (nospam_retro.sp - 2370 views - 1.5 KB)
File Type: txt adminmenu_custom.txt (445 Bytes, 1424 views)
File Type: sp Get Plugin or Get Source (nospam.sp - 3074 views - 1.6 KB)
__________________

Last edited by DarthNinja; 07-23-2012 at 22:36.
DarthNinja is offline