AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Any] NoSpam - The Anti-Micspam to allow or block HLSS/HLDJ per-client (https://forums.alliedmods.net/showthread.php?t=108391)

DarthNinja 11-04-2009 17:43

[Any] NoSpam - The Anti-Micspam to allow or block HLSS/HLDJ per-client
 
3 Attachment(s)
[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

Antithasys 11-05-2009 23:23

Re: [Any] NoSpam
 
That's a really interesting way to do that. Good Job.

captainAngry 12-31-2009 01:09

Re: [Any] NoSpam
 
Any chance you could add a cvar that would disable mic spams for everyone except for admins?

alinayg 01-01-2010 10:57

Re: [Any] NoSpam
 
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.

alinayg 01-03-2010 01:50

Re: [Any] NoSpam
 
Still wondering about the question.

DarthNinja 05-04-2010 04:57

Re: [Any] NoSpam
 
Quote:

Originally Posted by captainAngry (Post 1037380)
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 (Post 1038932)
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 05-06-2010 03:23

Re: [Any] NoSpam
 
If this plugin isn't working, please update to the newest SM snapshot:
http://www.sourcemod.net/snapshots.php

DarthNinja 05-25-2010 22:03

Re: [Any] NoSpam
 
~Bumpy~

Bit of an update; changed a couple commands and added an adminmenu_custom.

Sreaper 05-27-2010 13:25

Re: [Any] NoSpam
 
Quote:

Originally Posted by DarthNinja (Post 1191309)
~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' ?

DarthNinja 05-27-2010 17:21

Re: [Any] NoSpam
 
Quote:

Originally Posted by Sreaper (Post 1192745)
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.


All times are GMT -4. The time now is 21:05.

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