From 401ee3c97fd576b390c1647ee25574ec5ffa003b Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 11 Sep 2005 03:55:48 +0000 Subject: [PATCH] Added another function or something --- plugins/include/amxmodx.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/include/amxmodx.inc b/plugins/include/amxmodx.inc index b04f21a7..67e72e97 100755 --- a/plugins/include/amxmodx.inc +++ b/plugins/include/amxmodx.inc @@ -883,5 +883,15 @@ native set_module_filter(const handler[]); * You should NOT call this function inside: * - Error or module filters (native filters are safe if trap is 1) * - plugin_natives() + * Note that the plugin's filename is prepending to your message: + * [myplugin.amxx] MESSAGE */ native abort(error, const fmt[]="", {Float,_}:...); + +/** + * Checks if a specific module is loaded. This is the exact same method AMX Mod X + * uses to see if a module is required by a plugin. For example: + * module_exists("cstrike") + * module_exists("dbi") + */ +native module_exists(const logtag[]);