CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
Synapse Mini Menu/Selector Source
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Rezhified" data-source="post: 43219" data-attributes="member: 4683"><p style="text-align: center"><strong>Black Ops 2 Synapse GSX Quick Menu/Selector</strong> <strong>Source</strong></p><p></p><p>I decided to release the source to my gsx quick menu/selector because gsc/gsx is pretty much dead. This code is just for a mini menu and I would recommend to use in the source of your full menu</p><p></p><p>Join my discord if for more releases and support <a href="https://discordapp.com/invite/v7PDB8q" target="_blank">Discord - Free voice and text chat for gamers</a></p><p></p><p>[ATTACH=full]2624[/ATTACH]</p><p></p><p>Source</p><p>[spoiler]</p><p></p><p>[code]</p><p>selector()</p><p>{</p><p> /*Variables*/</p><p> selectorHuds = [];</p><p> selectorText = [];</p><p> function = [];</p><p> selectorCurs = 0;</p><p> /*Disables hud and weapons when opened*/</p><p> self disableWeapons();</p><p> self setClientUiVisibilityFlag("hud_visible", false);</p><p> </p><p> /*This is where you call your functions*/</p><p> function[1] = ::giveMenu;</p><p> function[2] = ::debugExit;</p><p> </p><p> /*This is where you add your options text*/</p><p> string = strTok( "Normal Server;Synapse Server;Exit Level", ";" );</p><p> /*Draws huds*/</p><p> for(r = 0; r < 3; r++)</p><p> {</p><p> selectorHuds[r] = self createRectangle( "CENTER", "CENTER",-280 + (r * 280), 0, 270, 100, (0.004,0.529,0.917), "white", 1, .5 );</p><p> selectorText[r] = self drawText( string[r], "objective", 2.0, "CENTER", "CENTER", -280 + (r * 280), 0, (1,1,1), .5, 2 );</p><p> selectorHuds[0].alpha = 1;</p><p> selectorText[0].alpha = 1;</p><p> }</p><p> while(!self meleeButtonPressed())</p><p> {</p><p> if( self attackButtonPressed() || self adsButtonPressed() )</p><p> {</p><p> selectorCurs += self attackButtonPressed();</p><p> selectorCurs -= self adsButtonPressed();</p><p> </p><p> if( selectorCurs > 2 ) selectorCurs = 0;</p><p> if( selectorCurs < 0) selectorCurs = 2;</p><p> </p><p> for(r = 0; r < 3; r++)</p><p> {</p><p> selectorHuds[r].alpha = .5;</p><p> selectorText[r].alpha = .5;</p><p> if(selectorCurs == r)</p><p> {</p><p> selectorHuds[r].alpha = 1;</p><p> selectorText[r].alpha = 1;</p><p> }</p><p> }</p><p> wait .13;</p><p> }</p><p> if(self useButtonPressed())</p><p> {</p><p> self thread [[function[selectorCurs] ]]();</p><p> break;</p><p> }</p><p> wait .05;</p><p> }</p><p> /*Destroys huds*/</p><p> for(r = 0; r < 3; r++)</p><p> {</p><p> selectorHuds[r] destroy();</p><p> selectorText[r] destroy();</p><p> }</p><p> /*Enables hud and weapons when closed*/</p><p> self enableWeapons();</p><p> self setClientUiVisibilityFlag("hud_visible", true);</p><p>}</p><p></p><p>[/code]</p><p></p><p>[/spoiler]</p><p></p><p>Credits</p><p>[spoiler]</p><p>Me (Rezhified)</p><p>Extinct</p><p>[/spoiler]</p></blockquote><p></p>
[QUOTE="Rezhified, post: 43219, member: 4683"] [CENTER][B]Black Ops 2 Synapse GSX Quick Menu/Selector[/B] [B]Source[/B][/CENTER] I decided to release the source to my gsx quick menu/selector because gsc/gsx is pretty much dead. This code is just for a mini menu and I would recommend to use in the source of your full menu Join my discord if for more releases and support [URL='https://discordapp.com/invite/v7PDB8q']Discord - Free voice and text chat for gamers[/URL] [ATTACH type="full" alt="2624"]2624[/ATTACH] Source [spoiler] [code] selector() { /*Variables*/ selectorHuds = []; selectorText = []; function = []; selectorCurs = 0; /*Disables hud and weapons when opened*/ self disableWeapons(); self setClientUiVisibilityFlag("hud_visible", false); /*This is where you call your functions*/ function[1] = ::giveMenu; function[2] = ::debugExit; /*This is where you add your options text*/ string = strTok( "Normal Server;Synapse Server;Exit Level", ";" ); /*Draws huds*/ for(r = 0; r < 3; r++) { selectorHuds[r] = self createRectangle( "CENTER", "CENTER",-280 + (r * 280), 0, 270, 100, (0.004,0.529,0.917), "white", 1, .5 ); selectorText[r] = self drawText( string[r], "objective", 2.0, "CENTER", "CENTER", -280 + (r * 280), 0, (1,1,1), .5, 2 ); selectorHuds[0].alpha = 1; selectorText[0].alpha = 1; } while(!self meleeButtonPressed()) { if( self attackButtonPressed() || self adsButtonPressed() ) { selectorCurs += self attackButtonPressed(); selectorCurs -= self adsButtonPressed(); if( selectorCurs > 2 ) selectorCurs = 0; if( selectorCurs < 0) selectorCurs = 2; for(r = 0; r < 3; r++) { selectorHuds[r].alpha = .5; selectorText[r].alpha = .5; if(selectorCurs == r) { selectorHuds[r].alpha = 1; selectorText[r].alpha = 1; } } wait .13; } if(self useButtonPressed()) { self thread [[function[selectorCurs] ]](); break; } wait .05; } /*Destroys huds*/ for(r = 0; r < 3; r++) { selectorHuds[r] destroy(); selectorText[r] destroy(); } /*Enables hud and weapons when closed*/ self enableWeapons(); self setClientUiVisibilityFlag("hud_visible", true); } [/code] [/spoiler] Credits [spoiler] Me (Rezhified) Extinct [/spoiler] [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
Synapse Mini Menu/Selector Source
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top