plugins/include/sourcemod.inc
changeset 1925 61d7a244b641
parent 1914 0751a6430f15
child 1947 e73a1e51833b
     1.1 --- a/plugins/include/sourcemod.inc	Wed Mar 12 02:13:08 2008 +0000
     1.2 +++ b/plugins/include/sourcemod.inc	Wed Mar 12 03:33:52 2008 +0000
     1.3 @@ -505,6 +505,32 @@
     1.4   */
     1.5  native SetMapListCompatBind(const String:name[], const String:file[]);
     1.6  
     1.7 +/**
     1.8 + * Called when a client has sent chat text.  This must return either true or 
     1.9 + * false to indicate that a client is or is not spamming the server.
    1.10 + *
    1.11 + * The return value is a hint only.  Core or another plugin may decide 
    1.12 + * otherwise.
    1.13 + *
    1.14 + * @param client		Client index.  The server (0) will never be passed.
    1.15 + * @return				True if client is spamming the server, false otherwise.
    1.16 + */
    1.17 +forward bool:OnClientFloodCheck(client);
    1.18 +
    1.19 +/**
    1.20 + * Called after a client's flood check has been computed.  This can be used 
    1.21 + * by antiflood algorithms to decay/increase flooding weights.
    1.22 + *
    1.23 + * Since the result from "OnClientFloodCheck" isn't guaranteed to be the 
    1.24 + * final result, it is generally a good idea to use this to play with other 
    1.25 + * algorithms nicely.
    1.26 + *
    1.27 + * @param client		Client index.  The server (0) will never be passed.
    1.28 + * @param blocked		True if client flooded last "say", false otherwise.
    1.29 + * @noreturn
    1.30 + */
    1.31 +forward OnClientFloodResult(client, bool:blocked);
    1.32 +
    1.33  #include <helpers>
    1.34  #include <entity>
    1.35  #include <entity_prop_stocks>