-
Notifications
You must be signed in to change notification settings - Fork 180
Expand file tree
/
Copy pathsourcebanschecker.inc
More file actions
75 lines (67 loc) · 2.69 KB
/
sourcebanschecker.inc
File metadata and controls
75 lines (67 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// *************************************************************************
// This file is part of SourceBans++.
//
// Copyright (C) 2014-2023 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 _sourcebanschecker_included
#endinput
#endif
#define _sourcebanschecker_included
public SharedPlugin __pl_sourcebanschecker =
{
name = "sourcebans++",
file = "sbpp_checker.smx",
#if defined REQUIRE_PLUGIN
required = 1
#else
required = 0
#endif
};
#if !defined REQUIRE_PLUGIN
public void __pl_sourcebanschecker_SetNTVOptional()
{
MarkNativeAsOptional("SBPP_CheckerGetClientsBans");
MarkNativeAsOptional("SBPP_CheckerGetClientsComms");
}
#endif
/*********************************************************
* Get the number of bans of a client.
*
* @param iClient The client index of who you want to get the number of bans.
* @return The number of bans of the client, or -1 if not yet available.
*********************************************************/
native int SBPP_CheckerGetClientsBans(int iClient);
/*********************************************************
* Get the number of comms bans of a client.
*
* @param iClient The client index of who you want to get the number of comms bans.
* @return The number of comms bans of the client, or -1 if not yet available.
*********************************************************/
native int SBPP_CheckerGetClientsComms(int iClient);
/**********************************************************
* Called when the ban counts for a client are checked.
* Use the other natives to retrieve values.
*
* @param iClient The client index that was checked.
**********************************************************/
forward void SBPP_CheckerClientBanCheckPost(int iClient);