sbpp / sourcebans-pp

Admin, ban, and comms management system for the Source engine
https://sbpp.github.io/
Creative Commons Attribution Share Alike 4.0 International
336 stars 173 forks source link

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

Open InvexByte opened 7 years ago

InvexByte commented 7 years ago

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

rumblefrog commented 7 years ago

I'll take a stab at this.

rumblefrog commented 7 years ago

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