Signature
stock colored_menus(){ static ColoredMenus = -1; if(ColoredMenus == -1) { new const ModNames[][] = { "cstrike", "czero", "dmc", "dod", "tfc", "valve" }; new ModName[32]; 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 ColoredMenus;}
Description
Returns if the mod running on the server supports colored menus.
Notes
-
The full list of mods supporting colored menus:
Counter-Strike, Counter-Strike: Condition Zero, Deathmatch Classic,
Day of Defeat, Team Fortress Classic and Half-Life: Deathmatch.
-
Since this is a stock and compiled into the plugin, the list of
supported mods will not update and require recompilation of the plugin
if the list ever changed.
Returns
1 if colored menus are supported, 0 otherwise