1.1 --- a/plugins/include/console.inc Mon Aug 05 11:36:59 2013 -0400
1.2 +++ b/plugins/include/console.inc Mon Aug 05 11:46:29 2013 -0400
1.3 @@ -938,3 +938,24 @@
1.4 */
1.5 native RemoveCommandListener(CommandListener:callback, const String:command[]="");
1.6
1.7 +/**
1.8 + * Global listener for the chat commands.
1.9 + *
1.10 + * @param client Client index.
1.11 + * @param command Command name.
1.12 + * @param sArgs Chat argument string.
1.13 + *
1.14 + * @return An Action value. Returning Plugin_Handled bypasses the game function call.
1.15 + Returning Plugin_Stop bypasses the post hook as well as the game function.
1.16 + */
1.17 +forward Action:OnClientSayCommand(client, const String:command[], const String:sArgs[]);
1.18 +
1.19 +/**
1.20 + * Global post listener for the chat commands.
1.21 + *
1.22 + * @param client Client index.
1.23 + * @param command Command name.
1.24 + * @param sArgs Chat argument string.
1.25 + *
1.26 + */
1.27 +forward OnClientSayCommand_Post(client, const String:command[], const String:sArgs[]);