Skip to content

Commit dff0335

Browse files
authored
chore(api): update include docs (#25)
1 parent 583db85 commit dff0335

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

addons/sourcemod/scripting/KnockbackRestrict.sp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public Plugin myinfo = {
105105
name = "KnockbackRestrict",
106106
author = "Dolly, Rushaway",
107107
description = "Adjust knockback of certain weapons for the kbanned players",
108-
version = "3.4.8",
108+
version = KR_VERSION,
109109
url = "https://github.com/srcdslab/sm-plugin-KnockbackRestrict"
110110
};
111111

addons/sourcemod/scripting/include/KnockbackRestrict.inc

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
#endif
1212
#define _KnockbackRestrict_included_
1313

14+
#define KR_V_MAJOR "3"
15+
#define KR_V_MINOR "4"
16+
#define KR_V_PATCH "9"
17+
18+
#define KR_VERSION KR_V_MAJOR..."."...KR_V_MINOR..."."...KR_V_PATCH
19+
1420
public SharedPlugin __pl_KnockbackRestrict =
1521
{
1622
name = "KnockbackRestrict",
@@ -67,7 +73,25 @@ native bool KR_ClientStatus(int client);
6773
*********************************************************/
6874
native int KR_GetClientKbansNumber(int client);
6975

70-
76+
/**
77+
* Called when a client is knockback restricted.
78+
*
79+
* @param client Client index
80+
* @param admin Admin index
81+
* @param length Ban length in minutes (0 = permanent, -1 = temporary)
82+
* @param reason Ban reason
83+
* @param kbansNumber Number of active knockback restrictions for this client
84+
* @noreturn
85+
*/
7186
forward void KR_OnClientKbanned(int client, int admin, int length, const char[] reason, int kbansNumber);
7287

88+
/**
89+
* Called when a client's knockback restriction is removed.
90+
*
91+
* @param client Client index
92+
* @param admin Admin index
93+
* @param reason Unban reason
94+
* @param kbansNumber Number of active knockback restrictions for this client
95+
* @noreturn
96+
*/
7397
forward void KR_OnClientKunbanned(int client, int admin, const char[] reason, int kbansNumber);

0 commit comments

Comments
 (0)