sourcebans-pp icon indicating copy to clipboard operation
sourcebans-pp copied to clipboard

[Feature Request] Add Native to Ban Disconnected Players given custom SteamID/IP/etc

Open InvexByte opened this issue 8 years ago • 2 comments

The only current native to ban a player is this: native SourceBans_BanPlayer(client, target, time, String:reason[]);

Many plugins could benefit from a native to ban a player given custom steamids, ipaddresses etc. Such a native would simply insert the ban into the database given the custom information and then check to see if anyone on the server matches the steam id/ip that was banned and kick them if they do. Note its important this native doesn't rely on the player being connected to the server.

This would allow some plugins like this to be improved: https://forums.alliedmods.net/showthread.php?t=273653

InvexByte avatar Apr 27 '17 08:04 InvexByte

I'll take a stab at this.

rumblefrog avatar Oct 08 '17 04:10 rumblefrog

Didn't realize how messy the original sourceban code is until I got started.

rumblefrog avatar Oct 09 '17 02:10 rumblefrog