Menu, is it possible?
I want to ask is it possible to remove/hide numbers in new menu system?
|
Re: Menu, is it possible?
Explain further. Do you want to skip certain numbers? Is there a specific reason?
|
Re: Menu, is it possible?
I want to hide all numbers except 8, 9 and 0 - next/back and exit
Quote:
|
Re: Menu, is it possible?
menu_addtext() or do you actually need the buttons working?
|
Re: Menu, is it possible?
I know menu_addtext() but it's must be after menu_additem, isn't? That hidden buttons no need to work.
|
Re: Menu, is it possible?
Then just use the old menu style.
|
Re: Menu, is it possible?
It's possible to do a menu without numbers.
|
Re: Menu, is it possible?
Quote:
|
Re: Menu, is it possible?
OK, but how then create pages in old menu style?
|
Re: Menu, is it possible?
To create pages in old menu style:
First define the keys for each option: #define Keysrod (1<<0)|(1<<1)|(1<<2) etc.It depends on the number of options that you add into the menu. In public plugin_init() add this register_menucmd(register_menuid("rod"), Keysrod, "Pressedrod") register_clcmd("say /menu" , "Showrod") Then make a public called Showrod public Showrod(id) { show_menu(id, Keysrod, "Menu_title^n\w1. Option 1 ^n\w2. Option 2^n0. Exit^n", -1, "rod") } public Pressedrod(id, key) { switch (key) { case 0: { //do something. I'm option 1 } case 1: { //do something. I'm option 2 } } } At the end you cand use this block of code into your plugin: Code:
#include <amxmodx> |
| All times are GMT -4. The time now is 18:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.