From ca0fdd7fdce1a45eabbeb9c164270ef3f9a56caa Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Fri, 27 Feb 2004 11:15:13 +0000 Subject: [PATCH] added declarations for natives: is_plugin_loaded is_module_loaded get_modulesnum get_module --- plugins/include/amxmod.inc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/plugins/include/amxmod.inc b/plugins/include/amxmod.inc index 1e4bd4fe..f3e3c121 100755 --- a/plugins/include/amxmod.inc +++ b/plugins/include/amxmod.inc @@ -558,4 +558,17 @@ native set_xvar_num( id, value = 0 ); /* Sets a float value of a public variable. Id is a value * returned by get_xvar_id(...) native. */ -native set_xvar_float( id, Float:value = 0.0 ); \ No newline at end of file +native set_xvar_float( id, Float:value = 0.0 ); + +/* Checks whether a module is loaded. If it is, its index is returned. If not, the return value is < 0. */ +native is_module_loaded(const name[]); + +/* Checks whether a plugin is loaded. If it is, its index is returned. If not, the return value is < 0. */ +native is_plugin_loaded(const name[]); + +/* Returns the number of currently loaded modules */ +native get_modulesnum(); + +/* Gets info about a module. + Return value: -1 on error, id otherwise */ +native get_module(id, name[], nameLen, author[], authorLen, version[], versionLen); \ No newline at end of file