AlliedModders

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

Dragokas 07-05-2019 04:20

[L4D1 & L4D2] Votekick - no black screen (Coop & Versus)
 
1 Attachment(s)
Description:
This plugin replaces annoying black screen vote for kick by translucent menu.
Features:
- translucent menu
- full versus support (thanks to @alliedfront)
- kick for 1 hour (adjustable) even if the player used a trick to quit from the game before the vote ends.
- prevents votekick exploit
- un-kick (from the same menu)
- vote announcement
- no black screen
- flexible configuration of access rights
- kick reasons (with translation):
* See the file: data/votekick_reason.txt
- all actions are logged (who kick, whom kick, who tried to kick, ip/country/nick/SteamId, reason ...)
- ability to use deny list (by SteamId or nickname) to prevent specific users from starting the vote:
* See the file: data/votekick_vote_block.txt
- auto-add to deny list the users from the "newnames.txt" file in Auto-Name-Changer by Exle plugin.
Logfile location:
- logs/vote_kick.log
Data file:
- data/votekick_vote_block.txt - deny list of user you may want to disable ability to start the voting
* (SteamId and nicknames with simple mask * are allowed).
- data/votekick_reason.txt - list of kick reasons (optionally, must be supplied with appropriate translation in file: l4d_votekick.phrases.txt).

Guide to add more kick reasons:
- Add new line in data/votekick_reason.txt
- Edit translation file to add new entry similar to "Rusher" in file: translations/l4d_votekick.phrases.txt
Permissions:
- by default, vote can be started by player with "k" (StartVote) flag (adjustable).
- by default, vote can be vetoed or force passed by player with "d" (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.
- non-admins cannot target admins.
- 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).
- (in versus) users can't target users from opposite team
Settings (ConVars):
- sm_votekick_delay - def.: 60 - Minimum delay (in sec.) allowed between votes
- sm_votekick_timeout - def.: 10 - How long (in sec.) does the vote last
- sm_votekick_announcedelay - def.: 2.0 - Delay (in sec.) between announce and vote menu appearing
- sm_votekick_kicktime - def.: 3600 - How long player will be kicked (in sec.)
- sm_votekick_minplayers - def.: 4 - Minimum players present in game to allow starting vote for kick
- sm_votekick_minplayers_versus - def.: 4 - Minimum players present in team to allow starting vote for kick (Versus gamemode)
- sm_votekick_accessflag - def.: "k" (StartVote) - Admin flag required to start the vote (leave empty to allow for everybody)
- sm_votekick_vetoflag - def.: "d" (Ban) - Admin flag required to veto/votepass the vote
- sm_votekick_log - def.: 1 - Use logging? (1 - Yes / 0 - No)
- sm_votekick_show_kick_reason - def: 0 - Allow to select kick reason? (1 - Yes / 0 - No)
- sm_votekick_show_bots - def.: 0 - Allow to vote kick survivor bots? (1 - Yes / 0 - No)
- sm_votekick_show_self - def.: 0 - Allow to self-kick (for debug purposes)? (1 - Yes / 0 - No)
- sm_votekick_show_vote_details - def.: 0 - Allow to show number of yesVotes - noVotes? (1 - Yes / 0 - No)
Commands:
- sm_vk - Show menu to select player to vote for kick/unkick
- sm_votekick - same as sm_vk
- sm_veto - Allow admin to veto current vote
- sm_votepass - Allow admin to bypass current vote
- sm_pass - same as sm_votepass
Requirements:
- GeoIP extension (included in SourceMod).
- SourceMod v.1.10+
Languages:
- Russian
- English
Installation:
- copy smx file to addons/sourcemod/plugins/
- copy phrases.txt file to addons/sourcemod/translations/
- copy data/ .txt file to addons/sourcemod/data/
Credits:
- D1maxa - for the initial plugin
- MasterMind420 & Powerlord - for suggestions on fixing exploit
- SilverShot - for ConVar solution on votekick exploit
- toniex - for new update suggestions
- Profanuch - for new update suggestions
- GoGetSomeSleep - for donation
- alliedfront - much thanks for adding full versus support, fixing bot kick exploit and several bugs.
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.

KRUTIK 07-12-2019 07:53

Re: [L4D] Votekick (no black screen)
 
A great plugin, it works in L4D2 I checked it, before that, the plugin did not work for me on kick, thanks for the plugin.

Dragokas 07-12-2019 07:59

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

Originally Posted by KRUTIK (Post 2658863)
the plugin did not work for me on kick

Please, explain.

KRUTIK 07-13-2019 00:49

Re: [L4D] Votekick (no black screen)
 
I wanted to write that your plugin works fine for me.

Dragokas 09-08-2019 10:43

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

1.7
- Some security fixes

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

Dominatez 02-16-2020 20:10

Re: [L4D] Votekick (no black screen)
 
Great plugin.

Shame there is no way to unban a user.

Dragokas 02-17-2020 00:46

Re: [L4D] Votekick (no black screen)
 
For what reason... kick by mistake?

toniex 02-25-2020 11:02

Re: [L4D] Votekick (no black screen)
 
the only mistake i found in versus, is names of the 8 players in the room appear, Shouldn't it appear only 4 of my team???????

Dragokas 02-25-2020 12:18

Re: [L4D] Votekick (no black screen)
 
Dunno. I don't play versus. Perhaps, makes sense.

So, is that also required don't allow to vote one team for kick player from another team?

In that case I'll see what I can do some time later, since it required full reorganization of vote system code.

Profanuch 06-15-2020 11:49

Re: [L4D] Votekick (no black screen)
 
Просьба, добавить возможность не кикать игроков, если у них имеется флаг администратора.


All times are GMT -4. The time now is 02:27.

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