Raised This Month: $ Target: $400
 0% 

[L4D1 & L4D2] Votekick (Coop & Versus)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
alliedfront
Member
Join Date: Jan 2024
Location: Germany
Plugin ID:
8798
Plugin Version:
4.3
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    13 
    Plugin Description:
    This plugin replaces the black screen kick vote by a translucent menu.
    Old 10-03-2024 , 11:34   [L4D1 & L4D2] Votekick (Coop & Versus)
    Reply With Quote #1

    Description:
    This plugin replaces the black screen kick vote by a translucent menu. It is a fork of the discontinued plugin “[L4D1 & L4D2] Votekick – no black screen (Coop & Versus)” from Dragokas.

    My motivation of the fork is mainly:
    - fix bugs
    - continue support
    Features:
    - translucent menu
    - full versus support
    - 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 black list specific users (by SteamId or nickname) to prevent them 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.
    - ability to exclude a list of users you may not want to connect for a given time period. Excluded users receive the message "STEAM UserID is banned."
    * See the file: data/votekick_ban.txt (if not present, create it by setting cvar sm_votekick_use_banfile set to "1" in cfg-file)
    Logfile location:
    - logs/vote_kick.log
    Data file:
    - data/votekick_vote_block.txt - list of users you may want to exclude from the right to start 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
    - data/votekick_ban.txt - list of users you may want to exclude from connecting. Optional. Only read/created (if not present) if cvar sm_votekick_use_banfile = 1 (default: 0).
    * Format: SteamId, Start (Unixtime), Minutes, Self note
    - data/votekick_ban_lastwrite.txt - timestamp file. Optional. Only read/created (if not present) if cvar sm_votekick_use_banfile = 1 (default: 0)
    Permissions:
    - By default, voting can be started by anyone (adjustable): you could also restrict voting access, for example to players with the "k" (StartVote) flag ( set cvar sm_votekick_accessflag to "k").
    - by default, vote can be vetoed or force passed by player with "d" (Ban) flag (adjustable).
    - ability to set a minimum time to allow voting to be repeated.
    - ability to set a minimum number of players to hold a 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.: 1 - Minimum players present in game to allow starting vote for kick
    - sm_votekick_minplayers_versus - def.: 1 - Minimum players present in team to allow starting vote for kick (Versus gamemode)
    - sm_votekick_accessflag - def.: "" (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.: 1 - Allow to show number of yesVotes - noVotes? (1 - Yes / 0 - No)
    - sm_votekick_use_banfile - def.: 0 - Use file based temporary bans? (1 - Yes / 0 - No)
    - sm_votekick_use_banfile_log - def.: 1 - File based temporary bans: log attempts to join the server? (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:
    - English
    - Russian
    Installation:
    - copy smx file to addons/sourcemod/plugins/
    - copy l4d_votekick.phrases.txt file to addons/sourcemod/translations/
    - copy data/ .txt files to addons/sourcemod/data/
    - banfile: to enable, set sm_votekick_use_banfile = 1 in the cfg file.
    * file data/votekick_ban.txt will be created with next map start/change, if it not already exists. There You can add a player's STEAM Id to exclude them from connection
    * file data/votekick_ban_lastwrite.txt will be created with next map start/change, if it not already exists.
    Credits:
    - D1maxa - for the initial plugin
    - Dragokas – much thanks for his outstanding and inspiring work on which this plugin is based
    Attached Files
    File Type: zip votekick_v4.zip (18.4 KB, 32 views)
    File Type: sp Get Plugin or Get Source (l4d_votekick.sp - 35 views - 57.8 KB)

    Last edited by alliedfront; 10-29-2024 at 17:06.
    alliedfront is offline
    alliedfront
    Member
    Join Date: Jan 2024
    Location: Germany
    Old 10-03-2024 , 11:37   Re: [L4D1 & L4D2] Votekick - (Coop & Versus)
    Reply With Quote #2

    Changelog:
    Quote:
    Fork by alliedfront:

    Plugin is forked from version 3.5 of the plugin "[L4D] Votekick (no black screen)" by Dragokas.

    4.0 (21-09-2024)
    Added simple temporary bans by a file-based solution (new feature)
    - Ban entries will be deleted from both memory and file after they are expired
    - Bans are active on the instances of the l4d_votekick plugin
    - Uses the proven access / deny - functionality of the plugin
    - Ban entry format: Steam-ID,Start of ban (provide Unix timestanp or leave empty for now->Unix Timestamp),Duration in minutes,Self note (e.g. nickname of banned player)
    * see autogenerated file data/votekick_ban.txt for format details
    * autogenerated file data/votekick_ban_lastwrite.txt
    - This feature can be completly switched on/off (default: off) in cfg-file
    - The logging of attempts of file - banned players to join a server can be switched on/off in the cfg file (default: on)
    - maximum ban time: 60 days
    Bugfixes:
    - Fixed a bug, where the wrong team could unkick a kicked player (Versus)
    - Fixed a bug, where, in the case of g_bCvarShowKickReason == true, it would not properly check whether a vote was already running before starting another vote.
    - Fixed a bug, where a player could wrongly be a target by a kickvote, although he already had switched team (Versus)
    - Fixed a bug, when the global variable g_iVoteIssuerTeam contained the wrong team id of a previous vote, resulting of messages to the wrong team (Versus)
    - Fixed a bug, where additional votes could be started by other players within g_hCvarAnnounceDelay (default 2 seconds) after initial vote
    - Fixed a bug, when sReasonEng was not initialized before its use
    Exploits:
    - Fixed an exploit, where a kicked player could connect by offline authentification (no proper Steam ID retrieved)
    Minor changes:
    - If a player opened a KickReason menu and has chosen not to start voting (cancel), his 60 second penalty will be reduced, allowing him to reopen the VK menu after 2 seconds (2 seconds for anti-spam).
    Compatibility:
    - Works also with version 3.5 .txt-files in data/ and translations/ directories

    Last edited by alliedfront; 10-03-2024 at 14:29.
    alliedfront is offline
    alliedfront
    Member
    Join Date: Jan 2024
    Location: Germany
    Old 10-10-2024 , 18:27   Re: [L4D1 & L4D2] Votekick (Coop & Versus)
    Reply With Quote #3

    Changelog:
    Quote:
    4.1 (10-10-2024)
    - Temporary bans via banfile: Removed restriction on ban period (previously 60 days)
    - Temporary bans via banfile: duration can now also be defined by inserting a character string: e.g. “3d” for 3 days, “1d 12h” for 1 day 12 hours, “1h 90m” for 1 hour 90 minutes (previously only [Minutes]).
    * See the file votekick_ban.txt for details
    - CVARS defaults changed. Reason: Easier access to voting
    * sm_votekick_accessflag defaults to "" (previously "k")
    * sm_votekick_minplayers defaults to "1" (previously "4")
    * sm_votekick_minplayers_versus defaults to "1" (previously "4")
    alliedfront is offline
    alliedfront
    Member
    Join Date: Jan 2024
    Location: Germany
    Old 10-19-2024 , 10:24   Re: [L4D1 & L4D2] Votekick (Coop & Versus)
    Reply With Quote #4

    Changelog:
    Quote:
    4.2 (19-10-2024)
    - Code optimizations
    alliedfront is offline
    alliedfront
    Member
    Join Date: Jan 2024
    Location: Germany
    Old 10-29-2024 , 17:08   Re: [L4D1 & L4D2] Votekick (Coop & Versus)
    Reply With Quote #5

    Changelog:
    Quote:
    4.3 (29-Oct-2024)
    - Fixed a bug where in some cases a game server restart was required to create data/votekick_ban.txt
    - Updated description
    alliedfront 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 05:03.


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