Raised This Month: $ Target: $400
 0% 

[ANY] Ban Disconnected Players [UPDATED 1/3/17]


Post New Thread Reply   
 
Thread Tools Display Modes
living computer
Junior Member
Join Date: Mar 2011
Old 01-08-2017 , 17:37   Re: [ANY] Ban Disconnected Players [UPDATED 1/3/17]
Reply With Quote #61

May i ask why you are linking to it instead of just attaching the file here? Thank you for 2.0 btw, i had the same problems before. Hope it works now.
living computer is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 01-08-2017 , 17:42   Re: [ANY] Ban Disconnected Players [UPDATED 1/3/17]
Reply With Quote #62

Quote:
Originally Posted by living computer View Post
May i ask why you are linking to it instead of just attaching the file here? Thank you for 2.0 btw, i had the same problems before. Hope it works now.
That way if any changes are made to GitHub it will always download the latest version.
headline is offline
Jillchang
Senior Member
Join Date: Mar 2014
Old 01-08-2017 , 18:37   Re: [ANY] Ban Disconnected Players [UPDATED 1/3/17]
Reply With Quote #63

Does this work with votes? If not, is it compatible with custom vote redux?
https://forums.alliedmods.net/showthread.php?p=2097623
Jillchang is offline
living computer
Junior Member
Join Date: Mar 2011
Old 01-08-2017 , 20:37   Re: [ANY] Ban Disconnected Players [UPDATED 1/3/17]
Reply With Quote #64

Quote:
Originally Posted by Headline View Post
That way if any changes are made to GitHub it will always download the latest version.
Tested it now, seems to work great. Thank you for finally fixing this, also had that SB problem before.

You are a great guy

Last edited by living computer; 01-08-2017 at 20:37.
living computer is offline
Andrey309a
Junior Member
Join Date: Feb 2017
Old 02-08-2017 , 13:47   Re: [ANY] Ban Disconnected Players [UPDATED 1/3/17]
Reply With Quote #65

If you use sourcebans, the ban does it correctly but without name and ip.

Could be able to get the name of the banned and ip?

Thx
Andrey309a is offline
kshishu
Junior Member
Join Date: Mar 2016
Location: Opole
Old 03-06-2017 , 18:30   Re: [ANY] Ban Disconnected Players [UPDATED 1/3/17]
Reply With Quote #66

Quote:
Originally Posted by Andrey309a View Post
If you use sourcebans, the ban does it correctly but without name and ip.

Could be able to get the name of the banned and ip?

Thx

Can someone fix this? PLEASE
__________________



kshishu is offline
Send a message via Skype™ to kshishu
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 04-27-2017 , 04:49   Re: [ANY] Ban Disconnected Players [UPDATED 1/3/17]
Reply With Quote #67

The name and IP don't appear because this plugin wasn't designed for sourcebans in particular.

The name can easily be fixed by checking for the sourcebans library and using the relevant sourcebans include for the currently most active sourcebans project: https://github.com/sbpp/sourcebans-pp/

For the IP, there is no native provided by Sourcebans to do a IP ban so you have to either copy code over or do a manual DB insert. I think however that SBpp should have this feature and I opened an issue here: https://github.com/sbpp/sourcebans-pp/issues/267

I also have a minor suggestions for Headline:
Consider adding aliases sm_dcban and sm_dclist, much nicer in my opinion
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!

Byte is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 04-27-2017 , 13:45   Re: [ANY] Ban Disconnected Players [UPDATED 1/3/17]
Reply With Quote #68

Quote:
Originally Posted by Byte View Post
The name can easily be fixed by checking for the sourcebans library and using the relevant sourcebans include for the currently most active sourcebans project: https://github.com/sbpp/sourcebans-pp/
Except it can't easily be fixed because those natives uses the client's index.

An old solution to the problem - where the names and ips would show up on sourcebans - seems to have broken over time. I pulled it back to a functional state since that happened.

Old solution:
PHP Code:
BanIdentity(steamidminutesBANFLAG_AUTHIDreason"sm_addban"client); 

Last edited by headline; 04-27-2017 at 13:47.
headline is offline
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 04-27-2017 , 22:22   Re: [ANY] Ban Disconnected Players [UPDATED 1/3/17]
Reply With Quote #69

Quote:
Originally Posted by Headline View Post
Except it can't easily be fixed because those natives uses the client's index.

An old solution to the problem - where the names and ips would show up on sourcebans - seems to have broken over time. I pulled it back to a functional state since that happened.

Old solution:
PHP Code:
BanIdentity(steamidminutesBANFLAG_AUTHIDreason"sm_addban"client); 
Oh my mistake, I somehow misread and thought the native accepted a custom name.

The previous solution worked for the GameConnect Sourcebans:
https://github.com/GameConnect/SourceBans

Because it used the OnBanIdentity forward.
However even that could only ban the Steam ID or the IP at once.
So you'd need 2 calls to ban both which is a bit meh.

I'll work on the SB++ feature later myself and submit a pull request so its hopefully added soon.
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!

Byte is offline
`666
AlliedModders Donor
Join Date: Jan 2006
Old 06-30-2017 , 06:45   Re: [ANY] Ban Disconnected Players [UPDATED 1/3/17]
Reply With Quote #70

Thanks.
`666 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 02:43.


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