Question can somebody tell me whats wrong with this?

JayCoder

Insane-Known Member
Staff member
Messages
347
Points
478
PHP:
/*
Impossible With Out CabCon <3 Love Him Alway's Helping Me Alway's, Also His Raw He Is Giving Out Helps All The Way

   ___         _                                      _______                  ___              _          
 .'   \   ___  \ ___    ___    __.  , __             '   /      ___  ,    .  .'   \   __.    ___/   ___  .___
 |       /   ` |/   \ .'   ` .'   \ |'  `.               |     /   ` |    `  |      .'   \  /   | .'   ` /   \
 |      |    | |    ` |      |    | |    |               |    |    | |    |  |      |    | ,'   | |----' |   '
  `.__, `.__/| `___,'  `._.'  `._.' /    |            `--/    `.__/|  `---|.  `.__,  `._.' `___,' `.___, /
                                                                      \___/                     `          
                                                                   
 .___           .    .           _              .
 /   `    ___   |   _/_     ___  \ ___    __.  _/_
 |    | .'   `  |    |     /   ` |/   \ .'   \  |
 |    | |----'  |    |    |    | |    ` |    |  |
 /---/  `.___, /\__  \__/ `.__/| `___,'  `._.'  \__/                                                                  
Version: 1.0.0.0
File Size Currently: (491-600)
Find More Script's At CabconModding.Com
If Your Needing Help Contact Me On
CabCon: JayCoder
Skype: juggloswag
Youtube: JayCoder

Menu Will Be Here Soon :D

More Credits: Yep

Deltabot - Help fix alot of the code up
CabCon - Help Me By Giving a menu source
JayCoder - building menu and scripts
Jᴏᴋᴇʀ - Tones Of Testing
*/
#using scripts\codescripts\struct;
#using scripts\shared\callbacks_shared;
#using scripts\shared\system_shared;
#using scripts\mp\_load;
#using scripts\mp\_scoreevents;
#insert scripts\shared\shared.gsh;
#using scripts\mp\gametypes\_hud_message;
#using scripts\shared\hud_message_shared;
#using scripts\shared\rank_shared;
#using scripts\shared\system_shared;
#using scripts\mp\gametypes\_globallogic;
#using scripts\mp\gametypes\_spectating;

#precache( "fx", "_t6/bio/player/fx_footstep_dust" );
#precache( "fx", "_t6/bio/player/fx_footstep_sand" );
#precache( "fx", "_t6/bio/player/fx_footstep_mud" );
#precache( "fx", "_t6/bio/player/fx_footstep_water" );

#namespace clientids;
REGISTER_SYSTEM( "clientids", &MainInit, undefined )

function MainInit()
{
    callback::on_start_gametype( &initloader );
    callback::on_connect( &OPC );
    callback::on_spawned( &OPS );
}

