From 0cb1aabb903329955335b4d31e2d75bf6d011591 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Mon, 26 Jul 2004 15:07:25 +0000 Subject: [PATCH] added colored_menus() --- plugins/include/amxmisc.inc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/plugins/include/amxmisc.inc b/plugins/include/amxmisc.inc index 2808084f..cb7b3e3c 100755 --- a/plugins/include/amxmisc.inc +++ b/plugins/include/amxmisc.inc @@ -105,12 +105,18 @@ stock show_activity( id, const name[], {Float,_}: ... ) { } } -stock is_running(const arg[]) { +stock is_running(const mod[]) { new mod_name[32] get_modname(mod_name,31) - if (equal(arg,"cstrike")) - return (equal(mod_name,"cstrike")||equal(mod_name,"czero")) - return equal(mod_name,arg) + + return equal(mod_name,mod) +} + +stock colored_menus() { + new mod_name[32] + get_modname(mod_name,31) + + return ( equal(mod_name,"cstrike") || equal(mod_name,"czero") || equal(mod_name,"dod") ) } stock get_basedir(name[],len)