Raised This Month: $51 Target: $400
 12% 

vote for ban player disconnect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BackStats
Senior Member
Join Date: Oct 2008
Old 11-21-2010 , 21:37   vote for ban player disconnect
Reply With Quote #1

if the player leaves the server open to a vote to ban these players or not the player.
The ban time can be configured in a cvar.
BackStats is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-22-2010 , 00:41   Re: vote for ban player disconnect
Reply With Quote #2

You want to vote ban everybody that leaves? What if two people leave at the same time? Too many variables there.
__________________
fysiks is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-22-2010 , 03:15   Re: vote for ban player disconnect
Reply With Quote #3

Try this:
Attached Files
File Type: sma Get Plugin or Get Source (vote_ban_disconnect.sma - 644 views - 5.3 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 11-22-2010 at 21:42.
Exolent[jNr] is offline
BackStats
Senior Member
Join Date: Oct 2008
Old 11-22-2010 , 14:58   Re: vote for ban player disconnect
Reply With Quote #4

is easy to add a cvar turn on/off, and also a command vbd_min_vote 6?
I need to use three servers and operate in a global way for all. Is it possible to use sql mode?
BackStats is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-22-2010 , 16:19   Re: vote for ban player disconnect
Reply With Quote #5

Quote:
Originally Posted by BackStats View Post
is easy to add a cvar turn on/off, and also a command vbd_min_vote 6?
I need to use three servers and operate in a global way for all. Is it possible to use sql mode?
What does that "min" cvar do? Minimum votes for Yes, or minimum players in the server?
Also, if you use an SQL supported amx_ban system (AMXBans or Advanced Bans) then it will ban by SQL.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
BackStats
Senior Member
Join Date: Oct 2008
Old 11-22-2010 , 16:37   Re: vote for ban player disconnect
Reply With Quote #6

min = minimum of vote "yes".
Then he works with advanced amxbans or bans? But in the case when you needed a reason banned in amxbans, you can put an automatic message of reason in the plugin, to appear in amxbans.

EX amxbans page:
Reason: User banned for disconnecting from the server.
BackStats is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-22-2010 , 21:42   Re: vote for ban player disconnect
Reply With Quote #7

Addedcvars:
vbd_enabled, vbd_vote_min, and vbd_ban_reason
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



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 11:33.


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