> > > >

colored_menus | amxmisc | AMX X Documentation

Includes

    1. Stocks
    1. Natives
    2. Forwards
    1. Natives
    2. Stocks
    1. Natives
    2. Stocks
    1. Natives
    1. Natives
    2. Stocks
    1. Natives
    1. Natives
    2. Forwards
    3. Stocks
    1. Natives
    2. Forwards
    1. Natives
    1. Natives
    1. Natives
    2. Stocks
    1. Natives
    2. Forwards
    1. Natives
    1. Natives
    2. Forwards
    1. Natives
    2. Forwards
    1. Stocks
    1. Natives
    1. Natives
    2. Stocks
    1. Stocks
    1. Stocks
    1. Natives
    1. Natives
    2. Forwards
    3. Stocks
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    2. Stocks
    1. Natives
    1. Natives
    1. Stocks
    1. Natives
    1. Natives
    1. Natives
    2. Forwards
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    2. Forwards
    1. Natives
    2. Stocks
    1. Natives
    1. Natives
    1. Natives
    2. Stocks
    1. Natives
    1. Stocks
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    2. Forwards
    3. Stocks
    1. Stocks
    1. Natives
    2. Forwards
    3. Stocks
    1. Natives
    1. Natives
    2. Forwards
    3. Stocks
    1. Natives
    1. Natives
    2. Stocks
    1. Stocks

colored_menus

Syntax
									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;
}
								
Variable Description
No arguments

Description
Returns if the mod running on the server supports colored menus.

Note
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.

Note
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.

Return
1 if colored menus are supported, 0 otherwise
> > > >