pRED*
08-29-2007, 04:45
The include file for the latest version of Super Menu:
Only one stock function at the moment (I'm planning on adding some natives at some point too)
It creates a full menu for you automatically. See the include file for all the defined types and options but in short:
Player Listings (All, Alive, Dead, Team Based, Admin, Not Admin) - Can return their name, client id, steamid or userid
List of Teams (With or without the player list)
List of maps from specified file
/**
* Creates an Auto Menu
*
* @param type What type of auto menu to make.
* @param callback Callback function for the menu.
* @param modname What mod is currently running.
* @param title Text to display as the menu title.
* @param method What 'info' type (for PlayerList and Player_Team menus only).
* @param mapfile Path to the required map list file (relative to the base mod dir)
* Only needed for MapCycle menus.
* @param State Which players to add in PlayerList and Player_Team menus (bitmask)
* @return Menu Handle.
* @error Invalid Handle.
*/
stock Handle:GenerateAutoMenu(MenuType:type,MenuHan dler:callback,Mod:modname,String:title[],PlayerMethod:method = None,String:mapfile[]="mapcycle.txt",PlayerState:State = State_All)
Only one stock function at the moment (I'm planning on adding some natives at some point too)
It creates a full menu for you automatically. See the include file for all the defined types and options but in short:
Player Listings (All, Alive, Dead, Team Based, Admin, Not Admin) - Can return their name, client id, steamid or userid
List of Teams (With or without the player list)
List of maps from specified file
/**
* Creates an Auto Menu
*
* @param type What type of auto menu to make.
* @param callback Callback function for the menu.
* @param modname What mod is currently running.
* @param title Text to display as the menu title.
* @param method What 'info' type (for PlayerList and Player_Team menus only).
* @param mapfile Path to the required map list file (relative to the base mod dir)
* Only needed for MapCycle menus.
* @param State Which players to add in PlayerList and Player_Team menus (bitmask)
* @return Menu Handle.
* @error Invalid Handle.
*/
stock Handle:GenerateAutoMenu(MenuType:type,MenuHan dler:callback,Mod:modname,String:title[],PlayerMethod:method = None,String:mapfile[]="mapcycle.txt",PlayerState:State = State_All)