Need some help with menu
Is possible to see the hp of players in menu?
I'm talking about this: PHP Code:
Player name [%s HP] another player [%s HP] etc [%s HP] Every time you slap some player, in the menu the hp will refresh to see the left hp |
Re: Need some help with menu
format(szName, charsmax(szName), "%s (%dhp)", szName, get_user_health(id) )
Not sure how to refresh the menu list each time you select something, though. |
Re: Need some help with menu
Quote:
well, not sure if the hp is auto refreshed, because when i slap the menu is closed i was some weeks without scripting and i forgot a lot of things :oops: |
Re: Need some help with menu
It will not auto refresh. Also when a menu item is selected, the menu is hidden by default.
And I don't see what this is being used for: Code:
|
Re: Need some help with menu
Quote:
fixed. new damage = str_to_num(szName) user_slap(tempid, damage) ps. so it's impossible to refresh the hp? |
Re: Need some help with menu
Quote:
EDIT: actually....maybe after you call menu_destroy call menu again to show it, effectively refreshing it. ;) |
Re: Need some help with menu
I know that nothing is impossible and I always think about it.
But here i'm talking about possible or not in amxx (or current version of it). |
Re: Need some help with menu
Quote:
|
Re: Need some help with menu
It can be this: (but if you are in page 2 or 3.., then isn't good...)
PHP Code:
|
Re: Need some help with menu
Like this....
PHP Code:
but you want to destroy the menu before you create an identical one. |
| All times are GMT -4. The time now is 15:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.