Release Synapse Mini Menu/Selector Source

Rezhified

Well-Known Member
Messages
58
Points
218
Black Ops 2 Synapse GSX Quick Menu/Selector Source

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
You have to be logged in to view links Log in or register now.


2624


Source
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);
}

Credits
Me (Rezhified)
Extinct
 
Last edited:
Top