Raised This Month: $51 Target: $400
 12% 

[INCLUDE] Super Menu Include


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pRED*
Join Date: Dec 2006
Old 08-29-2007 , 04:45   [INCLUDE] Super Menu Include
Reply With Quote #1

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


PHP Code:
/**
 *     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,MenuHandler:callback,Mod:modname,String:title[],PlayerMethod:method None,String:mapfile[]="mapcycle.txt",PlayerState:State State_All
Attached Files
File Type: inc supermenu.inc (5.1 KB, 288 views)
pRED* is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 08-29-2007 , 10:24   Re: [INCLUDE] Super Menu Include
Reply With Quote #2

Ok... uh..

How do we check if supermenu is loaded on the server?
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
pRED*
Join Date: Dec 2006
Old 08-29-2007 , 17:10   Re: [INCLUDE] Super Menu Include
Reply With Quote #3

You don't need to be running supermenu to use the function. It's just a stock to make writing common automatic menus (like player listings, team lists, maplist etc) way easier.
pRED* is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode