From 580e52bd2caa73c36bdd6ed3e9e759ce91f396da Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 26 Apr 2007 19:22:23 +0000 Subject: [PATCH] CZ Bots will now follow restrictions Fixed amb222 (rebuy could get around restrictions) --- plugins/cstrike/restmenu.sma | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/plugins/cstrike/restmenu.sma b/plugins/cstrike/restmenu.sma index e5455718..143bd68f 100755 --- a/plugins/cstrike/restmenu.sma +++ b/plugins/cstrike/restmenu.sma @@ -623,6 +623,22 @@ public actionMenu(id, key) return PLUGIN_HANDLED } +public CS_InternalCommand(id, const cmd[]) +{ + new a = 0 + + do + { + if (equali(g_Aliases[g_AliasBlock[a]], cmd) || equali(g_Aliases2[g_AliasBlock[a]], cmd)) + { + client_print(id, print_center, "%s", g_Restricted) + return PLUGIN_HANDLED + } + } while (++a < g_AliasBlockNum) + + return PLUGIN_CONTINUE +} + public client_command(id) { if (g_AliasBlockNum)