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

Mute On Vote


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Plugin ID:
2937
Plugin Version:
2.2.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Mute, gag, or silence players after a vote is started.
    Old 05-03-2012 , 22:26   Mute On Vote
    Reply With Quote #1

    Mute On Vote

    Description:
    Mute, gag, or silence players after a vote is started. This will not unmute, ungag, or unsilence any players that were before the vote started. Works with ExtendedComm and Sourcemod Base Votes.
    Control Variables:
    • sm_muteonvote_enabled (default: 1) Enable/Disable plugin (1 = Mute | 2 = Gag | 3 = Silence)
    • sm_muteonvote_immunity (default: 1) Enable/Disable admin immunity
    Overrides:
    • muteonvote_flag (default: b)
    Version Log:
    • Version 2.2
      • Fixed up some convar bugs
    • Version 2.1
      • Changed convar names
      • Added translations
    • Version 2.0
      • Add immunity convar
      • Fixed bugs where muted, gag, or silenced players were given communication privileges back after a vote had concluded
    • Version 1.1
      • Added choice of mute, gag, or silence when a vote is called
      • Now properly uses BassComm natives
    • Version 1.0
      • Initial Release
    Installation:
    • muteonvote.smx to sourcemod/plugins
    • muteonvote.phrases.txt to sourcemod/translations
    My Plugins
    intox Gaming
    Attached Files
    File Type: sp Get Plugin or Get Source (muteonvote.sp - 1360 views - 4.4 KB)
    File Type: txt muteonvote.phrases.txt (504 Bytes, 523 views)

    Last edited by ReFlexPoison; 07-19-2013 at 05:28.
    ReFlexPoison is offline
    Dr!fter
    The Salt Boss
    Join Date: Mar 2007
    Old 05-05-2012 , 20:32   Re: [ANY] Mute During Votes
    Reply With Quote #2

    Some feedback:

    First you should be using the mute native to mute the players.

    http://docs.sourcemod.net/api/index....d=show&id=992&
    And to gag
    http://docs.sourcemod.net/api/index....d=show&id=991&

    For your timer you can just create the timer with the TIMER_REPEAT flag rather than creating a new one every time inside the callback. http://wiki.alliedmods.net/Timers_(S...eatable_Timers

    The last bit of feedback You create the timer OnPluginStart and kill it OnMapEnd this means that if the map changes the timer isnt created again until the plugin is reloaded. Your best options are to create it OnPluginStart and only kill it OnPluginEnd or Create it OnMapStart and kill it OnMapEnd. Personally I would use the first option since you can create it and forget it (only thing is the timer will fire between mapchanges). But either option is fine.
    Dr!fter is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: ☠☠☠
    Old 05-05-2012 , 20:53   Re: [ANY] Mute During Votes
    Reply With Quote #3

    Quote:
    Originally Posted by Dr!fter View Post
    Some feedback:

    First you should be using the mute native to mute the players.
    What benefits will that have for the plugin? I'm assuming it is cleaner and easier to handle?

    And for the next update I'll add the CreateTimer fix you mentioned.
    __________________

    Last edited by ReFlexPoison; 05-05-2012 at 20:54.
    ReFlexPoison is offline
    Dr!fter
    The Salt Boss
    Join Date: Mar 2007
    Old 05-06-2012 , 16:09   Re: [ANY] Mute During Votes
    Reply With Quote #4

    Quote:
    Originally Posted by ReFlexPoison View Post
    What benefits will that have for the plugin? I'm assuming it is cleaner and easier to handle?

    And for the next update I'll add the CreateTimer fix you mentioned.
    Its frowned upon to use ServerCommand most of the time. Thats why the natives exist. Its also faster to use the natives rather than ServerCommand.
    Dr!fter is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: ☠☠☠
    Old 05-07-2012 , 02:15   Re: [ANY] Mute During Votes
    Reply With Quote #5

    Version 1.1 Released

    Changes:
    > Enabled Choice of Mute, Gag, or Silence when a vote is called
    > Now properly uses BassComm natives
    __________________

    Last edited by ReFlexPoison; 01-27-2013 at 00:11.
    ReFlexPoison is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: ☠☠☠
    Old 05-12-2012 , 01:32   Re: [ANY] Mute During Votes
    Reply With Quote #6

    Version 2.0 Released

    Changes:
    > Add immunity CVar
    > Fixed bugs where muted, gag, or silenced players were given communication privileges back after a vote had concluded
    __________________

    Last edited by ReFlexPoison; 01-27-2013 at 00:11.
    ReFlexPoison is offline
    Jackmaster
    SourceMod Donor
    Join Date: May 2011
    Old 05-12-2012 , 05:19   Re: [ANY] Mute During Votes
    Reply With Quote #7

    steal0r noob.
    Jackmaster is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: ☠☠☠
    Old 05-12-2012 , 13:32   Re: [ANY] Mute During Votes
    Reply With Quote #8

    Quote:
    Originally Posted by Jackmaster View Post
    steal0r noob.
    What?
    __________________
    ReFlexPoison is offline
    MasterOfTheXP
    Veteran Member
    Join Date: Aug 2011
    Location: Cloudbank
    Old 05-12-2012 , 16:50   Re: [ANY] Mute During Votes
    Reply With Quote #9

    Quote:
    Originally Posted by ReFlexPoison View Post
    What?
    You heard him, he said you're a steal0r noob. Need proof?
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
    MasterOfTheXP is offline
    Tylerst
    Veteran Member
    Join Date: Oct 2010
    Old 05-12-2012 , 17:13   Re: [ANY] Mute During Votes
    Reply With Quote #10

    Quote:
    Originally Posted by MasterOfTheXP View Post
    You heard him, he said you're a steal0r noob. Need proof?
    Seems Legit
    Tylerst 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 07:16.


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