Raised This Month: $ Target: $400
 0% 

menu opition


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zombieplague
Veteran Member
Join Date: Apr 2009
Old 12-03-2010 , 08:35   menu opition
Reply With Quote #1

this code is from nade modes plugin. i was wondering if it is possible to make menu option

like in nade modes cvar.

PHP Code:
add_option_tritoggle(menuOPTION_MATERIAL_SYSTEM"Interaction system""\rOff""\ySecondary Explosions""\yHit Point System"
you can off or on

the idea is here

PHP Code:
     static Menu

     SettingsMenu
id ] = menu_create"weapons""weapons_Handler" )

     
Menu SettingsMenuid ]

     
add_option_toggleMenu"first Weapon:""M4A1""AK-47" )

     
add_option_toggleMenu"second Weapon:""Deagle""Glock" 
instead of buying the weapon. using menu to buy like if you want to buy ak-47 you have to press 2 time ?

first is M4a1 then ak-47
zombieplague is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-03-2010 , 13:44   Re: menu opition
Reply With Quote #2

You have to keep track of what is being shown in a particular menu option and then in the handler rebuild the menu with the new menu option (if they chose the "toggled" menu option.
__________________
fysiks is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 12-03-2010 , 23:19   Re: menu opition
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
You have to keep track of what is being shown in a particular menu option and then in the handler rebuild the menu with the new menu option (if they chose the "toggled" menu option.
so you mean i have to store the value ? i am new to menu, any clues ?
zombieplague 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 11:19.


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