function initloader()
{
    if(!(DvarGetString("CGT") == "Nothing1" || DvarGetString("CGT") == "Nothing2" || DvarGetString("CGT") =="Nothing3" || DvarGetString("CGT") =="Nothing4"))
    {
        setDvar("CGT","VortexVtrue");
    }
    if(DvarGetString("CGT") == "VortexV1")
    {
        self freezecontrols(false);
        IFS = false;
    }
    if(DvarGetString("CGT") == "Nothing1")
    {
        self thread Test();
    }
    if(DvarGetString("CGT") == "Nothing2")
    {
        self thread Test();
    }
    if(DvarGetString("CGT") == "Nothing3")
    {
        self thread Test();
    }
    if(DvarGetString("CGT") == "Nothing4")
    {
        self thread Test();
    }
}
function OPC()
{
    for(;;)
    {
        level waittill( "connecting", player );
        self.clientid = matchRecordNewPlayer( self );
        if ( !isdefined( self.clientid ) || self.clientid == -1 )
        {
            self.clientid = level.clientid;
            level.clientid++;      
        }
        level.clientid = 0;
        player.L1 = false;
        player.L2 = false;
        player.L3 = false;
        player.L4 = false;
        player.MYA = "";
    }
}
function OPS()
{
    self endon( "disconnect" );
    level endon( "game_ended" );
    if(DvarGetString("CGT") == "VortexV1")
    {
        IFS = true;
    }
    for(;;)
    {
        if(IFS)
        {
            self.InfoboxText = hud::createFontString( "objective", 1.1);
            self.InfoboxText hud::setPoint("LEFT", "TOP", -190, 60);
            self.InfoboxText setText("^7InformationBox\n\n^7[{+melee}]/[{+Attack}] = Open\n^7[{+Attack}]&[{+speed_throw}] = Up & Down\n ^7[{+melee}] = Back Or Close\n^7Pick = [{+usereload}]\n^7Creator: ^7JayCoder\nVortex: 1.0.0.0\nJoin: SMT\nYT: JayCoder");
            self.InfoboxText.alpha = 0;
            self.InfoboxText.foreground = true;
            self.InfoboxText.archived = false;
            if(self isHost())
            {
                if(!isDefined(self.Vortex["active"]))
                {
                    self freezecontrols(false);
                    self.L1 = true;
                    self.L2 = true;
                    self.L3 = true;
                    self.L4 = true;
                    self.MYA = "^1Host";
                    self thread IMSBB();
                    self thread IMSBtrue();
                    self.Vortex["active"] = true;
                    self iprintln("^1O^7pen ^1M^7enu [{+melee}] ^1& ^7[{+Attack}] ^1V^7ortex ^1M^7enu ^1B^7ase");
                    self iprintln("^F^1C^7reated ^1B^7y: ^1J^7ay^1C^7oder");
                }
            }
            else if ( IS_TRUE(self.L1 ) )
            {
                if(!isDefined(self.Vortex["active"]))
                {
                    self freezecontrols(false);
                    self.L1 = true;
                    self.L2 = true;
                    self.L3 = true;
                    self.L4 = true;
                    self.MYA = "Co-Host";
                    self thread IMSBB();
                    self thread IMSBtrue();
                    self.Vortex["active"] = true;
                    self iprintln("^1O^7pen ^1M^7enu [{+melee}] ^1& ^7[{+Attack}] ^1V^7ortex ^1M^7enu ^1B^7ase");
                    self iprintln("^F^1C^7reated ^1B^7y: ^1J^7ay^1C^7oder");
                }
            }
            else if ( IS_TRUE(self.L2 ) )
            {
                if(!isDefined(self.Vortex["active"]))
                {
                    self freezecontrols(false);
                    self.L1 = true;
                    self.L2 = true;
                    self.L3 = true;
                    self.L4 = false;
                    self.MYA = "Admin";
                    self thread IMSBB();
                    self thread IMSBtrue();
                    self.Vortex["active"] = true;
                    self iprintln("^1O^7pen ^1M^7enu [{+melee}] ^1& ^7[{+Attack}] ^1V^7ortex ^1M^7enu ^1B^7ase");
                    self iprintln("^F^1C^7reated ^1B^7y: ^1J^7ay^1C^7oder");
                }
            }
            else if ( IS_TRUE(self.L3 ) )
            {
                if(!isDefined(self.Vortex["active"]))
                {
                    self freezecontrols(false);
                    self.L1 = true;
                    self.L2 = true;
                    self.L3 = false;
                    self.L4 = false;
                    self.MYA = "VIP";
                    self thread IMSBB();
                    self thread IMSBtrue();
                    self.Vortex["active"] = true;
                    self iprintln("^1O^7pen ^1M^7enu [{+melee}] ^1& ^7[{+Attack}] ^1V^7ortex ^1M^7enu ^1B^7ase");
                    self iprintln("^F^1C^7reated ^1B^7y: ^1J^7ay^1C^7oder");
                }
            }
            else if ( IS_TRUE( self.L4 ) )
            {
                if(!isDefined(self.Vortex["active"]))
                {
                    self freezecontrols(false);
                    self.L1 = true;
                    self.L2 = false;
                    self.L3 = false;
                    self.L4 = false;
                    self.MYA = "Verified";
                    self thread IMSBB();
                    self thread IMSBtrue();
                    self.Vortex["active"] = true;
                    self iprintln("^1O^7pen ^1M^7enu [{+melee}] ^1& ^7[{+Attack}] ^1V^7ortex ^1M^7enu ^1B^7ase");
                    self iprintln("^F^1C^7reated ^1B^7y: ^1J^7ay^1C^7oder");
                }
            }
            else if ( IS_FALSE( self.L1 ) )
            {
                self.MYA = "";
            }
        }
    }
}
function IMSBB()
{
    self.GameMods = [];
    self.HudMods = [];
    self.HudText = [];
    self.MovingArray = [];
    self.JayCoder = [];
    self.Menu.Vortex = [];
}
function IMSBtrue()
{
    self endon("disconnect");
    self endon("death");
    self.MIO = false;
    self.Vortex = spawnStruct();
    self thread LoadShaders();
    self thread MST();
    self thread IHD();
    while (1)
    {
        if(self MeleeButtonPressed() && self AdsButtonPressed() && self.MIO == false)
        {
            self MenuIsOpening();
            self ML("Vortex Base");
            wait .5;
        }
        else if(self MeleeButtonPressed() && self.MIO == true)
        {
            if(isDefined(self.Vortex.ScriptMenu["MenuPrevious"][self.Vortex.ScriptMenu["MRV"]]))
            {
                self.Vortex.ScriptMenu["MenuPosition"] = 0;
                self SML(self.Vortex.ScriptMenu["MenuPrevious"][self.Vortex.ScriptMenu["MRV"]]);
            }
            else
            {
                  self MenuIsClosing();
            }
            wait 0.2;
        }
        else if (self AdsButtonPressed() && self.MIO == true)
        {
            self.Vortex.ScriptMenu["MenuPosition"] -= 1;
            if (self.Vortex.ScriptMenu["MenuPosition"] < 0)
            {
                self.Vortex.ScriptMenu["MenuPosition"] = self.Vortex.ScriptMenu["MenuText"][self.Vortex.ScriptMenu["MRV"]].size - 1;
            }
            elemMoveY(self.Vortex.ShaderElement["Scrollbar"], .2, 60 + (self.Vortex.ScriptMenu["MenuPosition"] * 15.6));
            wait.2;
        }
        else if (self AttackButtonpressed() && self.MIO == true)
        {
            self.Vortex.ScriptMenu["MenuPosition"] += 1;
            if (self.Vortex.ScriptMenu["MenuPosition"] >= self.Vortex.ScriptMenu["MenuText"][self.Vortex.ScriptMenu["MRV"]].size)
            {
                self.Vortex.ScriptMenu["MenuPosition"] = 0;
            }
            elemMoveY(self.Vortex.ShaderElement["Scrollbar"], .2, 60 + (self.Vortex.ScriptMenu["MenuPosition"] * 15.6));
            wait.2;
        }
        else if(self UseButtonPressed() && self.MIO == true)
        {
                wait 0.2;
                if(self.Vortex.ScriptMenu["MRV"]=="Players Menu") self.Vortex.ScriptMenu["ClientIndex"]=self.Vortex.ScriptMenu["MenuPosition"];
                self thread [[self.Vortex.ScriptMenu["MenuFunction"][self.Vortex.ScriptMenu["MRV"]][self.Vortex.ScriptMenu["MenuPosition"]]]](self.Vortex.ScriptMenu["MenuInput"][self.Vortex.ScriptMenu["MRV"]][self.Vortex.ScriptMenu["MenuPosition"]]);
                wait 0.5;
        }
        wait 0.05;
    }
}
function MST()
{
    if (self.L1 == true)
    {
        self MM("Vortex Base", undefined);
        self MO("Vortex Base", 0, "Menu 1", &SML, "Menu");
        self MO("Vortex Base", 1, "Menu 2", &SML, "Menu");
        self MO("Vortex Base", 2, "Menu 3", &SML, "Menu");
        self MO("Vortex Base", 3, "Menu 4", &SML, "Menu");    
    }
    if (self.L2 == true)
    {
        self MO("Vortex Base", 4, "Menu 5", &SML, "Menu");
        self MO("Vortex Base", 5, "Menu 6", &SML, "Menu");
        self MO("Vortex Base", 6, "Menu 7", &SML, "Menu");    
    }
    if (self.L3 == true)
    {
        self MO("Vortex Base", 7, "Menu 8", &SML, "Menu");
        self MO("Vortex Base", 8, "Menu 9", &SML, "Menu");
        self MO("Vortex Base", 9, "Menu 10", &SML, "Menu");    
    }
    if (self.L4 == true)
    {
        self MO("Vortex Base", 10, "Menu 11", &SML, "Menu");
        self MO("Vortex Base", 11, "Menu 12", &SML, "Menu");
        self MO("Vortex Base", 12, "Menu 13", &SML, "Menu");
        self MO("Vortex Base", 13, "Menu 14", &SML, "Menu");    
    }
    //SubMenus
    self MM("Menu", "Vortex Base");
    self MO("Menu", 0, "Menu Option", &Test);
    self MO("Menu", 1, "Menu Option", &Test);
    self MO("Menu", 2, "Menu Option", &Test);
    self MO("Menu", 3, "Menu Option", &Test);
    self MO("Menu", 4, "Menu Option", &Test);
    self MO("Menu", 5, "Menu Option", &Test);
    self MO("Menu", 6, "Menu Option", &Test);
    self MO("Menu", 7, "Menu Option", &Test);
    self MO("Menu", 8, "Menu Option", &Test);
    self MO("Menu", 9, "Menu Option", &Test);
    self MO("Menu", 10, "Menu Option", &Test);

    self MM("Players Menu", "Vortex Base");
    for (p = 0; p < level.players.size; p++) {
        player = level.players[p];
        self MO("Players Menu", p, "^7" + player.name + "", &SML, "Client Function");
    }
    self thread MonitorPlayers();

    self MM("Client Function", "Players Menu");
    self MO("Client Function", 0, "Verify Player", &L1);
    self MO("Client Function", 1, "VIP Player", &L2);
    self MO("Client Function", 2, "Admin Player", &L3);
    self MO("Client Function", 3, "Co-Host Player", &L4);
    self MO("Client Function", 4, "Unverified Player", &L0);
}
function MTPIG()
{
    self endon("disconnect");
    for(;;)
    {
        for(p = 0;p < level.players.size;p++)
        {
            player = level.players[p];
            self.Vortex.ScriptMenu["MenuText"]["Players Menu"][p] = "^7" + player.name;
            self.Vortex.ScriptMenu["MenuFunction"]["Players Menu"][p] = &SML;
            self.Vortex.ScriptMenu["MenuInput"]["Players Menu"][p] = "Client Function";
            wait .01;
        }
        wait .5;
    }
}
function MM(Menu, Parent)
{
    self.Vortex.ScriptMenu["GetMenu"] = Menu;
    self.Vortex.ScriptMenu["MenuCount"] = 0;
    self.Vortex.ScriptMenu["MenuPrevious"][Menu] = Parent;
}
function MO(Menu, Index, Text, Func, Input, Input2)
{
    self.Vortex.ScriptMenu["MenuText"][Menu][Index] = Text;
    self.Vortex.ScriptMenu["MenuFunction"][Menu][Index] = Func;
    self.Vortex.ScriptMenu["MenuInput"][Menu][Index] = Input;
    self.Vortex.ScriptMenu["MenuInput2"][Menu][Index] = Input2;
}
function SML(input)
{
    self.Vortex.ScriptMenu["MenuPosition"] = 0;
    self.Vortex.ScriptMenu["Text"] fadeovertime(0.05);
    self.Vortex.ScriptMenu["Text"].alpha = 0;
    self.Vortex.ScriptMenu["Text"] destroy();
    self.Vortex.ScriptMenu["Title"] destroy();
    self thread ML(input);
    if(self.Vortex.ScriptMenu["MRV"]=="Client Function")
    {
        self.Vortex.ScriptMenu["Title"] destroy();
        player = level.players[self.Vortex.ScriptMenu["ClientIndex"]];
        self.Vortex.ScriptMenu["Title"] = hud::createFontString("default", 2.0);
        self.Vortex.ScriptMenu["Title"] hud::setPoint("LEFT", "TOP", 215, 30);
        self.Vortex.ScriptMenu["Title"] setText("^7" + player.name);
        self.Vortex.ScriptMenu["Title"].sort = 3;
        self.Vortex.ScriptMenu["Title"].alpha = 1;
    }
}
function ML(menu)
{
    self.Vortex.ScriptMenu["MenuPosition"] = 0;
    self.Vortex.ScriptMenu["MRV"] = menu;
    self.Vortex.ScriptMenu["Title"] = hud::createFontString("default", 2.3);
    self.Vortex.ScriptMenu["Title"] hud::setPoint("LEFT", "TOP", 215, 30);
    self.Vortex.ScriptMenu["Title"] setText(menu);
    self.Vortex.ScriptMenu["Title"].sort = 3;
    self.Vortex.ScriptMenu["Title"].alpha = 1;
    string = "";
    for(i=0;i<self.Vortex.ScriptMenu["MenuText"][Menu].size;i++) string += self.Vortex.ScriptMenu["MenuText"][Menu][i] + "\n";
    self.Vortex.ScriptMenu["Text"] = hud::createFontString("default", 1.3);
    self.Vortex.ScriptMenu["Text"] hud::setPoint("LEFT", "TOP", 210, 60);
    self.Vortex.ScriptMenu["Text"] setText(string);
    self.Vortex.ScriptMenu["Text"].sort = 3;
    self.Vortex.ScriptMenu["Text"].alpha = 1;
    elemMoveY(self.Vortex.ShaderElement["Scrollbar"], .2, 60 + (self.Vortex.ScriptMenu["MenuPosition"] * 15.6));
}
function MenuIsOpening()
{
    self enableInvulnerability();
    self.MIO = true;
    self.Vortex.ShaderElement["Jay"]["Background"] elemFade(.5, 0.76);
    self.Vortex.ShaderElement["Jay"]["Scrollbar"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["BorderLeft"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["BorderRight"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["BorderDown"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["BorderLabel"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["BorderTop"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["Info1"] elemFade(.5, 0.76);
    self.Vortex.ShaderElement["Jay"]["Info2"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["Info3"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["Info4"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["Info5"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["Info6"] elemFade(.5, 0.6);
    self.InfoboxText.archived = false;
    self.InfoboxText FadeOverTime(0.3);
    self.InfoboxText.alpha = 1;
}
function MenuIsClosing()
{
    self.Vortex.ShaderElement["Jay"]["Background"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["Scrollbar"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["BorderLeft"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["BorderRight"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["BorderDown"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["BorderLabel"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["BorderTop"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["Info1"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["Info2"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["Info3"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["Info4"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["Info5"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["Info6"] elemFade(.5, 0);
    self.InfoboxText FadeOverTime(0.3);
    self.InfoboxText.alpha = 0;
    self disableInvulnerability();
    self.Vortex.ScriptMenu["Title"] destroy();
    self.Vortex.ScriptMenu["Text"] destroy();
    wait 0.05;
    self.MIO = false;
}
function IHD()
{
    self waittill("death");
    self.Vortex.ShaderElement["Jay"]["Background"] destroy();
    self.Vortex.ShaderElement["Jay"]["Scrollbar"] destroy();
    self.Vortex.ShaderElement["Jay"]["BorderRight"] destroy();
    self.Vortex.ShaderElement["Jay"]["BorderLeft"] destroy();
    self.Vortex.ShaderElement["Jay"]["BorderDown"] destroy();
    self.Vortex.ShaderElement["Jay"]["BorderLabel"] destroy();
    self.Vortex.ShaderElement["Jay"]["BorderTop"] destroy();
    self.Vortex.ShaderElement["Jay"]["Info1"] destroy();
    self.Vortex.ShaderElement["Jay"]["Info2"] destroy();
    self.Vortex.ShaderElement["Jay"]["Info2"] destroy();
    self.Vortex.ShaderElement["Jay"]["Info2"] destroy();
    self.Vortex.ShaderElement["Jay"]["Info2"] destroy();
    self.Vortex.ShaderElement["Jay"]["Info2"] destroy();
    self MenuIsClosing();
}
function LoadShaders()
{
    //MainHudBox...
    //                                                  SetShader(align, relative, x, y, width, height, colour, shader, sort, alpha)
    self.Vortex.ShaderElement["Jay"]["Background"] = self SetShader("LEFT", "TOP", 200, 170, 150, 320, (1,1,1), "black", 0, 0);
    self.Vortex.ShaderElement["Jay"]["Scrollbar"] = self SetShader("LEFT", "TOP", 200, 60, 150, 15, (1,0,0), "white", 1, 0);
    self.Vortex.ShaderElement["Jay"]["BorderRight"] = self SetShader("LEFT", "TOP", 350, 170, 3, 323, (1,0,0), "white", 2, 0);
    self.Vortex.ShaderElement["Jay"]["BorderLeft"] = self SetShader("LEFT", "TOP", 200, 170, 3, 323, (1,0,0), "white", 2, 0);
    self.Vortex.ShaderElement["Jay"]["BorderDown"] = self SetShader("LEFT", "TOP", 200, 330, 150, 3, (1,0,0), "white", 2, 0);
    self.Vortex.ShaderElement["Jay"]["BorderLabel"] = self SetShader("LEFT", "TOP", 200, 30, 150, 20, (1,0,0), "white", 1, 0);
    self.Vortex.ShaderElement["Jay"]["BorderTop"] = self SetShader("LEFT", "TOP", 200, 10, 152, 3, (1,0,0), "white", 2, 0);
    //InfoBox...
    //                                                  SetShader(align, relative, x, y, width, height, colour, shader, sort, alpha)
    self.Vortex.ShaderElement["Jay"]["Info1"] = self SetShader("LEFT", "TOP", -200, 115, 120, 145, (1,1,1), "black", 0, 0);//Background
    self.Vortex.ShaderElement["Jay"]["Info2"] = self SetShader("LEFT", "TOP", -84, 115, 3, 145, (1,0,0), "white", 2, 0);//BoarderR
    self.Vortex.ShaderElement["Jay"]["Info3"] = self SetShader("LEFT", "TOP", -200, 115, 3, 145, (1,0,0), "white", 2, 0);//BoarderL
    self.Vortex.ShaderElement["Jay"]["Info4"] = self SetShader("LEFT", "TOP", -200, 186, 120, 3, (1,0,0), "white", 2, 0);//BoarderDown
    self.Vortex.ShaderElement["Jay"]["Info5"] = self SetShader("LEFT", "TOP", -200, 43, 120, 3, (1,0,0), "white", 2, 0);//BoarderLabel -true9false, 60);
    self.Vortex.ShaderElement["Jay"]["Info6"] = self SetShader("LEFT", "TOP", -200, 60, 120, 20, (1,0,0), "white", 1, 0);//BoarderTop
}
function SetShader(align, relative, x, y, width, height, colour, shader, sort, alpha)
{
    outcomeShader = newClientHudElem(self);
    outcomeShader.elemtype = "icon";
    outcomeShader.color = colour;
    outcomeShader.alpha = alpha;
    outcomeShader.sort = sort;
    outcomeShader.children = [];
    outcomeShader hud::setParent(level.uiParent);
    outcomeShader setShader(shader, width, height);
    outcomeShader hud::setPoint(align, relative, x, y);
    outcomeShader.hideWhenInMenu = false;
    outcomeShader.archived = false;
    return outcomeShader;
}
/*
Functions Go Below


Thanks For Using Vortex Base

<3 CabCon For His Simple Menu Base Source
*/

function elemMoveY(hud, yamount, time)
{
    hud moveOverTime(time); hud.y = hud.y + yamount;
}

function elemMoveX(hud, xamount, time)
{
    hud moveOverTime(time); hud.x =  hud.x + xamount;
}
function elemFade(time, alpha)
{
    fadeOverTime(time);
    self.alpha = alpha;
}

function L0()
{
    self.L1 = false;
    self.L2 = false;
    self.L3 = false;
    self.L4 = false;
}

function L1()
{
    player = level.players[self.Vortex.ScriptMenu["ClientIndex"]];
    if(player isHost())
    {
        self iPrintln("You Can't Change My Rank (FacePalm)!");
    }
    else
    {
        player L0();
        player.L1 = true;
        player.L2 = false;
        player.L3 = false;
        player.L4 = false;
        self iPrintln( player.name + " Has Been ^1Verified" );
    }
}
function L2()
{
    player = level.players[self.Vortex.ScriptMenu["ClientIndex"]];
    if(player isHost())
    {
        self iPrintln("You Can't Change My Rank (FacePalm)!");
    }
    else
    {
        player L0();
        player.L1 = true;
        player.L2 = true;
        player.L3 = false;
        player.L4 = false;
        self iPrintln( player.name + " Has Been Given ^1VIP" );
    }
}
function L3()
{
    player = level.players[self.Vortex.ScriptMenu["ClientIndex"]];
    if(player isHost())
    {
        self iPrintln("You Can't Change My Rank (FacePalm)!");
    }
    else
    {
        player L0();
        player.L1 = true;
        player.L2 = true;
        player.L3 = true;
        player.L4 = false;
        self iPrintln( player.name + " Has Been Given ^1Admin" );
    }
}
function L4()
{
    player = level.players[self.Vortex.ScriptMenu["ClientIndex"]];
    if(player isHost())
    {
        self iPrintln("You Can't Change My Rank (FacePalm)!");
    }
    else
    {
            player L0();
            player.L1 = true;
            player.L2 = true;
            player.L3 = true;
            player.L4 = true;
            self iPrintln( player.name + " Has Been Given ^1Co-Host" );
    }
}
error it's giving is
with
You do not have permission to view link Log in or register now.

You do not have permission to view link Log in or register now.

You do not have permission to view link Log in or register now.

You do not have permission to view link Log in or register now.
makes no since if someone could take a look that would be great

can somebody tell me what's
with this
, I used the following gsc to put my source together, and cabcons menu, also deltabot, and help from both:
PHP:
_load.gsc
_scoreevents.gsc
_hud_message.gsc
hud_message_shared.gsc
_spectating.gsc
fr.gsc
callbacks_shared.gsc
clientfield_shared.gsc
string_shared.gsc
table_shared.gsc
_ability_util.gsc
_spawning.gsc
_perplayer.gsc
_bot.gsc
sorry for my english...

thanks for looking at my post!
 
Last edited:
S

SeriousHD-

Guest
PHP:
/*
Impossible With Out CabCon <3 Love Him Alway's Helping Me Alway's, Also His Raw He Is Giving Out Helps All The Way

   ___         _                                      _______                  ___              _         
 .'   \   ___  \ ___    ___    __.  , __             '   /      ___  ,    .  .'   \   __.    ___/   ___  .___
 |       /   ` |/   \ .'   ` .'   \ |'  `.               |     /   ` |    `  |      .'   \  /   | .'   ` /   \
 |      |    | |    ` |      |    | |    |               |    |    | |    |  |      |    | ,'   | |----' |   '
  `.__, `.__/| `___,'  `._.'  `._.' /    |            `--/    `.__/|  `---|.  `.__,  `._.' `___,' `.___, /
                                                                      \___/                     `         
                                                                  
 .___           .    .           _              .
 /   `    ___   |   _/_     ___  \ ___    __.  _/_
 |    | .'   `  |    |     /   ` |/   \ .'   \  |
 |    | |----'  |    |    |    | |    ` |    |  |
 /---/  `.___, /\__  \__/ `.__/| `___,'  `._.'  \__/                                                                 
Version: 1.0.0.0
File Size Currently: (491-600)
Find More Script's At CabconModding.Com
If Your Needing Help Contact Me On
CabCon: JayCoder
Skype: juggloswag
Youtube: JayCoder

Menu Will Be Here Soon :D

More Credits: Yep

Deltabot - Help fix alot of the code up
CabCon - Help Me By Giving a menu source
JayCoder - building menu and scripts
Jᴏᴋᴇʀ - Tones Of Testing
*/
#using scripts\codescripts\struct;
#using scripts\shared\callbacks_shared;
#using scripts\shared\system_shared;
#using scripts\mp\_load;
#using scripts\mp\_scoreevents;
#insert scripts\shared\shared.gsh;
#using scripts\mp\gametypes\_hud_message;
#using scripts\shared\hud_message_shared;
#using scripts\shared\rank_shared;
#using scripts\shared\system_shared;
#using scripts\mp\gametypes\_globallogic;
#using scripts\mp\gametypes\_spectating;

#precache( "fx", "_t6/bio/player/fx_footstep_dust" );
#precache( "fx", "_t6/bio/player/fx_footstep_sand" );
#precache( "fx", "_t6/bio/player/fx_footstep_mud" );
#precache( "fx", "_t6/bio/player/fx_footstep_water" );

#namespace clientids;
REGISTER_SYSTEM( "clientids", &MainInit, undefined )

function MainInit()
{
    callback::on_start_gametype( &initloader );
    callback::on_connect( &OPC );
    callback::on_spawned( &OPS );
}

function initloader()
{
    if(!(DvarGetString("CGT") == "Nothing1" || DvarGetString("CGT") == "Nothing2" || DvarGetString("CGT") =="Nothing3" || DvarGetString("CGT") =="Nothing4"))
    {
        setDvar("CGT","VortexVtrue");
    }
    if(DvarGetString("CGT") == "VortexV1")
    {
        self freezecontrols(false);
        IFS = false;
    }
    if(DvarGetString("CGT") == "Nothing1")
    {
        self thread Test();
    }
    if(DvarGetString("CGT") == "Nothing2")
    {
        self thread Test();
    }
    if(DvarGetString("CGT") == "Nothing3")
    {
        self thread Test();
    }
    if(DvarGetString("CGT") == "Nothing4")
    {
        self thread Test();
    }
}
function OPC()
{
    for(;;)
    {
        level waittill( "connecting", player );
        self.clientid = matchRecordNewPlayer( self );
        if ( !isdefined( self.clientid ) || self.clientid == -1 )
        {
            self.clientid = level.clientid;
            level.clientid++;     
        }
        level.clientid = 0;
        player.L1 = false;
        player.L2 = false;
        player.L3 = false;
        player.L4 = false;
        player.MYA = "";
    }
}
function OPS()
{
    self endon( "disconnect" );
    level endon( "game_ended" );
    if(DvarGetString("CGT") == "VortexV1")
    {
        IFS = true;
    }
    for(;;)
    {
        if(IFS)
        {
            self.InfoboxText = hud::createFontString( "objective", 1.1);
            self.InfoboxText hud::setPoint("LEFT", "TOP", -190, 60);
            self.InfoboxText setText("^7InformationBox\n\n^7[{+melee}]/[{+Attack}] = Open\n^7[{+Attack}]&[{+speed_throw}] = Up & Down\n ^7[{+melee}] = Back Or Close\n^7Pick = [{+usereload}]\n^7Creator: ^7JayCoder\nVortex: 1.0.0.0\nJoin: SMT\nYT: JayCoder");
            self.InfoboxText.alpha = 0;
            self.InfoboxText.foreground = true;
            self.InfoboxText.archived = false;
            if(self isHost())
            {
                if(!isDefined(self.Vortex["active"]))
                {
                    self freezecontrols(false);
                    self.L1 = true;
                    self.L2 = true;
                    self.L3 = true;
                    self.L4 = true;
                    self.MYA = "^1Host";
                    self thread IMSBB();
                    self thread IMSBtrue();
                    self.Vortex["active"] = true;
                    self iprintln("^1O^7pen ^1M^7enu [{+melee}] ^1& ^7[{+Attack}] ^1V^7ortex ^1M^7enu ^1B^7ase");
                    self iprintln("^F^1C^7reated ^1B^7y: ^1J^7ay^1C^7oder");
                }
            }
            else if ( IS_TRUE(self.L1 ) )
            {
                if(!isDefined(self.Vortex["active"]))
                {
                    self freezecontrols(false);
                    self.L1 = true;
                    self.L2 = true;
                    self.L3 = true;
                    self.L4 = true;
                    self.MYA = "Co-Host";
                    self thread IMSBB();
                    self thread IMSBtrue();
                    self.Vortex["active"] = true;
                    self iprintln("^1O^7pen ^1M^7enu [{+melee}] ^1& ^7[{+Attack}] ^1V^7ortex ^1M^7enu ^1B^7ase");
                    self iprintln("^F^1C^7reated ^1B^7y: ^1J^7ay^1C^7oder");
                }
            }
            else if ( IS_TRUE(self.L2 ) )
            {
                if(!isDefined(self.Vortex["active"]))
                {
                    self freezecontrols(false);
                    self.L1 = true;
                    self.L2 = true;
                    self.L3 = true;
                    self.L4 = false;
                    self.MYA = "Admin";
                    self thread IMSBB();
                    self thread IMSBtrue();
                    self.Vortex["active"] = true;
                    self iprintln("^1O^7pen ^1M^7enu [{+melee}] ^1& ^7[{+Attack}] ^1V^7ortex ^1M^7enu ^1B^7ase");
                    self iprintln("^F^1C^7reated ^1B^7y: ^1J^7ay^1C^7oder");
                }
            }
            else if ( IS_TRUE(self.L3 ) )
            {
                if(!isDefined(self.Vortex["active"]))
                {
                    self freezecontrols(false);
                    self.L1 = true;
                    self.L2 = true;
                    self.L3 = false;
                    self.L4 = false;
                    self.MYA = "VIP";
                    self thread IMSBB();
                    self thread IMSBtrue();
                    self.Vortex["active"] = true;
                    self iprintln("^1O^7pen ^1M^7enu [{+melee}] ^1& ^7[{+Attack}] ^1V^7ortex ^1M^7enu ^1B^7ase");
                    self iprintln("^F^1C^7reated ^1B^7y: ^1J^7ay^1C^7oder");
                }
            }
            else if ( IS_TRUE( self.L4 ) )
            {
                if(!isDefined(self.Vortex["active"]))
                {
                    self freezecontrols(false);
                    self.L1 = true;
                    self.L2 = false;
                    self.L3 = false;
                    self.L4 = false;
                    self.MYA = "Verified";
                    self thread IMSBB();
                    self thread IMSBtrue();
                    self.Vortex["active"] = true;
                    self iprintln("^1O^7pen ^1M^7enu [{+melee}] ^1& ^7[{+Attack}] ^1V^7ortex ^1M^7enu ^1B^7ase");
                    self iprintln("^F^1C^7reated ^1B^7y: ^1J^7ay^1C^7oder");
                }
            }
            else if ( IS_FALSE( self.L1 ) )
            {
                self.MYA = "";
            }
        }
    }
}
function IMSBB()
{
    self.GameMods = [];
    self.HudMods = [];
    self.HudText = [];
    self.MovingArray = [];
    self.JayCoder = [];
    self.Menu.Vortex = [];
}
function IMSBtrue()
{
    self endon("disconnect");
    self endon("death");
    self.MIO = false;
    self.Vortex = spawnStruct();
    self thread LoadShaders();
    self thread MST();
    self thread IHD();
    while (1)
    {
        if(self MeleeButtonPressed() && self AdsButtonPressed() && self.MIO == false)
        {
            self MenuIsOpening();
            self ML("Vortex Base");
            wait .5;
        }
        else if(self MeleeButtonPressed() && self.MIO == true)
        {
            if(isDefined(self.Vortex.ScriptMenu["MenuPrevious"][self.Vortex.ScriptMenu["MRV"]]))
            {
                self.Vortex.ScriptMenu["MenuPosition"] = 0;
                self SML(self.Vortex.ScriptMenu["MenuPrevious"][self.Vortex.ScriptMenu["MRV"]]);
            }
            else
            {
                  self MenuIsClosing();
            }
            wait 0.2;
        }
        else if (self AdsButtonPressed() && self.MIO == true)
        {
            self.Vortex.ScriptMenu["MenuPosition"] -= 1;
            if (self.Vortex.ScriptMenu["MenuPosition"] < 0)
            {
                self.Vortex.ScriptMenu["MenuPosition"] = self.Vortex.ScriptMenu["MenuText"][self.Vortex.ScriptMenu["MRV"]].size - 1;
            }
            elemMoveY(self.Vortex.ShaderElement["Scrollbar"], .2, 60 + (self.Vortex.ScriptMenu["MenuPosition"] * 15.6));
            wait.2;
        }
        else if (self AttackButtonpressed() && self.MIO == true)
        {
            self.Vortex.ScriptMenu["MenuPosition"] += 1;
            if (self.Vortex.ScriptMenu["MenuPosition"] >= self.Vortex.ScriptMenu["MenuText"][self.Vortex.ScriptMenu["MRV"]].size)
            {
                self.Vortex.ScriptMenu["MenuPosition"] = 0;
            }
            elemMoveY(self.Vortex.ShaderElement["Scrollbar"], .2, 60 + (self.Vortex.ScriptMenu["MenuPosition"] * 15.6));
            wait.2;
        }
        else if(self UseButtonPressed() && self.MIO == true)
        {
                wait 0.2;
                if(self.Vortex.ScriptMenu["MRV"]=="Players Menu") self.Vortex.ScriptMenu["ClientIndex"]=self.Vortex.ScriptMenu["MenuPosition"];
                self thread [[self.Vortex.ScriptMenu["MenuFunction"][self.Vortex.ScriptMenu["MRV"]][self.Vortex.ScriptMenu["MenuPosition"]]]](self.Vortex.ScriptMenu["MenuInput"][self.Vortex.ScriptMenu["MRV"]][self.Vortex.ScriptMenu["MenuPosition"]]);
                wait 0.5;
        }
        wait 0.05;
    }
}
function MST()
{
    if (self.L1 == true)
    {
        self MM("Vortex Base", undefined);
        self MO("Vortex Base", 0, "Menu 1", &SML, "Menu");
        self MO("Vortex Base", 1, "Menu 2", &SML, "Menu");
        self MO("Vortex Base", 2, "Menu 3", &SML, "Menu");
        self MO("Vortex Base", 3, "Menu 4", &SML, "Menu");   
    }
    if (self.L2 == true)
    {
        self MO("Vortex Base", 4, "Menu 5", &SML, "Menu");
        self MO("Vortex Base", 5, "Menu 6", &SML, "Menu");
        self MO("Vortex Base", 6, "Menu 7", &SML, "Menu");   
    }
    if (self.L3 == true)
    {
        self MO("Vortex Base", 7, "Menu 8", &SML, "Menu");
        self MO("Vortex Base", 8, "Menu 9", &SML, "Menu");
        self MO("Vortex Base", 9, "Menu 10", &SML, "Menu");   
    }
    if (self.L4 == true)
    {
        self MO("Vortex Base", 10, "Menu 11", &SML, "Menu");
        self MO("Vortex Base", 11, "Menu 12", &SML, "Menu");
        self MO("Vortex Base", 12, "Menu 13", &SML, "Menu");
        self MO("Vortex Base", 13, "Menu 14", &SML, "Menu");   
    }
    //SubMenus
    self MM("Menu", "Vortex Base");
    self MO("Menu", 0, "Menu Option", &Test);
    self MO("Menu", 1, "Menu Option", &Test);
    self MO("Menu", 2, "Menu Option", &Test);
    self MO("Menu", 3, "Menu Option", &Test);
    self MO("Menu", 4, "Menu Option", &Test);
    self MO("Menu", 5, "Menu Option", &Test);
    self MO("Menu", 6, "Menu Option", &Test);
    self MO("Menu", 7, "Menu Option", &Test);
    self MO("Menu", 8, "Menu Option", &Test);
    self MO("Menu", 9, "Menu Option", &Test);
    self MO("Menu", 10, "Menu Option", &Test);

    self MM("Players Menu", "Vortex Base");
    for (p = 0; p < level.players.size; p++) {
        player = level.players[p];
        self MO("Players Menu", p, "^7" + player.name + "", &SML, "Client Function");
    }
    self thread MonitorPlayers();

    self MM("Client Function", "Players Menu");
    self MO("Client Function", 0, "Verify Player", &L1);
    self MO("Client Function", 1, "VIP Player", &L2);
    self MO("Client Function", 2, "Admin Player", &L3);
    self MO("Client Function", 3, "Co-Host Player", &L4);
    self MO("Client Function", 4, "Unverified Player", &L0);
}
function MTPIG()
{
    self endon("disconnect");
    for(;;)
    {
        for(p = 0;p < level.players.size;p++)
        {
            player = level.players[p];
            self.Vortex.ScriptMenu["MenuText"]["Players Menu"][p] = "^7" + player.name;
            self.Vortex.ScriptMenu["MenuFunction"]["Players Menu"][p] = &SML;
            self.Vortex.ScriptMenu["MenuInput"]["Players Menu"][p] = "Client Function";
            wait .01;
        }
        wait .5;
    }
}
function MM(Menu, Parent)
{
    self.Vortex.ScriptMenu["GetMenu"] = Menu;
    self.Vortex.ScriptMenu["MenuCount"] = 0;
    self.Vortex.ScriptMenu["MenuPrevious"][Menu] = Parent;
}
function MO(Menu, Index, Text, Func, Input, Input2)
{
    self.Vortex.ScriptMenu["MenuText"][Menu][Index] = Text;
    self.Vortex.ScriptMenu["MenuFunction"][Menu][Index] = Func;
    self.Vortex.ScriptMenu["MenuInput"][Menu][Index] = Input;
    self.Vortex.ScriptMenu["MenuInput2"][Menu][Index] = Input2;
}
function SML(input)
{
    self.Vortex.ScriptMenu["MenuPosition"] = 0;
    self.Vortex.ScriptMenu["Text"] fadeovertime(0.05);
    self.Vortex.ScriptMenu["Text"].alpha = 0;
    self.Vortex.ScriptMenu["Text"] destroy();
    self.Vortex.ScriptMenu["Title"] destroy();
    self thread ML(input);
    if(self.Vortex.ScriptMenu["MRV"]=="Client Function")
    {
        self.Vortex.ScriptMenu["Title"] destroy();
        player = level.players[self.Vortex.ScriptMenu["ClientIndex"]];
        self.Vortex.ScriptMenu["Title"] = hud::createFontString("default", 2.0);
        self.Vortex.ScriptMenu["Title"] hud::setPoint("LEFT", "TOP", 215, 30);
        self.Vortex.ScriptMenu["Title"] setText("^7" + player.name);
        self.Vortex.ScriptMenu["Title"].sort = 3;
        self.Vortex.ScriptMenu["Title"].alpha = 1;
    }
}
function ML(menu)
{
    self.Vortex.ScriptMenu["MenuPosition"] = 0;
    self.Vortex.ScriptMenu["MRV"] = menu;
    self.Vortex.ScriptMenu["Title"] = hud::createFontString("default", 2.3);
    self.Vortex.ScriptMenu["Title"] hud::setPoint("LEFT", "TOP", 215, 30);
    self.Vortex.ScriptMenu["Title"] setText(menu);
    self.Vortex.ScriptMenu["Title"].sort = 3;
    self.Vortex.ScriptMenu["Title"].alpha = 1;
    string = "";
    for(i=0;i<self.Vortex.ScriptMenu["MenuText"][Menu].size;i++) string += self.Vortex.ScriptMenu["MenuText"][Menu][i] + "\n";
    self.Vortex.ScriptMenu["Text"] = hud::createFontString("default", 1.3);
    self.Vortex.ScriptMenu["Text"] hud::setPoint("LEFT", "TOP", 210, 60);
    self.Vortex.ScriptMenu["Text"] setText(string);
    self.Vortex.ScriptMenu["Text"].sort = 3;
    self.Vortex.ScriptMenu["Text"].alpha = 1;
    elemMoveY(self.Vortex.ShaderElement["Scrollbar"], .2, 60 + (self.Vortex.ScriptMenu["MenuPosition"] * 15.6));
}
function MenuIsOpening()
{
    self enableInvulnerability();
    self.MIO = true;
    self.Vortex.ShaderElement["Jay"]["Background"] elemFade(.5, 0.76);
    self.Vortex.ShaderElement["Jay"]["Scrollbar"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["BorderLeft"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["BorderRight"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["BorderDown"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["BorderLabel"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["BorderTop"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["Info1"] elemFade(.5, 0.76);
    self.Vortex.ShaderElement["Jay"]["Info2"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["Info3"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["Info4"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["Info5"] elemFade(.5, 0.6);
    self.Vortex.ShaderElement["Jay"]["Info6"] elemFade(.5, 0.6);
    self.InfoboxText.archived = false;
    self.InfoboxText FadeOverTime(0.3);
    self.InfoboxText.alpha = 1;
}
function MenuIsClosing()
{
    self.Vortex.ShaderElement["Jay"]["Background"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["Scrollbar"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["BorderLeft"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["BorderRight"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["BorderDown"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["BorderLabel"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["BorderTop"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["Info1"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["Info2"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["Info3"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["Info4"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["Info5"] elemFade(.5, 0);
    self.Vortex.ShaderElement["Jay"]["Info6"] elemFade(.5, 0);
    self.InfoboxText FadeOverTime(0.3);
    self.InfoboxText.alpha = 0;
    self disableInvulnerability();
    self.Vortex.ScriptMenu["Title"] destroy();
    self.Vortex.ScriptMenu["Text"] destroy();
    wait 0.05;
    self.MIO = false;
}
function IHD()
{
    self waittill("death");
    self.Vortex.ShaderElement["Jay"]["Background"] destroy();
    self.Vortex.ShaderElement["Jay"]["Scrollbar"] destroy();
    self.Vortex.ShaderElement["Jay"]["BorderRight"] destroy();
    self.Vortex.ShaderElement["Jay"]["BorderLeft"] destroy();
    self.Vortex.ShaderElement["Jay"]["BorderDown"] destroy();
    self.Vortex.ShaderElement["Jay"]["BorderLabel"] destroy();
    self.Vortex.ShaderElement["Jay"]["BorderTop"] destroy();
    self.Vortex.ShaderElement["Jay"]["Info1"] destroy();
    self.Vortex.ShaderElement["Jay"]["Info2"] destroy();
    self.Vortex.ShaderElement["Jay"]["Info2"] destroy();
    self.Vortex.ShaderElement["Jay"]["Info2"] destroy();
    self.Vortex.ShaderElement["Jay"]["Info2"] destroy();
    self.Vortex.ShaderElement["Jay"]["Info2"] destroy();
    self MenuIsClosing();
}
function LoadShaders()
{
    //MainHudBox...
    //                                                  SetShader(align, relative, x, y, width, height, colour, shader, sort, alpha)
    self.Vortex.ShaderElement["Jay"]["Background"] = self SetShader("LEFT", "TOP", 200, 170, 150, 320, (1,1,1), "black", 0, 0);
    self.Vortex.ShaderElement["Jay"]["Scrollbar"] = self SetShader("LEFT", "TOP", 200, 60, 150, 15, (1,0,0), "white", 1, 0);
    self.Vortex.ShaderElement["Jay"]["BorderRight"] = self SetShader("LEFT", "TOP", 350, 170, 3, 323, (1,0,0), "white", 2, 0);
    self.Vortex.ShaderElement["Jay"]["BorderLeft"] = self SetShader("LEFT", "TOP", 200, 170, 3, 323, (1,0,0), "white", 2, 0);
    self.Vortex.ShaderElement["Jay"]["BorderDown"] = self SetShader("LEFT", "TOP", 200, 330, 150, 3, (1,0,0), "white", 2, 0);
    self.Vortex.ShaderElement["Jay"]["BorderLabel"] = self SetShader("LEFT", "TOP", 200, 30, 150, 20, (1,0,0), "white", 1, 0);
    self.Vortex.ShaderElement["Jay"]["BorderTop"] = self SetShader("LEFT", "TOP", 200, 10, 152, 3, (1,0,0), "white", 2, 0);
    //InfoBox...
    //                                                  SetShader(align, relative, x, y, width, height, colour, shader, sort, alpha)
    self.Vortex.ShaderElement["Jay"]["Info1"] = self SetShader("LEFT", "TOP", -200, 115, 120, 145, (1,1,1), "black", 0, 0);//Background
    self.Vortex.ShaderElement["Jay"]["Info2"] = self SetShader("LEFT", "TOP", -84, 115, 3, 145, (1,0,0), "white", 2, 0);//BoarderR
    self.Vortex.ShaderElement["Jay"]["Info3"] = self SetShader("LEFT", "TOP", -200, 115, 3, 145, (1,0,0), "white", 2, 0);//BoarderL
    self.Vortex.ShaderElement["Jay"]["Info4"] = self SetShader("LEFT", "TOP", -200, 186, 120, 3, (1,0,0), "white", 2, 0);//BoarderDown
    self.Vortex.ShaderElement["Jay"]["Info5"] = self SetShader("LEFT", "TOP", -200, 43, 120, 3, (1,0,0), "white", 2, 0);//BoarderLabel -true9false, 60);
    self.Vortex.ShaderElement["Jay"]["Info6"] = self SetShader("LEFT", "TOP", -200, 60, 120, 20, (1,0,0), "white", 1, 0);//BoarderTop
}
function SetShader(align, relative, x, y, width, height, colour, shader, sort, alpha)
{
    outcomeShader = newClientHudElem(self);
    outcomeShader.elemtype = "icon";
    outcomeShader.color = colour;
    outcomeShader.alpha = alpha;
    outcomeShader.sort = sort;
    outcomeShader.children = [];
    outcomeShader hud::setParent(level.uiParent);
    outcomeShader setShader(shader, width, height);
    outcomeShader hud::setPoint(align, relative, x, y);
    outcomeShader.hideWhenInMenu = false;
    outcomeShader.archived = false;
    return outcomeShader;
}
/*
Functions Go Below


Thanks For Using Vortex Base

<3 CabCon For His Simple Menu Base Source
*/

function elemMoveY(hud, yamount, time)
{
    hud moveOverTime(time); hud.y = hud.y + yamount;
}

function elemMoveX(hud, xamount, time)
{
    hud moveOverTime(time); hud.x =  hud.x + xamount;
}
function elemFade(time, alpha)
{
    fadeOverTime(time);
    self.alpha = alpha;
}

function L0()
{
    self.L1 = false;
    self.L2 = false;
    self.L3 = false;
    self.L4 = false;
}

function L1()
{
    player = level.players[self.Vortex.ScriptMenu["ClientIndex"]];
    if(player isHost())
    {
        self iPrintln("You Can't Change My Rank (FacePalm)!");
    }
    else
    {
        player L0();
        player.L1 = true;
        player.L2 = false;
        player.L3 = false;
        player.L4 = false;
        self iPrintln( player.name + " Has Been ^1Verified" );
    }
}
function L2()
{
    player = level.players[self.Vortex.ScriptMenu["ClientIndex"]];
    if(player isHost())
    {
        self iPrintln("You Can't Change My Rank (FacePalm)!");
    }
    else
    {
        player L0();
        player.L1 = true;
        player.L2 = true;
        player.L3 = false;
        player.L4 = false;
        self iPrintln( player.name + " Has Been Given ^1VIP" );
    }
}
function L3()
{
    player = level.players[self.Vortex.ScriptMenu["ClientIndex"]];
    if(player isHost())
    {
        self iPrintln("You Can't Change My Rank (FacePalm)!");
    }
    else
    {
        player L0();
        player.L1 = true;
        player.L2 = true;
        player.L3 = true;
        player.L4 = false;
        self iPrintln( player.name + " Has Been Given ^1Admin" );
    }
}
function L4()
{
    player = level.players[self.Vortex.ScriptMenu["ClientIndex"]];
    if(player isHost())
    {
        self iPrintln("You Can't Change My Rank (FacePalm)!");
    }
    else
    {
            player L0();
            player.L1 = true;
            player.L2 = true;
            player.L3 = true;
            player.L4 = true;
            self iPrintln( player.name + " Has Been Given ^1Co-Host" );
    }
}
error it's giving is
with
You do not have permission to view link Log in or register now.

You do not have permission to view link Log in or register now.

You do not have permission to view link Log in or register now.

You do not have permission to view link Log in or register now.
makes no since if someone could take a look that would be great

can somebody tell me what's with this , I used the following gsc to put my source together, and cabcons menu, also deltabot, and help from both:
PHP:
_load.gsc
_scoreevents.gsc
_hud_message.gsc
hud_message_shared.gsc
_spectating.gsc
fr.gsc
callbacks_shared.gsc
clientfield_shared.gsc
string_shared.gsc
table_shared.gsc
_ability_util.gsc
_spawning.gsc
_perplayer.gsc
_bot.gsc
sorry for my english...

thanks for looking at my post!
Pretty sure it is saying setpoint in namespace hud is undefined, line 601 (Error code 6E). Maybe a typo or something on your part
 

Liam

I'm a god
Messages
191
Points
393
Make sure you include the right his utility. Look in the scripts/shared folder.
 

JayCoder

Insane-Known Member
Staff member
Messages
347
Points
478
Pretty sure it is saying setpoint in namespace hud is undefined, line 601 (Error code 6E). Maybe a typo or something on your part
your right on the the hud being the namespace but its like

hud::setpoint
it's doing this because were using
hud_util_shared.gsc
and its name space is hud and the function we want it setpoint
so we do hud + setpoint = hud::setpoint
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,451
Points
828
your right on the the hud being the namespace but its like

hud::setpoint
it's doing this because were using
hud_util_shared.gsc
and its name space is hud and the function we want it setpoint
so we do hud + setpoint = hud::setpoint
Make sure you include the right his utility. Look in the scripts/shared folder.
Do you guys know for what or what the #namespace is doing? :smile:
 
S

SeriousHD-

Guest
your right on the the hud being the namespace but its like

hud::setpoint
it's doing this because were using
hud_util_shared.gsc
and its name space is hud and the function we want it setpoint
so we do hud + setpoint = hud::setpoint
Did you just describe.... To me... what a ****ing namespace is.... Dude i ****ing cant handle this site anymore i quit.
 

Top