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

Convert votekick bans to Sourcebans


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
einsfuhrer
Member
Join Date: Jun 2019
Old 08-23-2019 , 08:14   Convert votekick bans to Sourcebans
Reply With Quote #1

Hay, is there any plugin that makes the bans you get when you get vote kicked added to Sourcebans instead? When you get vote kicked you get a ban for like 15 minutes and I would like to have it on Sourcebans for 15 minutes instead.

If it doesn’t exists that would be a cool thing to have, if someone is willing to code it, I would really appreciate it. Thanks in advance!
einsfuhrer is offline
freak.exe_uLow
AlliedModders Donor
Join Date: Jul 2012
Location: Germany
Old 08-23-2019 , 09:02   Re: Convert votekick bans to Sourcebans
Reply With Quote #2

Quote:
Originally Posted by einsfuhrer View Post
Hay, is there any plugin that makes the bans you get when you get vote kicked added to Sourcebans instead? When you get vote kicked you get a ban for like 15 minutes and I would like to have it on Sourcebans for 15 minutes instead.

If it doesn’t exists that would be a cool thing to have, if someone is willing to code it, I would really appreciate it. Thanks in advance!
Working with:
Sourcebans++

https://forums.alliedmods.net/showthread.php?p=1778032

Last edited by freak.exe_uLow; 08-23-2019 at 09:02.
freak.exe_uLow is offline
einsfuhrer
Member
Join Date: Jun 2019
Old 08-23-2019 , 17:12   Re: Convert votekick bans to Sourcebans
Reply With Quote #3

I don't mean a menu. I mean the default votekick system. "Esc>Start A Vote>Votekick". That those bans, instead of saving in "cfg/banned_user.cfg", it is being added to SourceBans instead.

Is there a plugin for that? Or is someone willing to code it?
einsfuhrer is offline
dustinandband
Senior Member
Join Date: May 2015
Old 08-24-2019 , 01:48   Re: Convert votekick bans to Sourcebans
Reply With Quote #4

This will probably work. I don't have a test server with sourcebans installed - but I thought that the default ban command would add a ban to sourcebans automatically - if not you'd just need to replace the 'BanClient' part with one of the functions from the sourcebans include file.

Spoiler
dustinandband is offline
einsfuhrer
Member
Join Date: Jun 2019
Old 08-24-2019 , 08:46   Re: Convert votekick bans to Sourcebans
Reply With Quote #5

Thanks, I will take a look and test it later on. I will message the results here
einsfuhrer is offline
einsfuhrer
Member
Join Date: Jun 2019
Old 08-24-2019 , 13:20   Re: Convert votekick bans to Sourcebans
Reply With Quote #6

Quote:
Originally Posted by dustinandband View Post
This will probably work. I don't have a test server with sourcebans installed - but I thought that the default ban command would add a ban to sourcebans automatically - if not you'd just need to replace the 'BanClient' part with one of the functions from the sourcebans include file.

Spoiler
I got banned on the server, for 15 minutes, but didnt get added on Sourcebans. However, the thing Sourceban is using is BanClient (Check here: https://github.com/sbpp/sourcebans-p...g/sbpp_main.sp search for "BanClient).

So I get banned but not added to Sourcebans while Sourcebans and this plugin is using the same way to ban. Is this something you can fix?

Last edited by einsfuhrer; 08-24-2019 at 13:20.
einsfuhrer is offline
dustinandband
Senior Member
Join Date: May 2015
Old 08-24-2019 , 14:56   Re: Convert votekick bans to Sourcebans
Reply With Quote #7

if this doesn't work add me so we can get it working (discord: dustin#9028 ).

needs sourcebanspp.inc to compile
https://github.com/sbpp/sourcebans-p...urcebanspp.inc

Spoiler


Edit: if it doesn't work then find the sourcebans include file that came with your version of sourcebans and use the ban function.

Last edited by dustinandband; 08-30-2019 at 16:56. Reason: Edit
dustinandband is offline
einsfuhrer
Member
Join Date: Jun 2019
Old 08-30-2019 , 05:09   Re: Convert votekick bans to Sourcebans
Reply With Quote #8

Quote:
Originally Posted by dustinandband View Post
if this doesn't work add me so we can get it working (discord: dustin#9028 ).

needs sourcebanspp.inc to compile
https://github.com/sbpp/sourcebans-p...urcebanspp.inc

Spoiler
Sorry for a late response, I will try it out and keep in touch if it works or not!
einsfuhrer is offline
einsfuhrer
Member
Join Date: Jun 2019
Old 08-30-2019 , 19:17   Re: Convert votekick bans to Sourcebans
Reply With Quote #9

Worked perfectly!
einsfuhrer 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 14:23.


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