View Single Post
Author Message
strontiumdog
Veteran Member
Join Date: Jan 2007
Location: BC, Canada
Old 07-04-2008 , 12:58   Vote Mute / Vote Silence 1.0.105
Reply With Quote #1

Mic spammers and chatty people can now be muted or silenced by popular demand.

There are two versions: votemute and votemute_p

Votemute is the standard one, where admins can initiate votes.

Votemute_p is a version where any player can initiate a vote.

Usage
  • sm_votegag <player>
Starts a votegag on a player.
  • sm_votemute <player>
Starts a votemute on a player.
  • sm_votesilence <player>
Starts a votemute on a player.
  • !votemute or /votemute

    In chat, brings up a menu to begin a votemute
  • !votesilence or /votesilence

    In chat, brings up a menu to begin a votemute
  • !votegag or /votegag

    In chat, brings up a menu to begin a votegag
Installation
  • ADMIN VERSION - votes can only be initiated by players with admin permissions
    Copy votemute.smx to addons/sourcemod/plugins

    OR
  • PUBLIC VERSION - any player can initiated a votemute/votesilence
    Copy votemute_p.smx to addons/sourcemod/plugins

Configuration
  • sm_votemute_limit 0.6
    default: 0.3

    Sets the percentage of votes required to mute someone
Notes
Has been tested with TF2 but should work with other mods.

This script has been pretty much taken from the basevotes.sp and basekick.sp scripts by AlliedModders LLC and adapted.

Gagging also prevents players from using voicemenu.


Changelog
v1.0.100
SourceMod release

v1.0.101
Added !votemute in chat to bring up menu to select player

v1.0.102
Added votesilence

v.1.0.103 and v1.0.103P
Fixed a bug where plugin would not obey voting delay
Changed version P stripping it of all admin code

v.1.0.104 and v1.0.104P
Slapped myself upside the head and rewrote the public version

v1.0.105 and v.10.105P
+Added preventing the use of voicemenu by gagging player
+Added !votegag
Attached Files
File Type: sp Get Plugin or Get Source (votemute_p.sp - 9682 views - 9.4 KB)
File Type: sp Get Plugin or Get Source (votemute.sp - 6520 views - 13.8 KB)
__________________
Plugins | TheVille
Zombie Mod for DoD:S - l4dod.theville.org

Last edited by strontiumdog; 01-27-2009 at 01:37.
strontiumdog is offline