Improving Code
This commit is contained in:
parent
82cbc94f27
commit
7ced590cbc
|
@ -422,18 +422,29 @@ stock show_activity_key(const KeyWithoutName[], const KeyWithName[], const ___Ad
|
||||||
|
|
||||||
stock colored_menus()
|
stock colored_menus()
|
||||||
{
|
{
|
||||||
new const ModNames[][] = { "cstrike", "czero", "dmc", "dod", "tfc", "valve" };
|
static const ModNames[][] = { "cstrike", "czero", "dmc", "dod", "tfc", "valve" };
|
||||||
new ModName[32];
|
static ColoredMenus = -1;
|
||||||
|
|
||||||
get_modname(ModName, charsmax(ModName));
|
if (ColoredMenus == -1)
|
||||||
|
|
||||||
for (new Iterator = 0; Iterator < sizeof(ModNames); Iterator++)
|
|
||||||
{
|
{
|
||||||
if (equal(ModName, ModNames[Iterator]))
|
new ModName[32];
|
||||||
return 1;
|
get_modname(ModName, charsmax(ModName));
|
||||||
|
|
||||||
|
for (new Iterator = 0; Iterator < sizeof(ModNames); Iterator++)
|
||||||
|
{
|
||||||
|
if (equal(ModName, ModNames[Iterator]))
|
||||||
|
{
|
||||||
|
ColoredMenus = 1;
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ColoredMenus == -1)
|
||||||
|
ColoredMenus = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return ColoredMenus;
|
||||||
}
|
}
|
||||||
|
|
||||||
stock cstrike_running()
|
stock cstrike_running()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user