CZ Bots will now follow restrictions

Fixed amb222 (rebuy could get around restrictions)
This commit is contained in:
David Anderson 2007-04-26 19:22:23 +00:00
parent 2f6bfca68e
commit 580e52bd2c

View File

@ -623,6 +623,22 @@ public actionMenu(id, key)
return PLUGIN_HANDLED 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) public client_command(id)
{ {
if (g_AliasBlockNum) if (g_AliasBlockNum)