summaryrefslogtreecommitdiff
path: root/sourcemod/scripting/include/sourcebanspp.inc
diff options
context:
space:
mode:
authornavewindre <nw@moneybot.cc>2023-12-04 18:06:10 +0100
committernavewindre <nw@moneybot.cc>2023-12-04 18:06:10 +0100
commitaef0d1c1268ab7d4bc18996c9c6b4da16a40aadc (patch)
tree43e766b51704f4ab8b383583bdc1871eeeb9c698 /sourcemod/scripting/include/sourcebanspp.inc
parent38f1140c11724da05a23a10385061200b907cf6e (diff)
bbbbbbbbwaaaaaaaaaaa
Diffstat (limited to 'sourcemod/scripting/include/sourcebanspp.inc')
-rw-r--r--sourcemod/scripting/include/sourcebanspp.inc106
1 files changed, 106 insertions, 0 deletions
diff --git a/sourcemod/scripting/include/sourcebanspp.inc b/sourcemod/scripting/include/sourcebanspp.inc
new file mode 100644
index 0000000..c984bff
--- /dev/null
+++ b/sourcemod/scripting/include/sourcebanspp.inc
@@ -0,0 +1,106 @@
+// *************************************************************************
+// This file is part of SourceBans++.
+//
+// Copyright (C) 2014-2019 SourceBans++ Dev Team <https://github.com/sbpp>
+//
+// SourceBans++ is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, per version 3 of the License.
+//
+// SourceBans++ is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with SourceBans++. If not, see <http://www.gnu.org/licenses/>.
+//
+// This file based off work(s) covered by the following copyright(s):
+//
+// SourceBans 1.4.11
+// Copyright (C) 2007-2015 SourceBans Team - Part of GameConnect
+// Licensed under GNU GPL version 3, or later.
+// Page: <http://www.sourcebans.net/> - <https://github.com/GameConnect/sourcebansv1>
+//
+// *************************************************************************
+
+#if defined _sourcebanspp_included
+#endinput
+#endif
+#define _sourcebanspp_included
+
+public SharedPlugin __pl_sourcebanspp =
+{
+ name = "sourcebans++",
+ file = "sbpp_main.smx",
+ #if defined REQUIRE_PLUGIN
+ required = 1
+ #else
+ required = 0
+ #endif
+};
+
+#if !defined REQUIRE_PLUGIN
+public void __pl_sourcebanspp_SetNTVOptional()
+{
+ MarkNativeAsOptional("SBBanPlayer");
+ MarkNativeAsOptional("SBPP_BanPlayer");
+ MarkNativeAsOptional("SBPP_ReportPlayer");
+}
+#endif
+
+
+/*********************************************************
+ * Ban Player from server
+ *
+ * @param iAdmin The client index of the admin who is banning the client
+ * @param iTarget The client index of the player to ban
+ * @param iTime The time to ban the player for (in minutes, 0 = permanent)
+ * @param sReason The reason to ban the player from the server
+ * @noreturn
+ *********************************************************/
+#pragma deprecated Use SBPP_BanPlayer() instead.
+native void SBBanPlayer(int iAdmin, int iTarget, int iTime, const char[] sReason);
+
+/*********************************************************
+ * Ban Player from server
+ *
+ * @param iAdmin The client index of the admin who is banning the client
+ * @param iTarget The client index of the player to ban
+ * @param iTime The time to ban the player for (in minutes, 0 = permanent)
+ * @param sReason The reason to ban the player from the server
+ * @noreturn
+ *********************************************************/
+native void SBPP_BanPlayer(int iAdmin, int iTarget, int iTime, const char[] sReason);
+
+/*********************************************************
+ * Reports a player
+ *
+ * @param iReporter The client index of the reporter
+ * @param iTarget The client index of the player to report
+ * @param sReason The reason to report the player
+ * @noreturn
+ *********************************************************/
+native void SBPP_ReportPlayer(int iReporter, int iTarget, const char[] sReason);
+
+/*********************************************************
+ * Called when the admin banning the player.
+ *
+ * @param iAdmin The client index of the admin who is banning the client
+ * @param iTarget The client index of the player to ban
+ * @param iTime The time to ban the player for (in minutes, 0 = permanent)
+ * @param sReason The reason to ban the player from the server
+ *********************************************************/
+forward void SBPP_OnBanPlayer(int iAdmin, int iTarget, int iTime, const char[] sReason);
+
+/*********************************************************
+ * Called when a new report is inserted
+ *
+ * @param iReporter The client index of the reporter
+ * @param iTarget The client index of the player to report
+ * @param sReason The reason to report the player
+ * @noreturn
+ *********************************************************/
+forward void SBPP_OnReportPlayer(int iReporter, int iTarget, const char[] sReason);
+
+//Yarr!