mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-26 06:45:37 +03:00
Adding New Game Modifications Due Colored Menus
Adding New Game Modifications Due Colored Menus.
This commit is contained in:
parent
e08e140c3c
commit
3615e717ca
@ -422,10 +422,20 @@ stock show_activity_key(const KeyWithoutName[], const KeyWithName[], const ___Ad
|
|||||||
|
|
||||||
stock colored_menus()
|
stock colored_menus()
|
||||||
{
|
{
|
||||||
new mod_name[32];
|
static const ModNames[][] = { "cstrike", "czero", "dmc", "dod", "tfc", "valve" };
|
||||||
get_modname(mod_name,31);
|
static const ModsCount = sizeof(ModNames);
|
||||||
|
|
||||||
return ( equal(mod_name,"cstrike") || equal(mod_name,"czero") || equal(mod_name,"dod") );
|
static ModName[32], Iterator = 0;
|
||||||
|
|
||||||
|
get_modname(ModName, 31);
|
||||||
|
|
||||||
|
for (Iterator = 0; Iterator < ModsCount; Iterator++)
|
||||||
|
{
|
||||||
|
if (equal(ModName, ModNames[Iterator]))
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
stock cstrike_running()
|
stock cstrike_running()
|
||||||
|
Loading…
Reference in New Issue
Block a user