Raised This Month: $7 Target: $400
 1% 

[ANY] MuteCheck


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Plugin ID:
2511
Plugin Version:
1.9.2
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    48 
    Plugin Description:
    Shows who has muted a specific player via the game's mute button
    Old 08-21-2011 , 22:59   [ANY] MuteCheck
    Reply With Quote #1

    [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)
    __________________

    Last edited by Dr. McKay; 07-14-2020 at 04:15.
    Dr. McKay is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 08-22-2011 , 00:08   Re: [ANY] MuteCheck
    Reply With Quote #2

    this could be useful
    TnTSCS is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 08-22-2011 , 00:58   Re: [ANY] MuteCheck
    Reply With Quote #3

    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).
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work
    RedSword is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 08-22-2011 , 01:07   Re: [ANY] MuteCheck
    Reply With Quote #4

    Quote:
    Originally Posted by RedSword View Post
    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?
    __________________
    Dr. McKay is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 08-22-2011 , 02:03   Re: [ANY] MuteCheck
    Reply With Quote #5

    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."
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work
    RedSword is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 08-22-2011 , 02:13   Re: [ANY] MuteCheck
    Reply With Quote #6

    Quote:
    Originally Posted by RedSword View Post
    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?
    __________________
    Dr. McKay is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 08-22-2011 , 02:30   Re: [ANY] MuteCheck
    Reply With Quote #7

    wtf I read too quickly... nevermind me...
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work
    RedSword is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 08-22-2011 , 02:37   Re: [ANY] MuteCheck
    Reply With Quote #8

    Quote:
    Originally Posted by RedSword View Post
    wtf I read too quickly... nevermind me...
    Lol, it's okay. Happens to me all the time.
    __________________
    Dr. McKay is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 08-22-2011 , 13:23   Re: [ANY] MuteCheck
    Reply With Quote #9

    Plugin updated to version 1.1, added auto update!
    __________________
    Dr. McKay is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 08-23-2011 , 13:30   Re: [ANY] MuteCheck
    Reply With Quote #10

    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.
    __________________
    Peace-Maker 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 02:03.


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