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

New AMXX Menu System


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-25-2009 , 19:20   Re: New AMXX Menu System
Reply With Quote #91

If player didn't press an item on the menu, then do:
client_cmd(client, "slot1");
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
hnorgist
Junior Member
Join Date: Feb 2009
Location: Russia, Vladivostok
Old 04-25-2009 , 20:15   Re: New AMXX Menu System
Reply With Quote #92

yes.. good idea =)
__________________
[rus] Дальневосточные кстрайкеры настолько суровы, что рождаются вместе с девайсами и минусуют во время перезарядки
hnorgist is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-26-2009 , 00:34   Re: New AMXX Menu System
Reply With Quote #93

Quote:
Originally Posted by chungkiman View Post
for example, if i want to adjust the volume of the mic
in the menu, there is a option like that

Volume of Mic 100\50\10\0

you can choose the volume by the way you want.

how to do it - -?
Change it in Options.

Quote:
Originally Posted by hnorgist View Post
Can't understand if it is possible to destroy menu hud by plugin. When vote stops by timer (some player didn't vote and still have menu on screen), killing the menu doesn't clean player's hud.. Is it really impossible to do?.. description says so:
Code:
/**
 * Destroys a menu.  Player menus will be cancelled (although may still linger on the HUD), and future attempts to access the menu resource will result in an error.
...
 */
native menu_destroy(menu);
I would use classic menus. (Oops, didn't see the next page when I posted)
__________________
fysiks is offline
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 05-16-2009 , 16:36   Re: New AMXX Menu System
Reply With Quote #94

Is it possible to check like an if statement if the menu will be enabled (white) or disabled (grey)?

Like:
PHP Code:
menu_additem(menu"Alive""1"is_user_alive); 
That I want to do with that menu is that the menu will be enabled if player is alive and disable if dead.
__________________
Bollnas Team - HideNSeek

See all of Bollnas Team's HideNSeek
servers at
http://bollnasteam.se/!

LaineN is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-16-2009 , 16:49   Re: New AMXX Menu System
Reply With Quote #95

Use a callback.

Code:
ShowMenu(client) {     new menu = menu_create("Alive Menu", "MenuHandle");         new callback = menu_makecallback("MenuCallback");         menu_additem(menu, "Item 1", "1", _, callback);         menu_display(client, menu); } public MenuCallback(client, menu, item) {     new _access, info[3], callback;     menu_item_getinfo(menu, item, _access, info, 2, _, _, callback);         if( str_to_num(info) == 1 )     {         // item 1         return is_user_alive(client) ? ITEM_ENABLED : ITEM_DISABLED;     }         return ITEM_ENABLED; } public MenuHandle(client, menu, item) {     if( item == MENU_EXIT )     {         menu_destroy(menu);         return;     }         new _access, info[3], callback;     menu_item_getinfo(menu, item, _access, info, 2, _, _, callback);     menu_destroy(menu);         if( str_to_num(info) == 1 )     {         // player is alive and chose item #1     } }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Old 05-16-2009, 18:26
LaineN
This message has been deleted by LaineN.
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 05-17-2009 , 14:57   Re: New AMXX Menu System
Reply With Quote #96

Is it possible to check if a player has a specific menu open?
__________________
Bollnas Team - HideNSeek

See all of Bollnas Team's HideNSeek
servers at
http://bollnasteam.se/!

LaineN is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 05-17-2009 , 15:10   Re: New AMXX Menu System
Reply With Quote #97

Quote:
Originally Posted by LaineN View Post
Is it possible to check if a player has a specific menu open?
Yes it is, with native player_menu_info. If you want to know how to use it, you can do the search which you should have done before.
SnoW is offline
Send a message via MSN to SnoW
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 05-21-2009 , 11:46   Re: New AMXX Menu System
Reply With Quote #98

Off-topic:
Exolent, how are you doing your code tags?
__________________
Bollnas Team - HideNSeek

See all of Bollnas Team's HideNSeek
servers at
http://bollnasteam.se/!

LaineN is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-21-2009 , 12:04   Re: New AMXX Menu System
Reply With Quote #99

[pawn]
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 05-22-2009 , 06:30   Re: New AMXX Menu System
Reply With Quote #100

Quote:
Originally Posted by Emp` View Post
[pawn] hacks
__________________
Still...lovin' . Connor noob! Hello
Alka 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 21:45.


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