Raised This Month: $ Target: $400
 0% 

how to do off/on in the menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 08-21-2020 , 18:19   Re: how to do off/on in the menu
Reply With Quote #2

Create a boolean which holds MAX_PLAYER + 1 cells. After that, make the menu key to remember that selection by setting the boolean true or false. After all, you need to make your menu faster and make it holding some strings, the entire MENU needs to be made using a temporary text, example:
Code:
new temp[64] formatex(temp, charsmax(temp), "\wМеню") new menu = menu_create(temp, "MenuHandler") // the others menu items needs that too...
After all this =))), you use the condition operator to check if the bool is true or false:
Code:
g_bSomeBool[index] ? "/*Bool is True*/" : "/*Bool is False*/"
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
 



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 13:45.


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