New AMXX Menu Static Item
How can I add static item in player menu?
For example I make menu with 2 options slap with 0 damage and slay. Select Player: 1.name 2.name2 ... 7. name 8.Action : Slay / Slap 9.Next 0. Exit I really don't understand , is there a function which I don't know or I shall do manualy, like if (max_items - i = 1 ) add_item(slap/slay item) And please, don't say that I can send player to other menu and then select action type. I want to use this ,like old menu has. |
Re: New AMXX Menu Static Item
It's most likely possible, but I am not sure if you would want to do that, seems like it would be easier to achieve with old style menus.
I don't know if you can even make this without 1.8.3 considering menu_addblank() doesn't work properly, and if you had less than 7 players on a page you wouldn't be able to shift the action option down to the 8th position. |
Re: New AMXX Menu Static Item
Ohh... Okay... But it's not bad if my plugin uses about 6-7 menus (new system) and I add 1 old style menu?
Will it affect efficiency or cause some run time errors, or not? |
Re: New AMXX Menu Static Item
All menus are the same, it's just the API that's different between the old and new ones. They are interchangeable.
|
Re: New AMXX Menu Static Item
OK, thanks, I think I will use that instead.
And because it's on topic I have one more question I just used menu_create, additem, set prop exit and display_menu. If players are more than 10 then will it auto make 2 pages or I should do manually like in old style menu? |
Re: New AMXX Menu Static Item
It's auto.
|
Re: New AMXX Menu Static Item
OK, thanks.
|
Re: New AMXX Menu Static Item
Its simple!
On menu: PHP Code:
PHP Code:
|
Re: New AMXX Menu Static Item
That's not what static menu option means.
|
Re: New AMXX Menu Static Item
If I make translation in plugin.txt lang file for Russian language, will IT Be displayed properly with client_print and in the menu?
|
| All times are GMT -4. The time now is 18:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.