Raised This Month: $ Target: $400
 0% 

Menu without exit option


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
benamo6
Veteran Member
Join Date: Aug 2008
Location: NeverLand
Old 03-02-2010 , 17:20   Menu without exit option
Reply With Quote #1

How do I make a menu without an exit option?
__________________
Please help me with this Thread
I am 70% addicted to Counterstrike. What about you?
Ill make any spanish translation of a plugin. Just ask for it
benamo6 is offline
Send a message via MSN to benamo6
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-02-2010 , 17:28   Re: Menu without exit option
Reply With Quote #2

MPROP_PERPAGE -> 0
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
benamo6
Veteran Member
Join Date: Aug 2008
Location: NeverLand
Old 03-02-2010 , 17:33   Re: Menu without exit option
Reply With Quote #3

mmm But where should I set that PROP and how?
__________________
Please help me with this Thread
I am 70% addicted to Counterstrike. What about you?
Ill make any spanish translation of a plugin. Just ask for it

Last edited by benamo6; 03-02-2010 at 17:37.
benamo6 is offline
Send a message via MSN to benamo6
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-02-2010 , 17:39   Re: Menu without exit option
Reply With Quote #4

https://forums.alliedmods.net/showth...46364#newmenus
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`
benamo6
Veteran Member
Join Date: Aug 2008
Location: NeverLand
Old 03-02-2010 , 17:54   Re: Menu without exit option
Reply With Quote #5

Is this okay?
menu_setprop(menu, MPROP_PERPAGE , 0);
__________________
Please help me with this Thread
I am 70% addicted to Counterstrike. What about you?
Ill make any spanish translation of a plugin. Just ask for it
benamo6 is offline
Send a message via MSN to benamo6
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-02-2010 , 19:21   Re: Menu without exit option
Reply With Quote #6

Straight from Emp's link;
PHP Code:
#define MEXIT_ALL      1    /* Menu will have an exit option (default)*/
#define MEXIT_NEVER  -1      /* Menu will not have an exit option */

#define MPROP_PERPAGE   1    /* Number of items per page (param1 = number, 0=no paginating, 7=default) */
#define MPROP_BACKNAME  2  /* Name of the back button (param1 = string) */
#define MPROP_NEXTNAME  3  /* Name of the next button (param1 = string) */
#define MPROP_EXITNAME  4  /* Name of the exit button (param1 = string) */
#define MPROP_TITLE  5        /* Menu title text (param1 = string) */
#define MPROP_EXIT    6  /* Exit functionality (param1 = number, see MEXIT constants) */
#define MPROP_NOCOLORS  8  /* Sets whether colors are not auto (param1 = number, 0=default) */
#define MPROP_NUMBER_COLOR  10    /* Color indicator to use for numbers (param1 = string, "\r"=default) */ 
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 03-03-2010 , 08:08   Re: Menu without exit option
Reply With Quote #7

Code:
menu_setprop(Menu, MPROP_EXIT, MEXIT_NEVER);
__________________
hleV 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:45.


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