[STANDALONE] Vote to kick/ban

PREVIEW

image

TEBEX | GTLife Store

Would you like to have a vote system to kick or ban players? Then, this is helpful for you.

Features

  1. Vote Kick Command (/votekick):
  • Initiates a vote to kick a player from the server.
  • Requires the player ID and a reason for the kick.
  • Checks if a vote is already in progress.
  • Validates the player ID to ensure the player is connected.
  • Checks if the player is in the whitelist to prevent kicking whitelisted players.
  1. Vote Ban Command (/voteban):
  • Initiates a vote to ban a player from the server.
  • Requires the player ID and a reason for the ban.
  • Checks if a vote is already in progress.
  • Validates the player ID to ensure the player is connected.
  • Checks if the player is in the whitelist to prevent banning whitelisted players.
  1. Voting Process:
  • Players can vote “yes” (/yes) or “no” (/no) on the active vote.
  • Tracks the number of “yes” and “no” votes.
  • Displays the current vote count to all players.
  1. Vote Duration:
  • The vote lasts for a configurable duration (default is 60 seconds).
  • Automatically ends the vote after the duration expires.
  1. Vote Outcome:
  • If the majority of votes are “yes”, the target player is kicked or banned.
  • If the majority of votes are “no”, the vote fails.
  • Notifies all players of the vote outcome.
  1. Ban Duration:
  • Configurable ban duration (default is 10 minutes).
  • Temporarily bans the player and saves the ban information to the database.
  1. Whitelist:
  • Prevents certain players (identified by their Steam identifiers) from being kicked or banned.
  • Configurable whitelist to add or remove identifiers.
  1. Database Integration:
  • Uses mysql-async for database operations.
  • Saves ban information to the database.
  • Checks if a player is banned when they try to join the server.
  • Removes expired bans from the database.
  • Store the information about steam identifier of banned player and from who started the vote to prevent abuse and solve later, time duration, and reason.
  1. Player Connection Check:
  • Validates if the player ID exists and is connected before initiating a vote.
  • Prevents kicking or banning non-existent or disconnected players.
  • Deny banned players connection until time is over.

OTHER SCRIPTS

[ESX/QB] 3D HUD | NOW $6.99

[STANDALONE] Sealife | $4.99

Code is accessible Yes
Subscription-based No
Lines (approximately) 150
Requirements mysql-async
Support Yes