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

Bind Menu Selection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cuttlas
Senior Member
Join Date: Jan 2015
Old 11-04-2023 , 03:21   Bind Menu Selection
Reply With Quote #1

Some plugins cause a menu to open, and they have several pages, for example, the "Dance" plugin, has several pages in it.

I want to bind a menu selection, for example, bind p "say /dans 9,4". then whenever I press p, it will open the dance menu, and will press 9 (which will go to the next page), then will press 4 and select a dance mode.

possible through binding or any plugin which can do it?

Last edited by Cuttlas; 11-04-2023 at 04:35.
Cuttlas is offline
Siska1
Senior Member
Join Date: Feb 2020
Location: BedRock
Old 11-04-2023 , 06:34   Re: Bind Menu Selection
Reply With Quote #2

/del
__________________

Last edited by Siska1; 11-04-2023 at 07:42. Reason: wrong
Siska1 is offline
Send a message via Skype™ to Siska1
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 11-04-2023 , 07:06   Re: Bind Menu Selection
Reply With Quote #3

Code:
bind p "say /dans 9,4"

bind p "say /dans;menuselect 9;menuselect 4;"
DJEarthQuake is offline
Cuttlas
Senior Member
Join Date: Jan 2015
Old 11-04-2023 , 07:22   Re: Bind Menu Selection
Reply With Quote #4

Quote:
Originally Posted by DJEarthQuake View Post
Code:
bind p "say /dans 9,4"

bind p "say /dans;menuselect 9;menuselect 4;"
thank you, WORKS GREAT. the menu exit code is 0.
when I use this bind p "say /dans;menuselect 9;menuselect 4;menuselect 0;" it only works till the menu selects 4, it will not exit the menu.

is there any command to exit the menu?

Last edited by Cuttlas; 11-04-2023 at 07:22.
Cuttlas is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 11-04-2023 , 10:25   Re: Bind Menu Selection
Reply With Quote #5

It's: menuselect 10, but it does not bind well. Press 0 which is slot10 or make menus that auto-close.
DJEarthQuake is offline
Cuttlas
Senior Member
Join Date: Jan 2015
Old 11-04-2023 , 10:46   Re: Bind Menu Selection
Reply With Quote #6

as you told menuselect 10 will not work
what is the code in amx compiler to close a menu by its id or name?

Last edited by Cuttlas; 11-04-2023 at 10:59.
Cuttlas is offline
Cuttlas
Senior Member
Join Date: Jan 2015
Old 11-05-2023 , 01:14   Re: Bind Menu Selection
Reply With Quote #7

this works like a charm:

bind p "say /dans;menuselect 9;menuselect 4; wait; slot10;"
Cuttlas 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 14:09.


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