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(menu, OPTION_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 = SettingsMenu[ id ]
add_option_toggle( Menu, "first Weapon:", "M4A1", "AK-47" )
add_option_toggle( Menu, "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