AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceBans / SourceBans++ (https://forums.alliedmods.net/forumdisplay.php?f=152)
-   -   [SOLVED] Is there any interface ? API ? (https://forums.alliedmods.net/showthread.php?t=329757)

Arkarr 01-06-2021 08:23

[SOLVED] Is there any interface ? API ?
 
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++ ?

HiddenConn1 01-31-2021 18:15

Re: Is there any interface ? API ?
 
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.

DarkDeviL 02-01-2021 03:23

Re: Is there any interface ? API ?
 
Quote:

Originally Posted by Arkarr (Post 2731571)
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.

Arkarr 02-01-2021 07:39

Re: Is there any interface ? API ?
 
I was looking for the forward, for some reasons, I couldn't find the include files. Thanks !


All times are GMT -4. The time now is 17:23.

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