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

New AMXX Menu System


Post New Thread Reply   
 
Thread Tools Display Modes
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-19-2009 , 18:35   Re: New AMXX Menu System
Reply With Quote #141

Quote:
Originally Posted by LaineN View Post
menu_setprop(menu, MPROP_EXIT, MEXIT_NEVER);
I think i tried with this but first time dont work, appear "0." in the end of the menu, but now work... well maybe i made it something wrong when i tried at first time...

Thx to much.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 08-20-2009 , 16:15   Re: New AMXX Menu System
Reply With Quote #142

How much options does this have?

Quote:
1. Option
2. Option
3. Option
4. Option
5. Option
6. Option
7. Option

8. Previous Page
9. Next Page

0. Exit

Or is 8 also an option if there is no following page?
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-21-2009 , 00:08   Re: New AMXX Menu System
Reply With Quote #143

Seven.
__________________
fysiks is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-21-2009 , 18:51   Re: New AMXX Menu System
Reply With Quote #144

Is there a tutorial or an example of doing something like this?:

Quote:
1. Option "something here"
And when i select that option the "something here" change to another something... like

Quote:
1. Option Yes

then

1. Option No
And... another question... Is posible to remove the "1."?

Quote:
1. Option
-->

Quote:
Option
Thx..
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-21-2009 , 19:37   Re: New AMXX Menu System
Reply With Quote #145

1. Yes, just format the option text with a conditional.

2.

Code:
/**
 * Adds a text line to a menu.  Only available in amxmodx 1.8.1 and above.
 *
 * @param menu			Menu resource identifier.
 * @param text			Text to add.
 * @param slot			1 (default) if the line should shift the numbering down.
 * 						0 if the line should be a visual shift only.
 * @noreturn
 * @error				Invalid menu resource.
 */
native menu_addtext(menu, const text[], slot=1);
__________________
fysiks is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 08-21-2009 , 22:13   Re: New AMXX Menu System
Reply With Quote #146

Yo! it's very late ( and i'm lookin' to a constant that makes an option in the menu disabled - you can't select it and it has grey color, i've seen this a while ago. thanks!
__________________

anakin_cstrike is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-22-2009 , 00:41   Re: New AMXX Menu System
Reply With Quote #147

@anakin_cstrike

http://forums.alliedmods.net/showthread.php?t=98762

This?

@fysiks

1- Thx i will try

2- Emm, ye i know how to use menu_addtext but.... with this u create a text not a option... I want to create an option but without the number of the option "0.", "1.", bla bla... Is posible?
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-22-2009 , 00:55   Re: New AMXX Menu System
Reply With Quote #148

Quote:
Originally Posted by Alucard^ View Post
I want to create an option but without the number of the option "0.", "1.", bla bla... Is posible?
What's the purpose. Sounds useless to me.
__________________
fysiks is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-22-2009 , 02:10   Re: New AMXX Menu System
Reply With Quote #149

@fysiks

Well, in some menus i dont like how looks the numbers after the option... but is posible?

Or maybe, is posible to change the color? (the default is red)
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-22-2009 , 02:34   Re: New AMXX Menu System
Reply With Quote #150

Sure
Code:
#define MPROP_NUMBER_COLOR    10    /* Color indicator to use for numbers (param1 = string, "\r"=default) */
__________________
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 08:22.


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