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

[REQ] AutoBan on player exit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mistery
Junior Member
Join Date: Nov 2011
Old 11-06-2011 , 06:38   [REQ] AutoBan on player exit
Reply With Quote #1

I need a simple (at least i think it's simple ) autoban plugin, whitch bans player when he leaves server.
The thing is that i need it so it bans him via SourceBans, and so that you could enable/disable the autoban function (like sm_autoban 1/0)
That is all, i think
I searched forums, but didn't found anything i could use :/ (i need it for Mix server).
Please help someone

Last edited by Mistery; 11-06-2011 at 08:02.
Mistery is offline
Gippo
AlliedModders Donor
Join Date: Oct 2008
Old 11-08-2011 , 02:39   Re: [REQ] AutoBan on player exit
Reply With Quote #2

Just want to ask why would you want to ban people for leaving.
Gippo is offline
DaftMink
Member
Join Date: Apr 2009
Old 11-08-2011 , 03:50   Re: [REQ] AutoBan on player exit
Reply With Quote #3

He's probably one of the jerk's running an achievement servers in tf2 in the hopes of banning people and making them feel bad.

Guess he want's something like this script.
http://forums.alliedmods.net/showthread.php?p=768520
DaftMink is offline
Mistery
Junior Member
Join Date: Nov 2011
Old 11-08-2011 , 09:21   Re: [REQ] AutoBan on player exit
Reply With Quote #4

lol !? Like i said, i need it for Mix/Gather server, so players won't leave while it's live, because by leaving they are ruining game for others!

P.S. I need it for Counter Strike: Source

Last edited by Mistery; 11-08-2011 at 09:22.
Mistery is offline
DaftMink
Member
Join Date: Apr 2009
Old 11-08-2011 , 15:23   Re: [REQ] AutoBan on player exit
Reply With Quote #5

You know source games have a habit of crashes occasionally right ?.
If you make a plugin to ban on disconnect it's going to ban alot of the wrong people.
DaftMink is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 11-08-2011 , 15:35   Re: [REQ] AutoBan on player exit
Reply With Quote #6

And threatning to ban your players isn't going to stop them leaving.
Snaggle is offline
Mistery
Junior Member
Join Date: Nov 2011
Old 11-09-2011 , 09:35   Re: [REQ] AutoBan on player exit
Reply With Quote #7

Many popular mix servers have a plugin like that, which bans them for a day if leaving when it's live,
and it works, usual players who play there are learning to not to leave when the game is on, but wait for end.
There is a way to ban only if strequal is (Disconnected by user.) not 'Timed out', so it would ban them only if they leave them selves, not by crashed game client.
I have seen plugin like that, but it bans only in local ban, but i need it for sourcebans )

Last edited by Mistery; 11-09-2011 at 09:36.
Mistery is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 11-09-2011 , 10:31   Re: [REQ] AutoBan on player exit
Reply With Quote #8

If you tell me how it should be disabled if the game is no more live, i think i can write it for you.

Yours sincerely
Impact
__________________
Impact123 is offline
Mistery
Junior Member
Join Date: Nov 2011
Old 11-09-2011 , 13:23   Re: [REQ] AutoBan on player exit
Reply With Quote #9

Quote:
Originally Posted by Impact123 View Post
If you tell me how it should be disabled if the game is no more live, i think i can write it for you.

Yours sincerely
Impact
It's not nessecery, you can just make a command for disabling, and i can put that command on/off in match start config, and end config (i'm using GameTech WarMod).
Thanks )
Mistery is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 11-09-2011 , 14:52   Re: [REQ] AutoBan on player exit
Reply With Quote #10

First: I have not tested this, since i have no Sourcebans on my testserver, so i cannot say if that bancommand works correctly.
There is a cvar called: sm_matchkick_enable, Default is 0.
If a client disconnect's and his disconnectmessage contains: Disconnect by user.
Then he will get banned and a message is logged. example:
Code:
[matchkick.smx] User Impact has been banned for leaving while match is live: Disconnect by user.
The code might be a bit crappy, but should work.
Feel free to edit.

Yours sincerely
Impact
Attached Files
File Type: sp Get Plugin or Get Source (matchkick.sp - 900 views - 1.1 KB)
__________________

Last edited by Impact123; 11-09-2011 at 14:53.
Impact123 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 01:32.


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