View Single Post
Plugin Info:     Modification:          Category:         
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-26-2011 , 22:44   Vote Kick (With custom Reason) [Updated]
Reply With Quote #1

This a simple Vote Kick comand for a players, including a Custom Reason.

Wen a Player select another, just warns of risk a Vote Kick fail's, you get kicked yourself.

AND

If the vote has a greater number of yes will have success. Otherwise it will fail.
Voting can equalize, then no player will be punished..


--> Say .votekick <Reason> | to show a menu or
amx_vote_kick_menu <Reason>

The Custom Reason have a size:
- Min chars is 5.
- Max chars is 23.

-- Admins not appear in the Vote Kick Menu;
-- Its based on Custom reason;
-- Its being used with a percent system;
-- The players themselves do not appear on the menu;
-- The Unassigned dont allowed to use the Vote menu;
-- The time to end a Vote Kick is 15 seconds;
-- Multi language;
-- Cvars to Vote Kick or Vote Ban Player;
-- An command to Admin Stop the current vote session;
-- If any Admin with a ADMIN_VOTE Flag is online, the Vote Kick is disabled;
-- If a Vote Starter or target leave the server before end of vote, this will be banned;

More info see the

CVARs:
Code:
amx_vote_kick","1"              // Vote Kick Active?
amx_vote_kick_minplayers","5"         // Minimum users to start an Vote Kick
amx_vote_kick_maxvotes","1"         // Times a player can use Vote Kick
amx_vote_kick_admin","0"         // Start an Vote Kick with Admins Online?
amx_vote_kick_time","15.0"         // Delay between Vote Kick sessions
amx_vote_kick_bantime","30"         // Ban Time in Minutes (0 Will only Kick the player)
amx_vote_kick_percentage","80.0"     // Vote Kick Percent to success 
amx_vote_kick_banevasion","1440"     // If a player evading Vote Kick, banning same (0 Deactivate Function)


User Commands (Max Reason size is 23, minimum is 5):

Code:
amx_vote_kick_menu <Reason>
Code:
.votekick <Reason>


Admins Commands (Default Flag is ADMIN_VOTE)
Code:
amx_vote_kick_stop     // Stop the current Vote Kick
.stopvotekick         // Do same thing


TIPs:
Quote:
-- To Change the admin access from commands: Find, #define ADMIN_VOTEKICK_FLAG ADMIN_VOTE
Attached Files
File Type: txt votekick.txt (1.6 KB, 679 views)
File Type: sma Get Plugin or Get Source (votekick.sma - 1988 views - 12.6 KB)
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 07-15-2013 at 22:02. Reason: 0.0.2 + Modification ALL
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY