Raised This Month: $12 Target: $400
 3% 

[SOLVED] Is there any interface ? API ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 01-06-2021 , 08:23   [SOLVED] Is there any interface ? API ?
Reply With Quote #1

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++ ?
__________________

Last edited by Arkarr; 02-01-2021 at 07:40.
Arkarr is offline
HiddenConn1
AlliedModders Donor
Join Date: Aug 2009
Location: Cambridge, UK
Old 01-31-2021 , 18:15   Re: Is there any interface ? API ?
Reply With Quote #2

If you've installed the game server, Metamod, SourceMod, and SourceBans++ correctly then you can add a manual ban (using the players' name, IP, and/or STEAM ID) on the installed SourceBans installation. Alternatively, you can also use your game server to ban. Simply use the in-game SourceMod admin menu and ban from there. This will automatically add the ban to SourceBans, again, if it's installed and set up correctly.
__________________
HiddenConn1 is offline
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
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 02-01-2021 , 07:39   Re: Is there any interface ? API ?
Reply With Quote #4

I was looking for the forward, for some reasons, I couldn't find the include files. Thanks !
__________________
Arkarr is offline
Reply


Thread Tools
Display Modes

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 13:00.


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