From 6d74c31597bc5cb07d719c32ddcf54131766cc72 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Tue, 27 Jul 2004 16:42:59 +0000 Subject: [PATCH] added cstrike_running --- plugins/include/amxmisc.inc | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/plugins/include/amxmisc.inc b/plugins/include/amxmisc.inc index cb7b3e3c..59dbd9d8 100755 --- a/plugins/include/amxmisc.inc +++ b/plugins/include/amxmisc.inc @@ -105,13 +105,6 @@ stock show_activity( id, const name[], {Float,_}: ... ) { } } -stock is_running(const mod[]) { - new mod_name[32] - get_modname(mod_name,31) - - return equal(mod_name,mod) -} - stock colored_menus() { new mod_name[32] get_modname(mod_name,31) @@ -119,6 +112,20 @@ stock colored_menus() { return ( equal(mod_name,"cstrike") || equal(mod_name,"czero") || equal(mod_name,"dod") ) } +stock cstrike_running() { + new mod_name[32] + get_modname(mod_name,31) + + return ( equal(mod_name,"cstrike") || equal(mod_name,"czero") || equal(mod_name,"csv15") ) +} + +stock is_running(const mod[]) { + new mod_name[32] + get_modname(mod_name,31) + + return equal(mod_name,mod) +} + stock get_basedir(name[],len) return get_localinfo("amxx_basedir",name,len)