Update spcomp and includes to latest 1.10-fork
disable warning 241: Array-based enum structs will be removed in 1.11
This commit is contained in:
Vendored
+55
-55
@@ -35,24 +35,24 @@
|
||||
#endif
|
||||
#define _banning_included
|
||||
|
||||
#define BANFLAG_AUTO (1<<0) /**< Auto-detects whether to ban by steamid or IP */
|
||||
#define BANFLAG_IP (1<<1) /**< Always ban by IP address */
|
||||
#define BANFLAG_AUTHID (1<<2) /**< Always ban by authstring (for BanIdentity) if possible */
|
||||
#define BANFLAG_NOKICK (1<<3) /**< Does not kick the client */
|
||||
#define BANFLAG_AUTO (1<<0) /**< Auto-detects whether to ban by steamid or IP */
|
||||
#define BANFLAG_IP (1<<1) /**< Always ban by IP address */
|
||||
#define BANFLAG_AUTHID (1<<2) /**< Always ban by authstring (for BanIdentity) if possible */
|
||||
#define BANFLAG_NOKICK (1<<3) /**< Does not kick the client */
|
||||
|
||||
/**
|
||||
* Called for calls to BanClient() with a non-empty command.
|
||||
*
|
||||
* @param client Client being banned.
|
||||
* @param time Time the client is being banned for (0 = permanent).
|
||||
* @param flags One if AUTHID or IP will be enabled. If AUTO is also
|
||||
* enabled, it means Core autodetected which to use.
|
||||
* @param reason Reason passed via BanClient().
|
||||
* @param kick_message Kick message passed via BanClient().
|
||||
* @param command Command string to identify the ban source.
|
||||
* @param source Source value passed via BanClient().
|
||||
* @return Plugin_Handled to block the actual server banning.
|
||||
* Kicking will still occur.
|
||||
* @param client Client being banned.
|
||||
* @param time Time the client is being banned for (0 = permanent).
|
||||
* @param flags One if AUTHID or IP will be enabled. If AUTO is also
|
||||
* enabled, it means Core autodetected which to use.
|
||||
* @param reason Reason passed via BanClient().
|
||||
* @param kick_message Kick message passed via BanClient().
|
||||
* @param command Command string to identify the ban source.
|
||||
* @param source Source value passed via BanClient().
|
||||
* @return Plugin_Handled to block the actual server banning.
|
||||
* Kicking will still occur.
|
||||
*/
|
||||
forward Action OnBanClient(int client,
|
||||
int time,
|
||||
@@ -65,13 +65,13 @@ forward Action OnBanClient(int client,
|
||||
/**
|
||||
* Called for calls to BanIdentity() with a non-empty command.
|
||||
*
|
||||
* @param identity Identity string being banned (authstring or ip).
|
||||
* @param time Time the client is being banned for (0 = permanent).
|
||||
* @param flags Ban flags (only IP or AUTHID are valid here).
|
||||
* @param reason Reason passed via BanIdentity().
|
||||
* @param command Command string to identify the ban source.
|
||||
* @param source Source value passed via BanIdentity().
|
||||
* @return Plugin_Handled to block the actual server banning.
|
||||
* @param identity Identity string being banned (authstring or ip).
|
||||
* @param time Time the client is being banned for (0 = permanent).
|
||||
* @param flags Ban flags (only IP or AUTHID are valid here).
|
||||
* @param reason Reason passed via BanIdentity().
|
||||
* @param command Command string to identify the ban source.
|
||||
* @param source Source value passed via BanIdentity().
|
||||
* @return Plugin_Handled to block the actual server banning.
|
||||
*/
|
||||
forward Action OnBanIdentity(const char[] identity,
|
||||
int time,
|
||||
@@ -83,11 +83,11 @@ forward Action OnBanIdentity(const char[] identity,
|
||||
/**
|
||||
* Called for calls to RemoveBan() with a non-empty command.
|
||||
*
|
||||
* @param identity Identity string being banned (authstring or ip).
|
||||
* @param flags Ban flags (only IP or AUTHID are valid here).
|
||||
* @param command Command string to identify the ban source.
|
||||
* @param source Source value passed via BanIdentity().
|
||||
* @return Plugin_Handled to block the actual server banning.
|
||||
* @param identity Identity string being banned (authstring or ip).
|
||||
* @param flags Ban flags (only IP or AUTHID are valid here).
|
||||
* @param command Command string to identify the ban source.
|
||||
* @param source Source value passed via BanIdentity().
|
||||
* @return Plugin_Handled to block the actual unbanning.
|
||||
*/
|
||||
forward Action OnRemoveBan(const char[] identity,
|
||||
int flags,
|
||||
@@ -97,19 +97,19 @@ forward Action OnRemoveBan(const char[] identity,
|
||||
/**
|
||||
* Bans a client.
|
||||
*
|
||||
* @param client Client being banned.
|
||||
* @param time Time (in minutes) to ban (0 = permanent).
|
||||
* @param flags Flags for controlling the ban mechanism. If AUTHID
|
||||
* is set and no AUTHID is available, the ban will fail
|
||||
* unless AUTO is also flagged.
|
||||
* @param reason Reason to ban the client for.
|
||||
* @param kick_message Message to display to the user when kicking.
|
||||
* @param command Command string to identify the source. If this is left
|
||||
* empty, then the OnBanClient forward will not be called.
|
||||
* @param source A source value that could be interpreted as a player
|
||||
* index of any sort (not actually checked by Core).
|
||||
* @return True on success, false on failure.
|
||||
* @error Invalid client index or client not in game.
|
||||
* @param client Client being banned.
|
||||
* @param time Time (in minutes) to ban (0 = permanent).
|
||||
* @param flags Flags for controlling the ban mechanism. If AUTHID
|
||||
* is set and no AUTHID is available, the ban will fail
|
||||
* unless AUTO is also flagged.
|
||||
* @param reason Reason to ban the client for.
|
||||
* @param kick_message Message to display to the user when kicking.
|
||||
* @param command Command string to identify the source. If this is left
|
||||
* empty, then the OnBanClient forward will not be called.
|
||||
* @param source A source value that could be interpreted as a player
|
||||
* index of any sort (not actually checked by Core).
|
||||
* @return True on success, false on failure.
|
||||
* @error Invalid client index or client not in game.
|
||||
*/
|
||||
native bool BanClient(int client,
|
||||
int time,
|
||||
@@ -122,15 +122,15 @@ native bool BanClient(int client,
|
||||
/**
|
||||
* Bans an identity (either an IP address or auth string).
|
||||
*
|
||||
* @param identity String to ban (ip or authstring).
|
||||
* @param time Time to ban for (0 = permanent).
|
||||
* @param flags Flags (only IP and AUTHID are valid flags here).
|
||||
* @param reason Ban reason string.
|
||||
* @param command Command string to identify the source. If this is left
|
||||
* empty, then the OnBanIdentity forward will not be called.
|
||||
* @param source A source value that could be interpreted as a player
|
||||
* index of any sort (not actually checked by Core).
|
||||
* @return True on success, false on failure.
|
||||
* @param identity String to ban (ip or authstring).
|
||||
* @param time Time to ban for (0 = permanent).
|
||||
* @param flags Flags (only IP and AUTHID are valid flags here).
|
||||
* @param reason Ban reason string.
|
||||
* @param command Command string to identify the source. If this is left
|
||||
* empty, then the OnBanIdentity forward will not be called.
|
||||
* @param source A source value that could be interpreted as a player
|
||||
* index of any sort (not actually checked by Core).
|
||||
* @return True on success, false on failure.
|
||||
*/
|
||||
native bool BanIdentity(const char[] identity,
|
||||
int time,
|
||||
@@ -142,13 +142,13 @@ native bool BanIdentity(const char[] identity,
|
||||
/**
|
||||
* Removes a ban that was written to the server (either in memory or on disk).
|
||||
*
|
||||
* @param identity String to unban (ip or authstring).
|
||||
* @param flags Flags (only IP and AUTHID are valid flags here).
|
||||
* @param command Command string to identify the source. If this is left
|
||||
* empty, then OnRemoveBan will not be called.
|
||||
* @param source A source value that could be interpreted as a player
|
||||
* index of any sort (not actually checked by Core).
|
||||
* @return True on success, false on failure.
|
||||
* @param identity String to unban (ip or authstring).
|
||||
* @param flags Flags (only IP and AUTHID are valid flags here).
|
||||
* @param command Command string to identify the source. If this is left
|
||||
* empty, then OnRemoveBan will not be called.
|
||||
* @param source A source value that could be interpreted as a player
|
||||
* index of any sort (not actually checked by Core).
|
||||
* @return True on success, false on failure.
|
||||
*/
|
||||
native bool RemoveBan(const char[] identity,
|
||||
int flags,
|
||||
|
||||
Reference in New Issue
Block a user