mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
CZ Bots will now follow restrictions
Fixed amb222 (rebuy could get around restrictions)
This commit is contained in:
parent
2f6bfca68e
commit
580e52bd2c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user