Raised This Month: $75 Target: $400
 18% 

Simple Menu Builder


Post New Thread Reply   
 
Thread Tools Display Modes
DJEarthQuake
Senior Member
Join Date: Jan 2014
Location: Midwest
Old 07-06-2019 , 15:08   Re: Simple Menu Builder
Reply With Quote #121

These 2 parts are exceptional.
Quote:
You can also make some menus or menu items appear on specific maps only. Use - mapname - for a specific map, - map_* - for map prefix and -#all - to use all maps again.
You can even execute a function from another plugin. You can do this by using do.func(plugin_name.amxx, function_name). Please note that you should use functions that have only one parameter, and that parameter should be the player's id.
Alias and bind is all some use while others prefer menu. The sound is a nice touch.
__________________
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty a beauty cold and austere, like that of sculpture..." -Bertrand Russell
DJEarthQuake is offline
RBE sLayeR
Junior Member
Join Date: Jul 2019
Old 07-27-2019 , 15:34   Re: Simple Menu Builder
Reply With Quote #122

How can i make a submenu with a bunch of other commands ?
For example I want to make a submenu for trails
example title trail menu
then command
"say trail red"
"say trail green" etc etc ...

Last edited by RBE sLayeR; 07-27-2019 at 15:36.
RBE sLayeR is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-27-2019 , 17:22   Re: Simple Menu Builder
Reply With Quote #123

You can use the command that opens the menu in order to make a submenu, then enter the trail commands in said submenu. Here's an example:

PHP Code:
[New Menu Main Menu]

[
Menu Settings]

MENU_OPEN say /mainmenu

[Menu Items]

"Open Submenu" "say /submenu"

[New Menu Submenu]

[
Menu Settings]

MENU_OPEN say /submenu

[Menu Items]

"Red Trail" "say trail red" 
__________________

Last edited by OciXCrom; 07-27-2019 at 17:23.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Undercloacked
Member
Join Date: Jun 2012
Old 08-07-2019 , 07:22   Re: Simple Menu Builder
Reply With Quote #124

Thank you for this, great job.
__________________
Undercloacked is offline
Reply


Thread Tools
Display Modes

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 17:09.


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