Can anyone explain to me what is this for and why is it usefull?
PHP Code:
#define LIBRARY_TYRANT "zp50_class_tyrant"
#include <zp50_class_tyrant>
public plugin_init()
{
register_plugin("[ZP] Admin Commands", ZP_VERSION_STRING, "ZP Dev Team")
// Tyrant Class loaded?
if (LibraryExists(LIBRARY_TYRANT, LibType_Library))
register_concmd("zp_tyrant", "cmd_tyrant", _, "<target> - Turn someone into a Tyrant", 0)
}
public plugin_natives()
{
set_module_filter("module_filter")
set_native_filter("native_filter")
}
public module_filter(const module[])
{
if (equal(module, LIBRARY_TYRANT))
return PLUGIN_HANDLED;
return PLUGIN_CONTINUE;
}
public native_filter(const name[], index, trap)
{
if (!trap)
return PLUGIN_HANDLED;
return PLUGIN_CONTINUE;
}
__________________