Raised This Month: $ Target: $400
 0% 

Solved Case Option depend on Cvar !!!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
counterstrike1.6
Member
Join Date: Oct 2020
Old 08-26-2022 , 03:47   Re: Case Option depend on Cvar !!!
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
If that's not the answer then you're post doesn't make much sense. You should probably better explain what you're wanting to do.
Assume that i have 3 options of selecting guns in menu and i make 3 cvars name as [M4A1 (On/Off)],[AK47 (On/Off)] & [AWP (On/Off)].

1) Get M4A1+Deagle
2) Get AK47+Deagle (Off: This Cvar to [0])
3) Get AWP+Deagle

And i off AK47 Cvars,From Next Round user should show like that

1) Get M4A1+Deagle
2) Get AWP+Deagle

Mean that AK47 is off and AWP option is 3rd now shift to 2nd mean Decrement [User will select 2 for AWP and 1 for M4A1]

Another Example:

1) Get M4A1+Deagle (Off: This Cvar to [0])
2) Get AK47+Deagle
3) Get AWP+Deagle

I make Cvar M4A1 off then user should show like this

1) Get AK47+Deagle
2) Get AWP+Deagle

User should select AK47 as 1st option and AWP as 2nd Option


Another Example:

1) Get M4A1+Deagle (Off: This Cvar to [0])
2) Get AK47+Deagle (Off: This Cvar to [0])
3) Get AWP+Deagle

I make Cvar M4A1 & AK47 off then user should show like this

1) Get AWP+Deagle

User should select AWP as 1st Option



Secondly I tried it by make AK47 Cvar but what happens when i off AK47 and menu show me like that

1) Get AK47+Deagle
2) Get AWP+Deagle

but when i press 2 its give me AK47 and press 3 AWP not giving to me [Mean Case option should be make like that if i make any cvar off the weapon it give me exact weapon to me like that Awp should given me in second option instead of third]
Attached Thumbnails
Click image for larger version

Name:	Gun menu .png
Views:	22
Size:	25.5 KB
ID:	196499  

Last edited by counterstrike1.6; 08-26-2022 at 05:39.
counterstrike1.6 is offline
 


Thread Tools
Display Modes

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 00:20.


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