AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] MuteCheck (https://forums.alliedmods.net/showthread.php?t=165329)

Dr. McKay 08-21-2011 22:59

[ANY] MuteCheck
 
[ANY] MuteCheck

v1.9.2

Description:
This simply shows who has muted a specific player via the game's mute button. This has only been tested in TF2, but it should work in any Source game. By default anyone is allowed to type sm_mutecheck and it'll display who has muted you. Admins with the flag ADMFLAG_GENERIC can also type sm_mutecheck [target] to check who's muted the specific target. The admin flag can be overridden with the override below.

Commands:
sm_mutecheck - responds with who has muted you
sm_mutecheck [target] - responds with who has muted the target

Cvars:
sm_mutecheck_tag "[SM]" - allows you to change the tag prepended to Mutecheck responses
sm_mutecheck_version - plugin version
sm_mutecheck_auto_update "1" - enables automatic updating (has no effect if Updater is not installed)

Installation:
Put mutecheck.smx into /addons/sourcemod/plugins and reboot your server or type "sm plugins load mutecheck" into your console or rcon.

Overrides:
sm_mutecheck_override - Add this to your overrides to change the flag required to check the mutes for a specific target

Auto Update:
Install Updater. The plugin will be autoupdated according to your Updater settings. It'll work without Updater.

Changelog:
  • v1.9.0 (7/12/12)
    • Added ability to disable automatic updating (sm_mutecheck_auto_update)
  • v1.8.0 (7/9/12)
    • Added support for group targeting
    • Optimized message output
  • v1.7.0 (10/24/11)
    • Fixed an issue where the plugin would not be added to the Updater pool
  • v1.6.0 (10/23/11)
    • The plugin now uses the newer, better-supported Updater plugin
    • Added sm_mutecheck_tag cvar
    • Typing sm_mutecheck without any parameters in the console now returns a usage message
  • v1.5 (10/23/11)
    • The version cvar now has an "A" appended to it if autoupdate is functioning
  • v1.4 (9/5/11)
    • Removed immunity check from sm_mutecheck [target].
  • v1.3 (8/26/11)
    • Fixed sm_mutecheck [target] not working
  • v1.2 (8/23/11)
    • Updated plugin with optimized code, and allowed plugin to compile without autoupdate installed.
  • v1.1 (8/22/11)
    • Added autoupdate
  • v1.0 (8/21/11)
    • Initial Release

Download Plugin (mutecheck.smx)
View Source (mutecheck.sp)

TnTSCS 08-22-2011 00:08

Re: [ANY] MuteCheck
 
this could be useful :)

RedSword 08-22-2011 00:58

Re: [ANY] MuteCheck
 
An option to know all players / a team if they muted you could be nice too (i.e. you display only those who muted you).

Dr. McKay 08-22-2011 01:07

Re: [ANY] MuteCheck
 
Quote:

Originally Posted by RedSword (Post 1538136)
An option to know all players / a team if they muted you could be nice too (i.e. you display only those who muted you).

I'm sorry, I don't fully understand what you were saying. Could you rephrase it please? :)

RedSword 08-22-2011 02:03

Re: [ANY] MuteCheck
 
Sorry kind-of tired.

You could add the following options :
  • A command that allows to know which players muted the admin.
  • A command that allows to know which players of a team muted the admin.

i.e. :

sm_mutecheckteam t --> "Bob, Jack and Dick muted you."

Dr. McKay 08-22-2011 02:13

Re: [ANY] MuteCheck
 
Quote:

Originally Posted by RedSword (Post 1538170)
Sorry kind-of tired.

You could add the following options :
  • A command that allows to know which players muted the admin.
  • A command that allows to know which players of a team muted the admin.

i.e. :

sm_mutecheckteam t --> "Bob, Jack and Dick muted you."

Well, the plugin already shows which players muted you. sm_mutecheck returns a list of all players who muted you (and sm_mutecheck [target] returns a list of all players who muted [target]). Are you saying something like sm_mutecheckteam red to return a list of all RED players who muted you?

RedSword 08-22-2011 02:30

Re: [ANY] MuteCheck
 
wtf I read too quickly... nevermind me...

Dr. McKay 08-22-2011 02:37

Re: [ANY] MuteCheck
 
Quote:

Originally Posted by RedSword (Post 1538182)
wtf I read too quickly... nevermind me...

Lol, it's okay. Happens to me all the time. :P

Dr. McKay 08-22-2011 13:23

Re: [ANY] MuteCheck
 
Plugin updated to version 1.1, added auto update!

Peace-Maker 08-23-2011 13:30

Re: [ANY] MuteCheck
 
Nice idea. Some notes:
The boolean tag is lowercase in sourcepawn. "bool:" instead of "Bool:".
When using #tryinclude, make sure to mark the autoupdate natives as optional in askpluginload2 to have the plugin compile if the include fails.

PHP Code:

if(StrEqual(buffer"@all") || StrEqual(buffer"@red") || StrEqual(buffer"@blue") || StrEqual(buffer"@alive") || StrEqual(buffer"@dead") || StrEqual(buffer"@humans") || StrEqual(buffer"@bots") || StrEqual(buffer"@ct") || StrEqual(buffer"@t")) {
    
ReplyToCommand(client"[SM] Usage: sm_mutecheck [target]");
    return 
Plugin_Handled;


You don't want those group targeting features?
Consider using FindTarget to allow a single target only.

For performance reasons, don't declare new variables in a loop, but do it beforehand.


All times are GMT -4. The time now is 17:56.

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