Menu help.
If i am using new amxx menu, how can I change the no.8 button to be a values.
When admin press the player's name, increase the player's health by what number is. Also, its default in the code. 1. XXX 2. XXX ... 8. Add: %s 0. Exit If you still dont know what exactly I am talking about, I talk it easily. I am using new amxx menu, and I want 1 to 7 is player's name and the 8 is a choose. Just like the ban menu, when you press it once, it will change the ban time. |
Re: Menu help.
for ~10 mins i will post the code..
|
Re: Menu help.
Quote:
|
Re: Menu help.
PHP Code:
|
Re: Menu help.
To make that successfully you would need to use the original menu style because the new menu style does pages automatically and thus requires 8, 9, and 0 for navigating the menu options.
|
Re: Menu help.
Quote:
I don't really good at menu. Thank! |
Re: Menu help.
You can look at the amx_slapmenu to see how it's done (in plmenu.sma)
|
Re: Menu help.
Why my code can not heal player's hp correctly?
Mine: Code:
set_user_health(player, (get_user_health(player) + g_menuSettings[id]) ? g_menuSettings[id] : 0)Code:
user_slap(player, (get_user_health(player) > g_menuSettings[id]) ? g_menuSettings[id] : 0) |
Re: Menu help.
I'm not sure what your trying to do, but it's probably should look like this:
PHP Code:
|
Re: Menu help.
If you just want to add the selected heatlh like you say in your first post then:
PHP Code:
|
| All times are GMT -4. The time now is 04:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.