More tiny bcompat stuff. admincmd is now source compatible at least

This commit is contained in:
Scott Ehlert 2006-09-13 10:58:47 +00:00
parent 87c3e1dc82
commit 6e56aed778
2 changed files with 30 additions and 0 deletions

View File

@ -32,6 +32,8 @@ Core_Natives()
register_native("get_plugincmd", "__get_plugincmd")
register_native("get_plugincvarsnum", "__get_plugincvarsnum")
register_native("get_plugincvar", "__get_plugincvar")
register_native("is_module_running", "__is_module_running")
register_native("is_plugin_running", "__is_plugin_running")
}
public __VelocityByAim(plid, num)
@ -279,3 +281,21 @@ public __get_plugincvar(plid, num)
return 0
}
public __is_module_running(plid, num)
{
static module[64]
get_string(1, module, 63)
return is_module_loaded(module)
}
public __is_plugin_running(plid, num)
{
static plugin[64]
get_string(1, plugin, 63)
return is_plugin_loaded(plugin)
}

View File

@ -296,3 +296,13 @@ stock get_plugincvarsnum(plugin[], flags=0)
return cvars_total;
}
stock is_module_running(const plugin[])
{
return is_module_loaded(plugin);
}
stock is_plugin_running(const plugin[])
{
return is_plugin_loaded(plugin);
}