View Single Post
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 02-01-2021 , 03:23   Re: Is there any interface ? API ?
Reply With Quote #3

Quote:
Originally Posted by Arkarr View Post
Is there any API for Sourceban++ that I use somewhere ? Or I have to do manually the query to the database ? How does one add a ban to sourceban++ ?
Within SourceMod plugins, the official SourceBans allows you these forwards:

scripting/include/sourcebans.inc

scripting/sourcebans_sample.sp

And the SourceBans++ fork:

scripting/include/sourcebanspp.inc


If you are referring to external things (e.g. a web service poking the SourceBans installation), then no, there is no API for that, and querying the database directly would be your only / best shot.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline