From 2f6bfca68eb941438c75213024df291059004605 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 26 Apr 2007 19:21:11 +0000 Subject: [PATCH] added CS hook to catch internal bot commands and rebuy commands for players --- plugins/include/cstrike.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/include/cstrike.inc b/plugins/include/cstrike.inc index 9d671dd1..1b59cc64 100755 --- a/plugins/include/cstrike.inc +++ b/plugins/include/cstrike.inc @@ -331,3 +331,14 @@ native cs_set_hostage_nextuse(index, Float:value); native Float:cs_get_c4_explode_time(index); native cs_set_c4_explode_time(index, Float:value); + +/** + * Called when CS internally fires a command to a player. It does this for a few + * functions, most notably rebuy/autobuy functionality. This is also used to pass + * commands to CZ bots internally. + * + * @param id Client index. + * @param cmd Command string. + * @return PLUGIN_HANDLED to block, PLUGIN_CONTINUE for normal operation. + */ +forward CS_InternalCommand(id, const cmd[]);