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

[Any] NoSpam - The Anti-Micspam to allow or block HLSS/HLDJ per-client


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Plugin ID:
1269
Plugin Version:
2.0.1.0
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    27 
    Plugin Description:
    Prevents or allows the use of HLDJ/HLSS mic spams on a client by client basis
    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 - 1316 views - 1.5 KB)
    File Type: txt adminmenu_custom.txt (445 Bytes, 865 views)
    File Type: sp Get Plugin or Get Source (nospam.sp - 1652 views - 1.6 KB)
    __________________

    Last edited by DarthNinja; 07-23-2012 at 22:36.
    DarthNinja is offline
    Antithasys
    Moderator
    Join Date: Apr 2008
    Old 11-05-2009 , 23:23   Re: [Any] NoSpam
    Reply With Quote #2

    That's a really interesting way to do that. Good Job.
    __________________
    [my plugins]

    When you think about asking a question... consider what have you tried?
    Antithasys is offline
    captainAngry
    Member
    Join Date: Feb 2009
    Old 12-31-2009 , 01:09   Re: [Any] NoSpam
    Reply With Quote #3

    Any chance you could add a cvar that would disable mic spams for everyone except for admins?
    captainAngry is offline
    alinayg
    Senior Member
    Join Date: Apr 2009
    Location: USA, RI
    Old 01-01-2010 , 10:57   Re: [Any] NoSpam
    Reply With Quote #4

    Very nice plugin, Are the players added to nospam saved in a database or can they simply reconnect and be un "nospammed" ? If not, you should look into adding mysql support for this. Maybe even add it to source bans if they have a api.
    __________________

    Last edited by alinayg; 01-01-2010 at 10:59.
    alinayg is offline
    alinayg
    Senior Member
    Join Date: Apr 2009
    Location: USA, RI
    Old 01-03-2010 , 01:50   Re: [Any] NoSpam
    Reply With Quote #5

    Still wondering about the question.
    __________________
    alinayg is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 05-04-2010 , 04:57   Re: [Any] NoSpam
    Reply With Quote #6

    Quote:
    Originally Posted by captainAngry View Post
    Any chance you could add a cvar that would disable mic spams for everyone except for admins?
    Yes, I'm going to make a plugin that auto-allows people with a certain flag.
    Right now you could set "sv_allow_voice_from_file" to '0' and give your admins access to the plugin.

    Quote:
    Originally Posted by alinayg View Post
    Very nice plugin, Are the players added to nospam saved in a database or can they simply reconnect and be un "nospammed" ? If not, you should look into adding mysql support for this. Maybe even add it to source bans if they have a api.
    The way the plugin works is that it sends a fake cvar change (sv_allow_voice_from_file 1/0) to a chosen client.
    When the client joins the server, that cvar is also sent to the client.
    So, no it is not remembered.

    I may possibly add the ability for it to remember players and check them when they connect
    __________________
    DarthNinja is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 05-06-2010 , 03:23   Re: [Any] NoSpam
    Reply With Quote #7

    If this plugin isn't working, please update to the newest SM snapshot:
    http://www.sourcemod.net/snapshots.php
    __________________
    DarthNinja is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 05-25-2010 , 22:03   Re: [Any] NoSpam
    Reply With Quote #8

    ~Bumpy~

    Bit of an update; changed a couple commands and added an adminmenu_custom.
    __________________
    DarthNinja is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Location: Source SDK
    Old 05-27-2010 , 13:25   Re: [Any] NoSpam
    Reply With Quote #9

    Quote:
    Originally Posted by DarthNinja View Post
    ~Bumpy~

    Bit of an update; changed a couple commands and added an adminmenu_custom.
    Any plans to create a database to log the steam ids too? For permanent 'nospam' ?
    Sreaper is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 05-27-2010 , 17:21   Re: [Any] NoSpam
    Reply With Quote #10

    Quote:
    Originally Posted by Sreaper View Post
    Any plans to create a database to log the steam ids too? For permanent 'nospam' ?
    Yes, but I've got a lot of other things in my queue so it won't be for a week or two until I can get to it.
    __________________
    DarthNinja 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 16:14.


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