From c294b91ca42e521c21195f48e9ec1727dbf853dc Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 10 Sep 2006 09:21:09 +0000 Subject: [PATCH] fixed up module support --- plugins/amxmod_compat/amxmod_compat.sma | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/plugins/amxmod_compat/amxmod_compat.sma b/plugins/amxmod_compat/amxmod_compat.sma index 085325b3..1f94a408 100644 --- a/plugins/amxmod_compat/amxmod_compat.sma +++ b/plugins/amxmod_compat/amxmod_compat.sma @@ -34,6 +34,7 @@ public plugin_init() public plugin_natives() { set_module_filter("Plugin_ModuleFilter") + set_native_filter("Plugin_NativeFilter") new modname[32] get_modname(modname, 31) @@ -49,7 +50,17 @@ public plugin_natives() public Plugin_ModuleFilter(const module[]) { - if (equali(module, "sqlx")) + if (equali(module, "sqlx") || equali(module, "cstrike")) + { + return PLUGIN_HANDLED + } + + return PLUGIN_CONTINUE +} + +public Plugin_NativeFilter(const name[], index, trap) +{ + if (!trap) { return PLUGIN_HANDLED }