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.
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