AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D1 & L4D2] Votemute (no black screen) (https://forums.alliedmods.net/showthread.php?t=317256)

Dragokas 07-05-2019 04:24

[L4D1 & L4D2] Votemute (no black screen)
 
1 Attachment(s)
Description:
This plugin adds ability to vote for voice mute and gag (chat block).
Features:
- translucent vote menu.
- mute for 1 hour (adjustable) even if player used trick to quit the game before vote ends.
- vote announcement
- flexible configuration of access rights
- all actions are logged (who mute, whom mute, who tried to mute, ip/country/nick/SteamId, reason ...)
- un-mute
- gag
- un-gag
- auto-updated menu with "Microphone" icon (to see who is currently speaking) - SM v.1.11 is required.
- "X" icon to see who is currently muted / gagged.
- permanent mute/gag option (see Data Files)
- individual vote block option (see Data Files)
- auto-add to deny list the users from the "newnames.txt" file in Auto-Name-Changer by Exle plugin.
Data Files:
- "data/votemute_permanent_mute.txt" - permanent mute list
- "data/votemute_permanent_gag.txt" - permanent gag list
- "data/votemute_vote_block.txt" - deny list to forbid vote

> you can use SteamId, nicknames and simple masks in names like Dan*
Logfile location:
- logs/vote_mute.log
Permissions:
- by default, vote can be started by everybody (adjustable) if immunity and player count checks passed.
- by default, veto and votepass can be done by admin with "ban" flag (adjustable)
- ability to set minimum time to allow repeat the vote.
- ability to set minimum players count to allow starting the vote.
- admins cannot target root admin.
- users with lower immunity level cannot target users with higher level.
- everybody able to start vote kick against users from deny list (regardless of sm_votekick_accessflag ConVar settings).
Settings (ConVars):

- sm_votemute_delay - def.: 60 - Minimum delay (in sec.) allowed between votes
- sm_votemute_timeout - def.: 10 - How long (in sec.) does the vote last
- sm_votemute_announcedelay - def.: 2.0 - Delay (in sec.) between announce and vote menu appearing
- sm_votemute_mutetime - def.: 3600 - How long player will be muteed (in sec.)
- sm_votemute_gagtime - def.: 3600 - How long player will be gagged (in sec.).
- sm_votemute_minplayers - def.: 1 - Minimum players present in game to allow starting vote for mute
- sm_votemute_accessflag - def.: "" - Admin flag required to start the vote (leave empty to allow for everybody)
- sm_votemute_vetoflag - def.: "d" (ban) - Admin flag required to veto/votepass the vote.
- sm_votemute_handleadminmenu - def.: 1 - Should this plugin handle mute/gag made via admin menu? (1 - Yes / 0 - No)
- sm_votemute_log - def.: 1 - Use logging? (1 - Yes / 0 - No)
Commands:
- sm_vm (or sm_votemute) - Try to start vote for mute
- sm_vg (or sm_votegag) - Try to start vote for gag (chat block)
- sm_veto - Allow admin to veto current vote (ADMFLAG_BAN is required)
- sm_votepass - Allow admin to bypass current vote (ADMFLAG_BAN is required)
Requirements:
- GeoIP extension (included in SourceMod).
- SourceMod Communication Plugin - Basecomm.smx (included in SourceMod).
- (optionally) SM v.1.11 - to see "Microphone" icon.
Languages:
- Russian
- English
- Chinese
Installation:
- copy smx file to addons/sourcemod/plugins/
- copy phrases.txt file to addons/sourcemod/translations/
- copy data/ .txt files to addons/sourcemod/data/
References
- [L4D1 & L4D2] Votekick (no black screen)
- [L4D1 & L4D2] Vote difficulty (no black screen)
- [L4D1 & L4D2] Votemute (no black screen)
- [L4D1 & L4D2] Map changer with rating system (no black screen)
Donate
Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
- Patreon (Paypal)
- BitCoin
- Ю.Money
P.S.:
- Project and updates discontinued. Don't ask.

Dragokas 09-08-2019 10:46

Re: [L4D] Votemute (no black screen)
 
Updated
Quote:

1.7
- Some security fixes

1.8
- Fixed infinite "Vote is in progress"
- Fixed rare mem leak.

Dragokas 06-16-2020 11:43

Re: [L4D] Votemute (no black screen)
 
Updated.

Quote:

1.9
- Fixed "Invalid client index 0"
- Added permanent mute list (see source code - line "OnClientPutInServer")

CosmicD 07-09-2020 08:18

Re: [L4D] Votemute (no black screen)
 
Well the plugin doesn't compile, is there a prebaked one ?

EDIT: i've been able to compile it with the site compiler. so it's solved.

Darkwob 03-19-2021 00:10

Re: [L4D] Votemute (no black screen)
 
Quote:

Originally Posted by Dragokas (Post 2706032)
Updated.

Dragokas, can you bring a menu to these voting systems? "!vk,!votekick,!votemute,!vm "players with the flag we set when they type, a translucent menu with player names from a pop-up window and the reasons for voting the player they chose. can you do it? Can you also write a plugin in Vote gag?

Dragokas 03-19-2021 14:26

Re: [L4D] Votemute (no black screen)
 
What you mean, the plugin already has a menu.

Do you need "reasons"? To be able to select and save in logfile?

Dragokas 03-19-2021 14:27

Re: [L4D] Votemute (no black screen)
 
Quote:

Originally Posted by Darkwob (Post 2740897)
Vote gag?

Maybe. Usually, I instantly give a ban to such players who require a gag.

Dragokas 03-28-2021 08:53

Re: [L4D] Votemute (no black screen)
 
Updated.

Quote:

2.0 (23-Mar-2021)
- Added ability to see in menu who is currently speaking (available in SM v.1.11 only).
- Added ability to see in menu who was already muted / gagged.
- Added ability to unmute. Use the same menu.
- Added ability to gag/ungag (chat).
- New commands: !vg and alias !votegag.
- New ConVar "sm_votemute_gagtime" - How long player will be gagged (in sec.).

2.1 (28-Mar-2021)
- PRIVATE_STUFF is moved from source code to external files:
* "data/votemute_permanent_mute.txt" - to specify permanent mute list (STEAM id and player nicknames are allowed).
* "data/votemute_permanent_gag.txt" - to specify permanent list to block the chat (STEAM id and player nicknames are allowed).
* "data/votemute_vote_block.txt" - for specific players you may want to block the vote ability (STEAM id and player nicknames are allowed).
- Added ConVar "sm_votemute_vetoflag" - Admin flag required to veto/votepass the vote.
PS. I must say it was a quite non-trivial task to make an auto-refresh menu with pagination support.

Darkwob 04-01-2021 06:28

Re: [L4D1 & L4D2] Votemute (no black screen)
 
dragons, can you add a menu to this? from there we can pick the players and the reason.

Dragokas 04-25-2021 15:33

Re: [L4D1 & L4D2] Votemute (no black screen)
 
Updated.

Quote:

2.2 (25-Apr-2021)
- Improved menu items display when the player's nickname contains bad characters.


All times are GMT -4. The time now is 19:03.

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