AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Simple Menu Builder (https://forums.alliedmods.net/showthread.php?t=284324)

OciXCrom 02-04-2017 08:21

Re: Simple Menu Builder
 
Bugfix v2.0b @ 04.02.2017

  • Fixed a bug that prevented the menu from closing when MENU_REOPEN is enabled.

Enrory 02-04-2017 09:04

Re: Simple Menu Builder
 
So i have many plugins and i want some plugins commands in one menu. (most have a default menu)
Example:
1. Trail menu
press 1 and show the default trail menu!
Is that not possible with this plugin?

OciXCrom 02-04-2017 09:10

Re: Simple Menu Builder
 
Who said it isn't possible? That's the exact purpose of this plugin - http://i.imgur.com/0Ke8wvu.jpg
Did you fix your mistakes as I said on the previous page?

Enrory 02-04-2017 09:21

Re: Simple Menu Builder
 
I have now fix this with the [New Menu]
in default now:
;MENU_OPEN = say /menu, say_team /menu,

In the picture it shows the cvars(rtv). at me not.
sry my english is bad

http://steamcommunity.com/sharedfile.../?id=856749918

OciXCrom 02-04-2017 10:22

Re: Simple Menu Builder
 
Oh, you're using it on Half-Life. I don't know really know whether it will work properly there. Could you post the full .ini file with the changes once again to see if everything is OK?

Enrory 02-04-2017 11:09

Re: Simple Menu Builder
 
Quote:

Originally Posted by OciXCrom (Post 2492793)
Oh, you're using it on Half-Life. I don't know really know whether it will work properly there. Could you post the full .ini file with the changes once again to see if everything is OK?

yeah mybe this make a problem.
normal it disable the colours but work. (cs plugins)
I test it with , and without ,

My last test .ini looks there.

PHP Code:

[Default Settings]
;
These are the default settings for each menu created.
;
You can add certain options in [Menu Settings] if you want to change them.
;
Please note that every menu needs to have a different MENU_OPEN settingstherefore there's no default one.

MENU_TITLE = Menu
MENU_TITLE_PAGE = %newline%Page:\d
MENU_BACK = \yPrevious Page
MENU_NEXT = \yNext Page
MENU_EXIT = \rClose
;MENU_OPEN = say /menu, say_team /menu,
MENU_FLAG = 0
MENU_ALIVEONLY = 0
MENU_ITEMS_PER_PAGE = 7
MENU_REOPEN = 0
MENU_ITEM_FORMAT = %item%
MENU_PREFIX = !g[ Menu ]!n
MENU_NOACCESS = You have no access to this menu.
MENU_ALIVE = You need to be alive to use this menu.
MENU_DEAD = You need to be dead to use this menu.
MENU_SOUND =

[New Menu = menu]
[Menu Settings]
;This is the command that will open the menu.
MENU_OPEN = say /menu, say_team /menu,  

[Menu Items]
"Trails" "say trail menu"
"Glow" "say glow menu"
"Hats" "say /hats" 


OciXCrom 02-04-2017 11:24

Re: Simple Menu Builder
 
I told you to remove the comma in the end:

MENU_OPEN = say /menu, say_team /menu,

Enrory 02-04-2017 11:31

Re: Simple Menu Builder
 
Quote:

Originally Posted by Enrory (Post 2492802)
I test it with , and without ,


OciXCrom 02-04-2017 12:00

Re: Simple Menu Builder
 
Then it probably doesn't work on Half-Life. I don't have the game, so i can't test it and tell you for sure.

addons_zz 02-04-2017 12:13

Re: Simple Menu Builder
 
Quote:

Originally Posted by Enrory (Post 2492412)
Hello!
I test it on my server.

I see the Item Menus with 1,2,3,... (and Name)
I press the number and the menu is close and do nothing.
Maybe I'll forget something

This is the problem?

Enrory 02-04-2017 12:21

Re: Simple Menu Builder
 
Quote:

Originally Posted by addons_zz (Post 2492818)
This is the problem?

YEAH that is.

addons_zz 02-04-2017 13:10

Re: Simple Menu Builder
 
2 Attachment(s)
Quote:

Originally Posted by Enrory (Post 2492821)
YEAH that is.

I added a few debug statements on the this plugin version I am attaching. Can you run it on your server?
Can you install this version and the default menu on your server, and try to open the menu and choose some option?

It will create a log file called `_simple_menu_log.txt` on `addons/amxmodx/logs`, after it post your log here.
I tested it here on my computer with Counter-Strike, and it is working fine. This was my log:
Code:

L 02/04/2017 - 16:04:34: {11.256 15880 1233077 1233077} Entering on menuMain(3)
L 02/04/2017 - 16:04:34: {11.256 15876 1233082    5} ( menuMain ) id:      1
L 02/04/2017 - 16:04:34: {11.256 15876 1233086    4} ( menuMain ) iMenuId: 0
L 02/04/2017 - 16:04:34: {11.256 15876 1233100  14} ( menuMain ) iPage:  0
L 02/04/2017 - 16:04:34: {11.256 14364 1233103    3} ( menuMain ) 3. Returning PLUGIN_HANDLED.
L 02/04/2017 - 16:04:36: {12.755 16292 1234590 1487} Entering on handlerMain(3)
L 02/04/2017 - 16:04:36: {12.755 16288 1234605  15} ( handlerMain ) id:    1
L 02/04/2017 - 16:04:36: {12.755 16288 1234608    3} ( handlerMain ) iMenu: 5
L 02/04/2017 - 16:04:36: {12.755 16288 1234614    6} ( handlerMain ) iItem: 0
L 02/04/2017 - 16:04:36: {12.755 16144 1234617    3} ( handlerMain ) szMenuId: 0
L 02/04/2017 - 16:04:36: {12.755 16144 1234638  21} ( handlerMain ) szKey:    0
L 02/04/2017 - 16:04:36: {12.755 16144 1234644    6} ( handlerMain ) szUserId:
L 02/04/2017 - 16:04:36: {12.755 16144 1234650    6} ( handlerMain ) iMenuId:
L 02/04/2017 - 16:04:36: {12.755 16144 1234654    4} ( handlerMain ) iKey:
L 02/04/2017 - 16:04:36: {12.755 16144 1234679  25} ( handlerMain ) iUserId:
L 02/04/2017 - 16:04:36: {12.755 16140 1234682    3} ( handlerMain ) get_alive_access: 1
L 02/04/2017 - 16:04:36: {12.755 16132 1234690    8} ( handlerMain ) g_eSettings[0][387]: 1
L 02/04/2017 - 16:04:36: {12.755 16116 1234697    7} Entering on menuMain(3)
L 02/04/2017 - 16:04:36: {12.755 16112 1234705    8} ( menuMain ) id:      1
L 02/04/2017 - 16:04:36: {12.755 16112 1234707    2} ( menuMain ) iMenuId: 0
L 02/04/2017 - 16:04:36: {12.755 16112 1234723  16} ( menuMain ) iPage:  0
L 02/04/2017 - 16:04:36: {12.755 14600 1234728    5} ( menuMain ) 3. Returning PLUGIN_HANDLED.
L 02/04/2017 - 16:04:36: {12.755 16140 1234738  10} ( handlerMain ) 1. Returning PLUGIN_HANDLED.
L 02/04/2017 - 16:04:42: {18.315 16292 1240136 5398} Entering on handlerMain(3)
L 02/04/2017 - 16:04:42: {18.315 16288 1240141    5} ( handlerMain ) id:    1
L 02/04/2017 - 16:04:42: {18.315 16288 1240145    4} ( handlerMain ) iMenu: 5
L 02/04/2017 - 16:04:42: {18.315 16288 1240149    4} ( handlerMain ) iItem: -3
L 02/04/2017 - 16:04:42: {18.315 16292 1240155    6} ( handlerMain ) Going to @DESTROY
L 02/04/2017 - 16:04:42: {18.315 16148 1240167  12} ( handlerMain ) 2. Returning PLUGIN_HANDLED.


Enrory 02-04-2017 15:34

Re: Simple Menu Builder
 
Hey thanks addons zz for your help! Test it on my Sven coop Server [CostumMaps]

I have override the amxx and SimpleMenu.ini.
It show me the menus and Item Names with numbers.
So i have the plugin with /hats command on my server but no work.
The menu short dont show (1sec) and come back so i press the number but do nothing.
Dont show the hats menu.
I try the Leave the Server (disconnect) that works.
So it is the same problem. :(

HamletEagle 02-04-2017 15:53

Re: Simple Menu Builder
 
He wanted the debug log. The version was not supposed to fix anything, but to help fixing the issue.

Enrory 02-04-2017 16:32

Re: Simple Menu Builder
 
Quote:

Originally Posted by HamletEagle (Post 2492879)
He wanted the debug log. The version was not supposed to fix anything, but to help fixing the issue.

oh

PHP Code:

L 02/04/2017 22:37:01Log file started (file "svencoop\addons\amxmodx\logs\_simple_menu_log.txt") (game "svencoop") (amx "1.8.3-dev+5073")
L 02/04/2017 22:37:01: {72.385 15880 87127 87127
L 02/04/2017 22:37:01: {72.385 15880 87139   12Entering on menuMain(3)
L 02/04/2017 22:37:01: {72.385 15876 87150   11} ( menuMain id:      1
L 02
/04/2017 22:37:01: {72.385 15876 87160   10} ( menuMain iMenuId0
L 02
/04/2017 22:37:01: {72.385 15876 87166    6} ( menuMain iPage:   0
L 02
/04/2017 22:37:01: {72.385 14364 87175    9} ( menuMain 3. Returning PLUGIN_HANDLED.
L 02/04/2017 22:37:03: {73.611 16292 88355 1180
L 02/04/2017 22:37:03: {73.611 16292 88365   10Entering on handlerMain(3)
L 02/04/2017 22:37:03: {73.611 16288 88375   10} ( handlerMain id:    1
L 02
/04/2017 22:37:03: {73.611 16288 88382    7} ( handlerMain iMenu0
L 02
/04/2017 22:37:03: {73.611 16288 88389    7} ( handlerMain iItem1
L 02
/04/2017 22:37:03: {73.611 16144 88397    8} ( handlerMain szMenuId0
L 02
/04/2017 22:37:03: {73.611 16144 88407   10} ( handlerMain szKey:    1
L 02
/04/2017 22:37:03: {73.611 16144 88415    8} ( handlerMain szUserId
L 02/04/2017 22:37:03: {73.611 16144 88423    8} ( handlerMain iMenuId0
L 02
/04/2017 22:37:03: {73.611 16144 88431    8} ( handlerMain iKey:    1
L 02
/04/2017 22:37:03: {73.611 16144 88440    9} ( handlerMain iUserId0
L 02
/04/2017 22:37:03: {73.611 16140 88448    8} ( handlerMain get_alive_access1
L 02
/04/2017 22:37:03: {73.611 16132 88455    7} ( handlerMain g_eSettings[0][387]: 0
L 02
/04/2017 22:37:03: {73.611 16148 88463    8} ( handlerMain 2. Returning PLUGIN_HANDLED


addons_zz 02-04-2017 18:04

Re: Simple Menu Builder
 
I installed svencoop, and it working correcty or almost. On the my player console I got this:
Code:


Server tried to send invalid command:"say /rules
"Unknown command: menuselect
Server tried to send invalid command:"say /hats
"Unknown command: menuselect
Server tried to send invalid command:"say /hats
"Unknown command: menuselect
Server tried to send invalid command:"say /radio
"Unknown command: menuselect
Server tried to send invalid command:"say /rules
"Unknown command: menuselect
Server tried to send invalid command:"say /hats
"Unknown command: menuselect

This was my log file from the plugin:
Code:

L 02/04/2017 - 20:58:56: Log file started (file "svencoop\addons\amxmodx\logs\_simple_menu_log.txt") (game "svencoop") (amx "1.8.3-dev+4982")
L 02/04/2017 - 20:58:56: {23.520 15880 1090299 1090299}
L 02/04/2017 - 20:58:56: {23.520 15880 1090318  19} Entering on menuMain(3)
L 02/04/2017 - 20:58:56: {23.520 15876 1090322    4} ( menuMain ) id:      1
L 02/04/2017 - 20:58:56: {23.520 15876 1090331    9} ( menuMain ) iMenuId: 0
L 02/04/2017 - 20:58:56: {23.520 15876 1090338    7} ( menuMain ) iPage:  0
L 02/04/2017 - 20:58:56: {23.520 14364 1090345    7} ( menuMain ) 3. Returning PLUGIN_HANDLED.
L 02/04/2017 - 20:58:59: {26.117 16292 1092918 2573}
L 02/04/2017 - 20:58:59: {26.117 16292 1092922    4} Entering on handlerMain(3)
L 02/04/2017 - 20:58:59: {26.117 16288 1092931    9} ( handlerMain ) id:    1
L 02/04/2017 - 20:58:59: {26.117 16288 1092941  10} ( handlerMain ) iMenu: 0
L 02/04/2017 - 20:58:59: {26.117 16288 1092946    5} ( handlerMain ) iItem: 0
L 02/04/2017 - 20:58:59: {26.117 16144 1092951    5} ( handlerMain ) szMenuId: 0
L 02/04/2017 - 20:58:59: {26.117 16144 1092961  10} ( handlerMain ) szKey:    0
L 02/04/2017 - 20:58:59: {26.117 16144 1092968    7} ( handlerMain ) szUserId:
L 02/04/2017 - 20:58:59: {26.117 16144 1092975    7} ( handlerMain ) iMenuId: 0
L 02/04/2017 - 20:58:59: {26.117 16144 1092986  11} ( handlerMain ) iKey:    0
L 02/04/2017 - 20:58:59: {26.117 16144 1092994    8} ( handlerMain ) iUserId: 0
L 02/04/2017 - 20:58:59: {26.117 16140 1093000    6} ( handlerMain ) get_alive_access: 1
L 02/04/2017 - 20:58:59: {26.117 16132 1093010  10} ( handlerMain ) g_eSettings[0][387]: 1
L 02/04/2017 - 20:58:59: {26.117 16116 1093019    9}
L 02/04/2017 - 20:58:59: {26.117 16116 1093023    4} Entering on menuMain(3)
L 02/04/2017 - 20:58:59: {26.117 16112 1093039  16} ( menuMain ) id:      1
L 02/04/2017 - 20:58:59: {26.117 16112 1093046    7} ( menuMain ) iMenuId: 0
L 02/04/2017 - 20:58:59: {26.117 16112 1093059  13} ( menuMain ) iPage:  0
L 02/04/2017 - 20:58:59: {26.117 14600 1093064    5} ( menuMain ) 3. Returning PLUGIN_HANDLED.
L 02/04/2017 - 20:58:59: {26.117 16140 1093077  13} ( handlerMain ) 1. Returning PLUGIN_HANDLED.
L 02/04/2017 - 20:59:02: {29.888 16292 1096689 3612}
L 02/04/2017 - 20:59:02: {29.888 16292 1096694    5} Entering on handlerMain(3)
L 02/04/2017 - 20:59:02: {29.888 16288 1096702    8} ( handlerMain ) id:    1
L 02/04/2017 - 20:59:02: {29.888 16288 1096708    6} ( handlerMain ) iMenu: 0
L 02/04/2017 - 20:59:02: {29.888 16288 1096715    7} ( handlerMain ) iItem: 1
L 02/04/2017 - 20:59:02: {29.888 16144 1096723    8} ( handlerMain ) szMenuId: 0
L 02/04/2017 - 20:59:02: {29.888 16144 1096734  11} ( handlerMain ) szKey:    1
L 02/04/2017 - 20:59:03: {29.888 16144 1096745  11} ( handlerMain ) szUserId:
L 02/04/2017 - 20:59:03: {29.888 16144 1096753    8} ( handlerMain ) iMenuId: 0
L 02/04/2017 - 20:59:03: {29.888 16144 1096759    6} ( handlerMain ) iKey:    1
L 02/04/2017 - 20:59:03: {29.888 16144 1096768    9} ( handlerMain ) iUserId: 0
L 02/04/2017 - 20:59:03: {29.888 16140 1096773    5} ( handlerMain ) get_alive_access: 1
L 02/04/2017 - 20:59:03: {29.888 16132 1096788  15} ( handlerMain ) g_eSettings[0][387]: 1
L 02/04/2017 - 20:59:03: {29.888 16116 1096795    7}
L 02/04/2017 - 20:59:03: {29.888 16116 1096804    9} Entering on menuMain(3)
L 02/04/2017 - 20:59:03: {29.888 16112 1096819  15} ( menuMain ) id:      1
L 02/04/2017 - 20:59:03: {29.888 16112 1096824    5} ( menuMain ) iMenuId: 0
L 02/04/2017 - 20:59:03: {29.888 16112 1096834  10} ( menuMain ) iPage:  0
L 02/04/2017 - 20:59:03: {29.888 14600 1096838    4} ( menuMain ) 3. Returning PLUGIN_HANDLED.
L 02/04/2017 - 20:59:03: {29.888 16140 1096845    7} ( handlerMain ) 1. Returning PLUGIN_HANDLED.
L 02/04/2017 - 20:59:06: {33.581 16292 1100377 3532}
L 02/04/2017 - 20:59:06: {33.581 16292 1100381    4} Entering on handlerMain(3)
L 02/04/2017 - 20:59:06: {33.581 16288 1100386    5} ( handlerMain ) id:    1
L 02/04/2017 - 20:59:06: {33.581 16288 1100391    5} ( handlerMain ) iMenu: 0
L 02/04/2017 - 20:59:06: {33.581 16288 1100400    9} ( handlerMain ) iItem: 1
L 02/04/2017 - 20:59:06: {33.581 16144 1100418  18} ( handlerMain ) szMenuId: 0
L 02/04/2017 - 20:59:06: {33.581 16144 1100421    3} ( handlerMain ) szKey:    1
L 02/04/2017 - 20:59:06: {33.581 16144 1100428    7} ( handlerMain ) szUserId:
L 02/04/2017 - 20:59:06: {33.581 16144 1100433    5} ( handlerMain ) iMenuId: 0
L 02/04/2017 - 20:59:06: {33.581 16144 1100443  10} ( handlerMain ) iKey:    1
L 02/04/2017 - 20:59:06: {33.581 16144 1100454  11} ( handlerMain ) iUserId: 0
L 02/04/2017 - 20:59:06: {33.581 16140 1100461    7} ( handlerMain ) get_alive_access: 1
L 02/04/2017 - 20:59:06: {33.581 16132 1100469    8} ( handlerMain ) g_eSettings[0][387]: 1
L 02/04/2017 - 20:59:06: {33.581 16116 1100480  11}
L 02/04/2017 - 20:59:06: {33.581 16116 1100488    8} Entering on menuMain(3)
L 02/04/2017 - 20:59:06: {33.581 16112 1100501  13} ( menuMain ) id:      1
L 02/04/2017 - 20:59:06: {33.581 16112 1100511  10} ( menuMain ) iMenuId: 0
L 02/04/2017 - 20:59:06: {33.581 16112 1100519    8} ( menuMain ) iPage:  0
L 02/04/2017 - 20:59:06: {33.581 14600 1100527    8} ( menuMain ) 3. Returning PLUGIN_HANDLED.
L 02/04/2017 - 20:59:06: {33.581 16140 1100538  11} ( handlerMain ) 1. Returning PLUGIN_HANDLED.
L 02/04/2017 - 20:59:07: {34.481 16292 1101272  734}
L 02/04/2017 - 20:59:07: {34.481 16292 1101276    4} Entering on handlerMain(3)
L 02/04/2017 - 20:59:07: {34.481 16288 1101280    4} ( handlerMain ) id:    1
L 02/04/2017 - 20:59:07: {34.481 16288 1101286    6} ( handlerMain ) iMenu: 0
L 02/04/2017 - 20:59:07: {34.481 16288 1101295    9} ( handlerMain ) iItem: 1
L 02/04/2017 - 20:59:07: {34.481 16144 1101306  11} ( handlerMain ) szMenuId: 0
L 02/04/2017 - 20:59:07: {34.481 16144 1101309    3} ( handlerMain ) szKey:    1
L 02/04/2017 - 20:59:07: {34.481 16144 1101319  10} ( handlerMain ) szUserId:
L 02/04/2017 - 20:59:07: {34.481 16144 1101328    9} ( handlerMain ) iMenuId: 0
L 02/04/2017 - 20:59:07: {34.481 16144 1101336    8} ( handlerMain ) iKey:    1
L 02/04/2017 - 20:59:07: {34.481 16144 1101349  13} ( handlerMain ) iUserId: 0
L 02/04/2017 - 20:59:07: {34.481 16140 1101355    6} ( handlerMain ) get_alive_access: 1
L 02/04/2017 - 20:59:07: {34.481 16132 1101367  12} ( handlerMain ) g_eSettings[0][387]: 1
L 02/04/2017 - 20:59:07: {34.481 16116 1101371    4}
L 02/04/2017 - 20:59:07: {34.481 16116 1101379    8} Entering on menuMain(3)
L 02/04/2017 - 20:59:07: {34.481 16112 1101385    6} ( menuMain ) id:      1
L 02/04/2017 - 20:59:07: {34.481 16112 1101396  11} ( menuMain ) iMenuId: 0
L 02/04/2017 - 20:59:07: {34.481 16112 1101404    8} ( menuMain ) iPage:  0
L 02/04/2017 - 20:59:07: {34.481 14600 1101420  16} ( menuMain ) 3. Returning PLUGIN_HANDLED.
L 02/04/2017 - 20:59:07: {34.481 16140 1101430  10} ( handlerMain ) 1. Returning PLUGIN_HANDLED.
L 02/04/2017 - 20:59:08: {34.988 16292 1101787  357}
L 02/04/2017 - 20:59:08: {34.988 16292 1101791    4} Entering on handlerMain(3)
L 02/04/2017 - 20:59:08: {34.988 16288 1101797    6} ( handlerMain ) id:    1
L 02/04/2017 - 20:59:08: {34.988 16288 1101806    9} ( handlerMain ) iMenu: 0
L 02/04/2017 - 20:59:08: {34.988 16288 1101819  13} ( handlerMain ) iItem: 2
L 02/04/2017 - 20:59:08: {34.988 16144 1101827    8} ( handlerMain ) szMenuId: 0
L 02/04/2017 - 20:59:08: {34.988 16144 1101834    7} ( handlerMain ) szKey:    2
L 02/04/2017 - 20:59:08: {34.988 16144 1101839    5} ( handlerMain ) szUserId:
L 02/04/2017 - 20:59:08: {34.988 16144 1101854  15} ( handlerMain ) iMenuId: 0
L 02/04/2017 - 20:59:08: {34.988 16144 1101865  11} ( handlerMain ) iKey:    2
L 02/04/2017 - 20:59:08: {34.988 16144 1101881  16} ( handlerMain ) iUserId: 0
L 02/04/2017 - 20:59:08: {34.988 16140 1101886    5} ( handlerMain ) get_alive_access: 1
L 02/04/2017 - 20:59:08: {34.988 16132 1101895    9} ( handlerMain ) g_eSettings[0][387]: 1
L 02/04/2017 - 20:59:08: {34.988 16116 1101904    9}
L 02/04/2017 - 20:59:08: {34.988 16116 1101911    7} Entering on menuMain(3)
L 02/04/2017 - 20:59:08: {34.988 16112 1101919    8} ( menuMain ) id:      1
L 02/04/2017 - 20:59:08: {34.988 16112 1101929  10} ( menuMain ) iMenuId: 0
L 02/04/2017 - 20:59:08: {34.988 16112 1101937    8} ( menuMain ) iPage:  0
L 02/04/2017 - 20:59:08: {34.988 14600 1101953  16} ( menuMain ) 3. Returning PLUGIN_HANDLED.
L 02/04/2017 - 20:59:08: {34.988 16140 1101959    6} ( handlerMain ) 1. Returning PLUGIN_HANDLED.
L 02/04/2017 - 20:59:08: {35.764 16292 1102563  604}
L 02/04/2017 - 20:59:08: {35.764 16292 1102566    3} Entering on handlerMain(3)
L 02/04/2017 - 20:59:08: {35.764 16288 1102570    4} ( handlerMain ) id:    1
L 02/04/2017 - 20:59:08: {35.764 16288 1102578    8} ( handlerMain ) iMenu: 0
L 02/04/2017 - 20:59:08: {35.764 16288 1102586    8} ( handlerMain ) iItem: 3
L 02/04/2017 - 20:59:08: {35.764 16144 1102594    8} ( handlerMain ) szMenuId: 0
L 02/04/2017 - 20:59:08: {35.764 16144 1102602    8} ( handlerMain ) szKey:    3
L 02/04/2017 - 20:59:08: {35.764 16144 1102609    7} ( handlerMain ) szUserId:
L 02/04/2017 - 20:59:08: {35.764 16144 1102627  18} ( handlerMain ) iMenuId: 0
L 02/04/2017 - 20:59:08: {35.764 16144 1102634    7} ( handlerMain ) iKey:    3
L 02/04/2017 - 20:59:08: {35.764 16144 1102644  10} ( handlerMain ) iUserId: 0
L 02/04/2017 - 20:59:08: {35.764 16140 1102654  10} ( handlerMain ) get_alive_access: 1
L 02/04/2017 - 20:59:08: {35.764 16132 1102662    8} ( handlerMain ) g_eSettings[0][387]: 1
L 02/04/2017 - 20:59:08: {35.764 16116 1102677  15}
L 02/04/2017 - 20:59:08: {35.764 16116 1102686    9} Entering on menuMain(3)
L 02/04/2017 - 20:59:08: {35.764 16112 1102697  11} ( menuMain ) id:      1
L 02/04/2017 - 20:59:08: {35.764 16112 1102705    8} ( menuMain ) iMenuId: 0
L 02/04/2017 - 20:59:08: {35.764 16112 1102713    8} ( menuMain ) iPage:  0
L 02/04/2017 - 20:59:08: {35.764 14600 1102719    6} ( menuMain ) 3. Returning PLUGIN_HANDLED.
L 02/04/2017 - 20:59:08: {35.764 16140 1102731  12} ( handlerMain ) 1. Returning PLUGIN_HANDLED.
L 02/04/2017 - 20:59:09: {35.976 16292 1102776  45}
L 02/04/2017 - 20:59:09: {35.976 16292 1102778    2} Entering on handlerMain(3)
L 02/04/2017 - 20:59:09: {35.976 16288 1102784    6} ( handlerMain ) id:    1
L 02/04/2017 - 20:59:09: {35.976 16288 1102787    3} ( handlerMain ) iMenu: 0
L 02/04/2017 - 20:59:09: {35.976 16288 1102791    4} ( handlerMain ) iItem: -3
L 02/04/2017 - 20:59:09: {35.976 16292 1102798    7} ( handlerMain ) Going to @DESTROY
L 02/04/2017 - 20:59:09: {35.976 16148 1102804    6} ( handlerMain ) 2. Returning PLUGIN_HANDLED.
L 02/04/2017 - 21:00:37: {78.334 15880 1191635 88831}
L 02/04/2017 - 21:00:37: {78.334 15880 1191638    3} Entering on menuMain(3)
L 02/04/2017 - 21:00:37: {78.334 15876 1191639    1} ( menuMain ) id:      1
L 02/04/2017 - 21:00:37: {78.334 15876 1191640    1} ( menuMain ) iMenuId: 0
L 02/04/2017 - 21:00:37: {78.334 15876 1191641    1} ( menuMain ) iPage:  0
L 02/04/2017 - 21:00:37: {78.334 14364 1191643    2} ( menuMain ) 3. Returning PLUGIN_HANDLED.
L 02/04/2017 - 21:00:40: {80.910 16292 1194211 2568}
L 02/04/2017 - 21:00:40: {80.910 16292 1194213    2} Entering on handlerMain(3)
L 02/04/2017 - 21:00:40: {80.910 16288 1194214    1} ( handlerMain ) id:    1
L 02/04/2017 - 21:00:40: {80.910 16288 1194215    1} ( handlerMain ) iMenu: 0
L 02/04/2017 - 21:00:40: {80.910 16288 1194217    2} ( handlerMain ) iItem: 0
L 02/04/2017 - 21:00:40: {80.910 16144 1194219    2} ( handlerMain ) szMenuId: 0
L 02/04/2017 - 21:00:40: {80.910 16144 1194225    6} ( handlerMain ) szKey:    0
L 02/04/2017 - 21:00:40: {80.910 16144 1194238  13} ( handlerMain ) szUserId:
L 02/04/2017 - 21:00:40: {80.910 16144 1194239    1} ( handlerMain ) iMenuId: 0
L 02/04/2017 - 21:00:40: {80.910 16144 1194241    2} ( handlerMain ) iKey:    0
L 02/04/2017 - 21:00:40: {80.910 16144 1194242    1} ( handlerMain ) iUserId: 0
L 02/04/2017 - 21:00:40: {80.910 16140 1194244    2} ( handlerMain ) get_alive_access: 1
L 02/04/2017 - 21:00:40: {80.910 16132 1194245    1} ( handlerMain ) g_eSettings[0][387]: 1
L 02/04/2017 - 21:00:40: {80.910 16116 1194247    2}
L 02/04/2017 - 21:00:40: {80.910 16116 1194248    1} Entering on menuMain(3)
L 02/04/2017 - 21:00:40: {80.910 16112 1194249    1} ( menuMain ) id:      1
L 02/04/2017 - 21:00:40: {80.910 16112 1194250    1} ( menuMain ) iMenuId: 0
L 02/04/2017 - 21:00:40: {80.910 16112 1194254    4} ( menuMain ) iPage:  0
L 02/04/2017 - 21:00:40: {80.910 14600 1194258    4} ( menuMain ) 3. Returning PLUGIN_HANDLED.
L 02/04/2017 - 21:00:40: {80.910 16140 1194263    5} ( handlerMain ) 1. Returning PLUGIN_HANDLED.

On svencoop the command `say` seem to be blocked as slowhacking.

The solution to this I do not know but do not try to open menus that use the say command.
May be menus named as `amx_cool_menu` can be accessed.

Enrory 02-04-2017 18:33

Re: Simple Menu Builder
 
Quote:

Originally Posted by addons_zz (Post 2492911)

On svencoop the command `say` seem to be blocked as slowhacking.

The solution to this I do not know but do not try to open menus that use the say command.
May be menus named as `amx_cool_menu` can be accessed.

Yeah thats is.
Thanks for your big help. With the commands work it with sven coop. :)

OciXCrom 02-05-2017 08:22

Re: Simple Menu Builder
 
Good job, Valve...

You can still use it in any game without executing the "say" command.
You'll need to execute the plugin's function directly:

PHP Code:

"Trails" "dofunc(plugin_name.amxx, function_name)" 

Instead of "plugin_name.amxx", type your plugin's filename, for example "player_trail.amxx".

Instead of "function_name", you need to type the function that opens the trail menu. In order to find the correct name, you need to open the trail's plugin .sma file and find the line that registers the command. It looks like this:

PHP Code:

register_clcmd("say trail menu""some_function"

You can do the same for all other commands.

Nicnacticback 02-20-2017 15:54

Re: Simple Menu Builder
 
Awesome ! I love it working just fine for me. But i have a request, can you make it so instead of typing /menu people could press a button on there keyboard to open up the menu? I don't eant them binding anything i just want that when they press a "key" on the keyboard it shows the menu.
Thanks in advance !

OciXCrom 02-20-2017 17:50

Re: Simple Menu Builder
 
Only if that button has a command on it. For example, if you want the M button, you should assign the menu on the "chooseteam" command, assuming that all players have binded that command on that button.

Nicnacticback 02-20-2017 19:07

Re: Simple Menu Builder
 
can you please be more specific on how to do that? do i have to change anything in the .sma file? or do i need to edit something in the simplemenu.ini ??

OciXCrom 02-21-2017 09:03

Re: Simple Menu Builder
 
PHP Code:

MENU_OPEN say /menusay_team /menuamx_mymenu 

Simply change the command.

PHP Code:

MENU_OPEN chooseteam 


brlight 02-21-2017 13:19

Re: Simple Menu Builder
 
Quote:

Originally Posted by brlight (Post 2486686)
Hi thanks for sharing!
Beside making some itens only accessible by flag could you make it also only accessible by Team? Only CT or T?
Thx!

Still missing the feature you said you will add soon, would be a really nice feature.

OciXCrom 02-21-2017 13:28

Re: Simple Menu Builder
 
Yeah, you're right. :)
I keep saying soon, but I really can't find the will to do it.

addons_zz 02-21-2017 13:33

Re: Simple Menu Builder
 
Quote:

Originally Posted by Till I Collapse
'Cause sometimes you just feel tired, you feel weak
And when you feel weak you feel like you want to just give up

But you gotta search within you, you gotta find that inner strength
And just pull that shit out of you and get that motivation to not give up
And not be a quitter, no matter how bad you want to just fall flat on your face and collapse


OciXCrom 02-21-2017 13:49

Re: Simple Menu Builder
 
Hehe, nice one. :)
You're totally right, but lately I'm lacking motivation because of some things in my personal life.

addons_zz 02-21-2017 14:42

Re: Simple Menu Builder
 
So, it is not lack of motivation, but your are just figuring it out what is the most important thing for you in your life. The world is an infinite room of possibilities beyond AMXX scripting, you just need to suit it out whether AMXX scripting still playing role in your life, or whether moving on with other stuff gets you priority. Simply saying, just do AMXX scripting if you fell like and got the time for it. You seem already done a great contribution for the community, there is not need to keep pushing yourself on scripting if it not being easy for you.

OciXCrom 02-21-2017 15:10

Re: Simple Menu Builder
 
AMXX is not my main priority, of course. I script when I have some free time and I do it for fun.

Nicnacticback 02-21-2017 22:07

Re: Simple Menu Builder
 
I do want to make it when people press "m" and its working, but when it comes to choosing team it doesn't work. is there a way i can get both sides working at the same time? i put the option to choose team inside the simplemenu.ini like the following : "Choose Team" "chooseteam"

but at the same time i have MENU_OPEN = chooseteam

which is causing the team menu not to open is there a way to make it do both things?

addons_zz 02-21-2017 22:32

Re: Simple Menu Builder
 
Yes, you put the option to choose team inside the simplemenu.ini like the following : "Choose Team" "chooseteam"

Nicnacticback 02-21-2017 23:30

Re: Simple Menu Builder
 
it doesn't work, because when i do press the button it doesn't do anything
when pressed, it doesn't show the choose team menu. Maybe because i have MENU_OPEN = chooseteam is there a way to do both without issues?
thanks in advance

addons_zz 02-21-2017 23:42

Re: Simple Menu Builder
 
When you set `MENU_OPEN = chooseteam` it does not open the menu?

Nicnacticback 02-22-2017 01:03

Re: Simple Menu Builder
 
this opens the simple menu builder but doesn't open the actual chooseteam menu
In the list of menu building i put the option to orpn the menu "open choosetram menu" "choosemenu" but all it did was open the same menu again when ehat i really eant is the teame menu to open :/

brlight 02-22-2017 04:13

Re: Simple Menu Builder
 
You canīt use same commands to open menu and choose team (loop).
This way will work:

Solution for your problem:
MENU_OPEN = chooseteam

[Menu Items]
"Choose Team" "jointeam"

Nicnacticback 02-22-2017 11:09

Re: Simple Menu Builder
 
This worked thank you !

OciXCrom 02-25-2017 09:47

Re: Simple Menu Builder
 
Update v2.1 @ 25.02.2017
  • Added a MENU_TEAM option, which can be used to make the menu available for a certain team only, as well as MENU_NOTEAM - the message that will be shown if you don't have access.
  • Added an option to make items available for a certain team only (Yay, I finally did it!). Example:

    PHP Code:

    ;<Item Name> <Command> [Flag] [Team]
    "Terrorist Menu" "say /tmenu" "" "1"
    "CT Menu" "say /ctmenu" "" "2"
    "Spec Menu" "say /specmenu" "" "3"
    "CT Hats Menu" "say /hats" "b" "2" 


brlight 02-27-2017 13:29

Re: Simple Menu Builder
 
It took a while but itīs done! :-)
Thanks for adding that feature!

brlight 03-12-2017 06:01

Re: Simple Menu Builder
 
Is it possible with this plugin to do something like:

You type in chat /extra and a menu like this appears:

Extra menu
- drunk
- drug
- burn
After you selected an item from extra menu a menu will appear with all available players to use the commands associated with extra menu items.
Hopefully you understand what I mean.
If it is possible could you please do a small example how to achieve this?
Thanks in advance!

P.s.- Basically the same way that default options kick, ban from amxmodxmenu work

OciXCrom 03-12-2017 10:29

Re: Simple Menu Builder
 
PHP Code:

[New menu Extras]

[
Menu settings]
MENU_OPEN say /extra

[Menu items]
"drunk" "menu_drunk"
"drug" "menu_drug"
"burn" "menu_burn"

[New menu Drunk]

[
Menu settings]
MENU_OPEN menu_drunk

[Menu items]
#addplayers "amx_drunk #%userid%" "abc"

[New menu Drug]

[
Menu settings]
MENU_OPEN menu_drug

[Menu items]
#addplayers "amx_drug #%userid%" "abc"

[New menu Burn]

[
Menu settings]
MENU_OPEN menu_burn

[Menu items]
#addplayers "amx_burn #%userid%" "abc" 


brlight 03-12-2017 15:22

Re: Simple Menu Builder
 
Work like a charm!Thank you!

Edit: Perhaps is a easy solution or perhaps is not possible but Im trying to do so when you choose one of the options:
"drunk" "menu_drunk"
"drug" "menu_drug"
"burn" "menu_burn"

then you have the option to go back to the first page of the main menu ( say /extra)
I tried using reopen feature but doesnīt work, I guess itīs because the "menu_drunk", "menu_drug" and "menu_burn" are not submenus from [New menu = Extras]
Is it possible with the actual plugin to do this?


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

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