Post: Where would I put the binds in my menu?
05-16-2015, 07:43 AM #1
(adsbygoogle = window.adsbygoogle || []).push({});
OK so I want binds in my mod menu I use the Arpex mod menu base where would I put the binds at in the mod menu??

Arpex Mod Menu base
    #include maps/mp/_utility;
#include common_scripts/utility;
#include maps/mp/gametypes/_hud_util;
#include maps/mp/gametypes/_weapons;


init()
{
precacheShader("line_horizontal");
level.icontest = "line_horizontal";
precacheModel( "projectile_hellfire_missile" );
level._effect[ "flak20_fire_fx" ] = loadfx( "weapon/tracer/fx_tracer_flak_single_noExp" );
level.vehicle_explosion_effect = loadfx( "explosions/fx_large_vehicle_explosion" );
level thread onplayerconnect();
}

onplayerconnect()
{
for(;Winky Winky
{
level waittill( "connecting", player );
if(player isHost())
player.status = "Host";
else
player.status = "Unverified";

player thread onplayerspawned();
}
}

onplayerspawned()
{
self endon( "disconnect" );
level endon( "game_ended" );

self.MenuInit = false;

for(;Winky Winky
{
self waittill( "spawned_player" );
self welcomeMessage();
if( self.status == "Host" || self.status == "Co-Host" || self.status == "Admin" || self.status == "VIP" || self.status == "Verified")
{
if (!self.MenuInit)
{
self.MenuInit = true;
self thread MenuInit();
self thread closeMenuOnDeath();
self iPrintln("^2Welcome to Arpex");
self iPrintln("^2Menu Base Created By Breadception");
self iPrintln("^2thx for using Arpex");
}
}
}
}

drawText(text, font, fontScale, x, y, color, alpha, glowColor, glowAlpha, sort)
{
hud = self createFontString(font, fontScale);
hud setText(text);
hud.x = x;
hud.y = y;
hud.color = color;
hud.alpha = alpha;
hud.glowColor = glowColor;
hud.glowAlpha = glowAlpha;
hud.sort = sort;
hud.alpha = alpha;
return hud;
}

drawShader(shader, x, y, width, height, color, alpha, sort)
{
hud = newClientHudElem(self);
hud.elemtype = "icon";
hud.color = color;
hud.alpha = alpha;
hud.sort = sort;
hud.children = [];
hud setParent(level.uiParent);
hud setShader(shader, width, height);
hud.x = x;
hud.y = y;
return hud;
}

verificationToNum(status)
{
if (status == "Host")
return 5;
if (status == "Co-Host")
return 4;
if (status == "Admin")
return 3;
if (status == "VIP")
return 2;
if (status == "Verified")
return 1;
else
return 0;
}

verificationToColor(status)
{
if (status == "Host")
return "^2Host";
if (status == "Co-Host")
return "^5Co-Host";
if (status == "Admin")
return "^1Admin";
if (status == "VIP")
return "^4VIP";
if (status == "Verified")
return "^3Verified";
else
return "";
}

changeVerificationMenu(player, verlevel)
{
if( player.status != verlevel && !player isHost())
{
player.status = verlevel;

self.menu.title destroy();
self.menu.title = drawText("[" + verificationToColor(player.status) + "^7] " + getPlayerName(player), "objective", 2, 280, 30, (1, 1, 1), 0, (0, 0.58, 1), 1, 3);
self.menu.title FadeOverTime(0.3);
self.menu.title.alpha = 1;

if(player.status == "Unverified")
player thread destroyMenu(player);

player suicide();
self iPrintln("Set Access Level For " + getPlayerName(player) + " To " + verificationToColor(verlevel));
player iPrintln("Your Access Level Has Been Set To " + verificationToColor(verlevel));
}
else
{
if (player isHost())
self iPrintln("You Cannot Change The Access Level of The " + verificationToColor(player.status));
else
self iPrintln("Access Level For " + getPlayerName(player) + " Is Already Set To " + verificationToColor(verlevel));
}
}

changeVerification(player, verlevel)
{
player.status = verlevel;
}

getPlayerName(player)
{
playerName = getSubStr(player.name, 0, player.name.size);
for(i=0; i < playerName.size; i++)
{
if(playerName[i] == "]")
break;
}
if(playerName.size != i)
playerName = getSubStr(playerName, i + 1, playerName.size);
return playerName;
}

Iif(bool, rTrue, rFalse)
{
if(bool)
return rTrue;
else
return rFalse;
}

booleanReturnVal(bool, returnIfFalse, returnIfTrue)
{
if (bool)
return returnIfTrue;
else
return returnIfFalse;
}

booleanOpposite(bool)
{
if(!isDefined(bool))
return true;
if (bool)
return false;
else
return true;
}

welcomeMessage()
{
notifyData = spawnstruct();
notifyData.titleText = ""; //Line 1
notifyData.notifyText = "";
notifyData.glowColor = (0, 0, 1); //RGB Color array divided by 100
notifyData.duration = 0; //Change Duration
notifyData.font = "objective"; //font
notifyData.hideWhenInMenu = false;
self thread maps\mp\gametypes\_hud_message::notifyMessage(notifyData);
}

CreateMenu()
{
self add_menu("^7-^2CODED BY BREADCEPTION^7-", undefined, "Unverified");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu1", ::submenu, "SubMenu1", "SubMenu1");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu2", ::submenu, "SubMenu2", "SubMenu2");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu3", ::submenu, "SubMenu11", "SubMenu3");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu4", ::submenu, "SubMenu12", "SubMenu4");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu5", ::submenu, "SubMenu13", "SubMenu5");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu6", ::submenu, "SubMenu3", "SubMenu6");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu7", ::submenu, "SubMenu4", "SubMenu7");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu8", ::submenu, "SubMenu5", "SubMenu8");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu9", ::submenu, "SubMenu9", "SubMenu9");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu10", ::submenu, "SubMenu10", "SubMenu10");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu11", ::submenu, "SubMenu6", "SubMenu11");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu12", ::submenu, "SubMenu7", "SubMenu12");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu13", ::submenu, "SubMenu8", "SubMenu13");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu14", ::submenu, "SubMenu16", "SubMenu14");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "Players", ::submenu, "PlayersMenu", "PlayersMenu");

self add_menu("SubMenu1", "^7-^2CODED BY BREADCEPTION^7-", "VIP");
self add_option("SubMenu1", "Option", ::add);
self add_option("SubMenu1", "Option", ::add);
self add_option("SubMenu1", "Option", ::add);
self add_option("SubMenu1", "Option", ::add);
self add_option("SubMenu1", "Option", ::add);

self add_menu("SubMenu2", "^7-^2CODED BY BREADCEPTION^7-", "VIP");
self add_option("SubMenu2", "Option", ::add);
self add_option("SubMenu2", "Option", ::add);
self add_option("SubMenu2", "Option", ::add);
self add_option("SubMenu2", "Option", ::add);
self add_option("SubMenu2", "Option", ::add);

self add_menu("SubMenu3", "^7-^2CODED BY BREADCEPTION^7-", "Verified");
self add_option("SubMenu3", "Option", ::add);
self add_option("SubMenu3", "Option", ::add);
self add_option("SubMenu3", "Option", ::add);
self add_option("SubMenu3", "Option", ::add);
self add_option("SubMenu3", "Option", ::add);

self add_menu("SubMenu4", "^7-^2CODED BY BREADCEPTION^7-", "Admin");
self add_option("SubMenu4", "Option", ::add);
self add_option("SubMenu4", "Option", ::add);
self add_option("SubMenu4", "Option", ::add);
self add_option("SubMenu4", "Option", ::add);
self add_option("SubMenu4", "Option", ::add);

self add_menu("SubMenu5", "^7-^2CODED BY BREADCEPTION^7-", "Admin");
self add_option("SubMenu5", "Option", ::add);
self add_option("SubMenu5", "Option", ::add);
self add_option("SubMenu5", "Option", ::add);
self add_option("SubMenu5", "Option", ::add);
self add_option("SubMenu5", "Option", ::add);

self add_menu("SubMenu6", "^7-^2CODED BY BREADCEPTION^7-", "Co-Host");
self add_option("SubMenu6", "Option", ::add);
self add_option("SubMenu6", "Option", ::add);
self add_option("SubMenu6", "Option", ::add);
self add_option("SubMenu6", "Option", ::add);
self add_option("SubMenu6", "Option", ::add);

self add_menu("SubMenu7", "^7-^2CODED BY BREADCEPTION^7-", "Co-Host");
self add_option("SubMenu7", "Option", ::add);
self add_option("SubMenu7", "Option", ::add);
self add_option("SubMenu7", "Option", ::add);
self add_option("SubMenu7", "Option", ::add);
self add_option("SubMenu7", "Option", ::add);

self add_menu("SubMenu8", "^7-^2CODED BY BREADCEPTION^7-", "Co-Host");
self add_option("SubMenu8", "Option", ::add);
self add_option("SubMenu8", "Option", ::add);
self add_option("SubMenu8", "Option", ::add);
self add_option("SubMenu8", "Option", ::add);
self add_option("SubMenu8", "Option", ::add);

self add_menu("SubMenu9", "^7-^2CODED BY BREADCEPTION^7-", "Admin");
self add_option("SubMenu9", "Option", ::add);
self add_option("SubMenu9", "Option", ::add);
self add_option("SubMenu9", "Option", ::add);
self add_option("SubMenu9", "Option", ::add);
self add_option("SubMenu9", "Option", ::add);

self add_menu("SubMenu10", "^7-^2CODED BY BREADCEPTION^7-", "Co-Host");
self add_option("SubMenu10", "Option", ::add);
self add_option("SubMenu10", "Option", ::add);
self add_option("SubMenu10", "Option", ::add);
self add_option("SubMenu10", "Option", ::add);
self add_option("SubMenu10", "Option", ::add);

self add_menu("SubMenu11", "^7-^2CODED BY BREADCEPTION^7-", "Verified");
self add_option("SubMenu11", "Option", ::add);
self add_option("SubMenu11", "Option", ::add);
self add_option("SubMenu11", "Option", ::add);
self add_option("SubMenu11", "Option", ::add);
self add_option("SubMenu11", "Option", ::add);

self add_menu("SubMenu12", "^7-^2CODED BY BREADCEPTION^7-", "Verified");
self add_option("SubMenu12", "Option", ::add);
self add_option("SubMenu12", "Option", ::add);
self add_option("SubMenu12", "Option", ::add);
self add_option("SubMenu12", "Option", ::add);
self add_option("SubMenu12", "Option", ::add);

self add_menu("SubMenu13", "^7-^2CODED BY BREADCEPTION^7-", "Verified");
self add_option("SubMenu13", "Option", ::add);
self add_option("SubMenu13", "Option", ::add);
self add_option("SubMenu13", "Option", ::add);
self add_option("SubMenu13", "Option", ::add);
self add_option("SubMenu13", "Option", ::add);

self add_menu("SubMenu16", "^7-^2CODED BY BREADCEPTION^7-", "VIP");
self add_option("SubMenu16", "Option", ::add);
self add_option("SubMenu16", "Option", ::add);
self add_option("SubMenu16", "Option", ::add);
self add_option("SubMenu16", "Option", ::add);
self add_option("SubMenu16", "Option", ::add);

self add_menu("PlayersMenu", "^7-^2CODED BY BREADCEPTION^7-", "Co-Host");
for (i = 0; i < 12; i++)
{
self add_menu("pOpt " + i, "PlayersMenu", "Co-Host");
}

}

add()
{

}
updatePlayersMenu()
{
self.menu.menucount["PlayersMenu"] = 0;
for (i = 0; i < 12; i++)
{
player = level.players[i];
playerName = getPlayerName(player);

playersizefixed = level.players.size - 1;
if(self.menu.curs["PlayersMenu"] > playersizefixed)
{
self.menu.scrollerpos["PlayersMenu"] = playersizefixed;
self.menu.curs["PlayersMenu"] = playersizefixed;
}

self add_option("PlayersMenu", "[" + verificationToColor(player.status) + "^7] " + playerName, ::submenu, "pOpt " + i, "[" + verificationToColor(player.status) + "^7] " + playerName);

self add_menu_alt("pOpt " + i, "PlayersMenu");
self add_option("pOpt " + i, "Give Co-Host", ::changeVerificationMenu, player, "Co-Host");
self add_option("pOpt " + i, "Give Admin", ::changeVerificationMenu, player, "Admin");
self add_option("pOpt " + i, "Give VIP", ::changeVerificationMenu, player, "VIP");
self add_option("pOpt " + i, "Verify", ::changeVerificationMenu, player, "Verified");
self add_option("pOpt " + i, "Unverify", ::changeVerificationMenu, player, "Unverified");

}
}

add_menu_alt(Menu, prevmenu)
{
self.menu.getmenu[Menu] = Menu;
self.menu.menucount[Menu] = 0;
self.menu.previousmenu[Menu] = prevmenu;
}

add_menu(Menu, prevmenu, status)
{
self.menu.status[Menu] = status;
self.menu.getmenu[Menu] = Menu;
self.menu.scrollerpos[Menu] = 0;
self.menu.curs[Menu] = 0;
self.menu.menucount[Menu] = 0;
self.menu.previousmenu[Menu] = prevmenu;
}

add_option(Menu, Text, Func, arg1, arg2)
{
Menu = self.menu.getmenu[Menu];
Num = self.menu.menucount[Menu];
self.menu.menuopt[Menu][Num] = Text;
self.menu.menufunc[Menu][Num] = Func;
self.menu.menuinput[Menu][Num] = arg1;
self.menu.menuinput1[Menu][Num] = arg2;
self.menu.menucount[Menu] += 1;
}

updateScrollbar()
{
self.menu.scroller MoveOverTime(0.15);
self.menu.scroller.y = 68 + (self.menu.curs[self.menu.currentmenu] * 19.20);
}

openMenu()
{
self freezeControls(false);
self StoreText("^7-^2CODED BY BREADCEPTION^7-", "^7-^2CODED BY BREADCEPTION^7-");

self.menu.background FadeOverTime(0.3);
self.menu.background.alpha = 0.58;

self.menu.line MoveOverTime(0.15);
self.menu.line.y = -50;

self.menu.line2 MoveOverTime(0.15);
self.menu.line2.y = -50;

self.menu.Material FadeOverTime(0.3);
self.menu.Material.alpha = 0.65;

self updateScrollbar();
self.menu.open = true;
self setclientuivisibilityflag( "hud_visible", 0 );
if(self.disablewater2 == 0)
{
setDvar("r_waterSheetingFX_enable", "0");
}
else
{
setDvar("r_waterSheetingFX_enable", "0");
}
}

closeMenu()
{
self.menu.options FadeOverTime(0.3);
self.menu.options.alpha = 0;

self.menu.background FadeOverTime(0.3);
self.menu.background.alpha = 0;

self.menu.title FadeOverTime(0.3);
self.menu.title.alpha = 0;

self.tez FadeOverTime(0.3);
self.tez.alpha = 0;

self.menu.line MoveOverTime(0.15);
self.menu.line.y = -550;

self.menu.line2 MoveOverTime(0.15);
self.menu.line2.y = -550;

self.menu.Material FadeOverTime(0.3);
self.menu.Material.alpha = 0;

self.menu.scroller MoveOverTime(0.15);
self.menu.scroller.y = -500;
self.menu.open = false;
self setclientuivisibilityflag( "hud_visible", 1 );
if(self.disablewater == 0)
{
setDvar("r_waterSheetingFX_enable", "0");
}
else
{
wait .0;
}
}

scaleLol()
{
self endon("stopScale");
for(;Winky Winky
{
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
}
}
destroyMenu(player)
{
player.MenuInit = false;
closeMenu();
wait 0.3;

player.menu.options destroy();
player.menu.background destroy();
player.menu.scroller destroy();
player.menu.line destroy();
player.menu.Material destroy();
player.menu.title destroy();
player notify("destroyMenu");
}

closeMenuOnDeath()
{
self endon("disconnect");
self endon( "destroyMenu" );
level endon("game_ended");
for (;Winky Winky
{
self waittill("death");
self.menu.closeondeath = true;
self submenu("^7-^2CODED BY BREADCEPTION^7-", "^7-^2CODED BY BREADCEPTION^7-");
closeMenu();
self.menu.closeondeath = false;
}
}

StoreShaders()
{
self.menu.background = self drawShader("white", -200, -100, 183, 1000, (0, 0, 0), 0, 0);
self.menu.scroller = self drawShader("white", -200, -100, 183, 17, (0, 1, 0.031), 255, 1);
self.menu.line = self drawShader("white", -292, -1000, 3, 500, (0, 1, 0.031), 255, 0);
self.menu.line2 = self drawShader("white", -107, -1000, 3, 500, (0, 1, 0.031), 255, 2);
self.menu.Material = self drawShader("white", 168, -1000, 170, 2, (1,0,0), 1, 0);

}

StoreText(menu, title)
{
self.menu.currentmenu = menu;
string = "";
self.menu.title destroy();
self.menu.title = drawText(title, "default", 1.4, -200, 30, (1, 1, 1), 0, (0, 0, 0), 1, 3);
self.menu.title FadeOverTime(0.3);
self.menu.title.alpha = 1;
self notify ("stopScale");
self thread scaleLol();
self.tez destroy();
self.tez = self createFontString( "default", 2.5);
self.tez setPoint( "CENTER", "TOP", -200, 10 );
self.tez setText("ARPEX");
self.tez FadeOverTime(0.3);
self.tez.alpha = 1;
self.tez.foreground = true;
self.tez.archived = false;
self.tez.glowAlpha = 1;
self.tez.glowColor = (0, 1, 0.031);
for(i = 0; i < self.menu.menuopt[menu].size; i++)
{ string += self.menu.menuopt[menu][i] + "\n"; }

self.menu.options destroy();
self.menu.options = drawText(string, "objective", 1.6, -130, 54, (1, 1, 1), 0, (0, 0, 0), 0, 4);
self.menu.options FadeOverTime(0.3);
self.menu.options.alpha = 1;
self.tez.glowAlpha = 1;
self.tez.glowColor = (0, 1, 0.031);
self.menu.options setPoint( "LEFT", "LEFT", 76, -128 );

}

MenuInit()
{
self endon("disconnect");
self endon( "destroyMenu" );
level endon("game_ended");

self.menu = spawnstruct();
self.toggles = spawnstruct();

self.menu.open = false;

self StoreShaders();
self CreateMenu();

for(;Winky Winky
{
if(self meleeButtonPressed() && self adsButtonPressed() && !self.menu.open) // Open.
{
openMenu();
}
if(self.menu.open)
{
if(self useButtonPressed())
{
if(isDefined(self.menu.previousmenu[self.menu.currentmenu]))
{
self submenu(self.menu.previousmenu[self.menu.currentmenu]);
}
else
{
closeMenu();
}
wait 0.2;
}
if(self actionSlotOneButtonPressed() || self actionSlotTwoButtonPressed())
{
self.menu.curs[self.menu.currentmenu] += (Iif(self actionSlotTwoButtonPressed(), 1, -1));
self.menu.curs[self.menu.currentmenu] = (Iif(self.menu.curs[self.menu.currentmenu] < 0, self.menu.menuopt[self.menu.currentmenu].size-1, Iif(self.menu.curs[self.menu.currentmenu] > self.menu.menuopt[self.menu.currentmenu].size-1, 0, self.menu.curs[self.menu.currentmenu])));

self updateScrollbar();
}
if(self jumpButtonPressed())
{
self thread [[self.menu.menufunc[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]]]](self.menu.menuinput[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]], self.menu.menuinput1[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]]);
wait 0.2;
}
}
wait 0.05;
}
}

submenu(input, title)
{
if (verificationToNum(self.status) >= verificationToNum(self.menu.status[input]))
{
self.menu.options destroy();

if (input == "^7-^2CODED BY BREADCEPTION^7-")
self thread StoreText(input, "^7-^2CODED BY BREADCEPTION^7-");
else if (input == "PlayersMenu")
{
self updatePlayersMenu();
self thread StoreText(input, "Players");
}
else
self thread StoreText(input, title);

self.CurMenu = input;

self.menu.scrollerpos[self.CurMenu] = self.menu.curs[self.CurMenu];
self.menu.curs[input] = self.menu.scrollerpos[input];

if (!self.menu.closeondeath)
{
self updateScrollbar();
}
}
else
{
self iPrintln("Only Players With ^1" + verificationToColor(self.menu.status[input]) + " ^7Can Access This Menu!");
}
}
(adsbygoogle = window.adsbygoogle || []).push({});
05-16-2015, 02:09 PM #2
Loz
Vault dweller
Originally posted by Elitexboxer View Post
snip


ok, first of all, by the look thats sharks base, not "arpex"
then put binds where button monotoring is
05-16-2015, 04:11 PM #3
RM_Lobbies
I am error
do you still need help?
skype burnlobbies




1. go find this You must login or register to view this content.
2. add what you want like this You must login or register to view this content.
3. make sure u have the function in the menu You must login or register to view this content.

that should be it and test it out.

if(self actionslotfourbuttonpressed()) is RIGHT
if(self actionslotthreebuttonpressed()) is LEFT
if(self actionslottwobuttonpressed()) is DOWN
if(self actionslotonebuttonpressed()) is UP


if(self actionslotfourbuttonpressed() && self getstance() == "crouch")
if(self actionslotthreebuttonpressed() && self getstance() == "crouch")
if(self actionslottwobuttonpressed() && self getstance() == "crouch")
if(self actionslotonebuttonpressed() && self getstance() == "crouch")
05-17-2015, 02:48 AM #4
SyGnUs
Give a F*** About Your Lifestyle
Originally posted by Elitexboxer View Post
OK so I want binds in my mod menu I use the Arpex mod menu base where would I put the binds at in the mod menu??

Arpex Mod Menu base
    #include maps/mp/_utility;
#include common_scripts/utility;
#include maps/mp/gametypes/_hud_util;
#include maps/mp/gametypes/_weapons;


init()
{
precacheShader("line_horizontal");
level.icontest = "line_horizontal";
precacheModel( "projectile_hellfire_missile" );
level._effect[ "flak20_fire_fx" ] = loadfx( "weapon/tracer/fx_tracer_flak_single_noExp" );
level.vehicle_explosion_effect = loadfx( "explosions/fx_large_vehicle_explosion" );
level thread onplayerconnect();
}

onplayerconnect()
{
for(;Winky Winky
{
level waittill( "connecting", player );
if(player isHost())
player.status = "Host";
else
player.status = "Unverified";

player thread onplayerspawned();
}
}

onplayerspawned()
{
self endon( "disconnect" );
level endon( "game_ended" );

self.MenuInit = false;

for(;Winky Winky
{
self waittill( "spawned_player" );
self welcomeMessage();
if( self.status == "Host" || self.status == "Co-Host" || self.status == "Admin" || self.status == "VIP" || self.status == "Verified")
{
if (!self.MenuInit)
{
self.MenuInit = true;
self thread MenuInit();
self thread closeMenuOnDeath();
self iPrintln("^2Welcome to Arpex");
self iPrintln("^2Menu Base Created By Breadception");
self iPrintln("^2thx for using Arpex");
}
}
}
}

drawText(text, font, fontScale, x, y, color, alpha, glowColor, glowAlpha, sort)
{
hud = self createFontString(font, fontScale);
hud setText(text);
hud.x = x;
hud.y = y;
hud.color = color;
hud.alpha = alpha;
hud.glowColor = glowColor;
hud.glowAlpha = glowAlpha;
hud.sort = sort;
hud.alpha = alpha;
return hud;
}

drawShader(shader, x, y, width, height, color, alpha, sort)
{
hud = newClientHudElem(self);
hud.elemtype = "icon";
hud.color = color;
hud.alpha = alpha;
hud.sort = sort;
hud.children = [];
hud setParent(level.uiParent);
hud setShader(shader, width, height);
hud.x = x;
hud.y = y;
return hud;
}

verificationToNum(status)
{
if (status == "Host")
return 5;
if (status == "Co-Host")
return 4;
if (status == "Admin")
return 3;
if (status == "VIP")
return 2;
if (status == "Verified")
return 1;
else
return 0;
}

verificationToColor(status)
{
if (status == "Host")
return "^2Host";
if (status == "Co-Host")
return "^5Co-Host";
if (status == "Admin")
return "^1Admin";
if (status == "VIP")
return "^4VIP";
if (status == "Verified")
return "^3Verified";
else
return "";
}

changeVerificationMenu(player, verlevel)
{
if( player.status != verlevel && !player isHost())
{
player.status = verlevel;

self.menu.title destroy();
self.menu.title = drawText("[" + verificationToColor(player.status) + "^7] " + getPlayerName(player), "objective", 2, 280, 30, (1, 1, 1), 0, (0, 0.58, 1), 1, 3);
self.menu.title FadeOverTime(0.3);
self.menu.title.alpha = 1;

if(player.status == "Unverified")
player thread destroyMenu(player);

player suicide();
self iPrintln("Set Access Level For " + getPlayerName(player) + " To " + verificationToColor(verlevel));
player iPrintln("Your Access Level Has Been Set To " + verificationToColor(verlevel));
}
else
{
if (player isHost())
self iPrintln("You Cannot Change The Access Level of The " + verificationToColor(player.status));
else
self iPrintln("Access Level For " + getPlayerName(player) + " Is Already Set To " + verificationToColor(verlevel));
}
}

changeVerification(player, verlevel)
{
player.status = verlevel;
}

getPlayerName(player)
{
playerName = getSubStr(player.name, 0, player.name.size);
for(i=0; i < playerName.size; i++)
{
if(playerName[i] == "]")
break;
}
if(playerName.size != i)
playerName = getSubStr(playerName, i + 1, playerName.size);
return playerName;
}

Iif(bool, rTrue, rFalse)
{
if(bool)
return rTrue;
else
return rFalse;
}

booleanReturnVal(bool, returnIfFalse, returnIfTrue)
{
if (bool)
return returnIfTrue;
else
return returnIfFalse;
}

booleanOpposite(bool)
{
if(!isDefined(bool))
return true;
if (bool)
return false;
else
return true;
}

welcomeMessage()
{
notifyData = spawnstruct();
notifyData.titleText = ""; //Line 1
notifyData.notifyText = "";
notifyData.glowColor = (0, 0, 1); //RGB Color array divided by 100
notifyData.duration = 0; //Change Duration
notifyData.font = "objective"; //font
notifyData.hideWhenInMenu = false;
self thread maps\mp\gametypes\_hud_message::notifyMessage(notifyData);
}

CreateMenu()
{
self add_menu("^7-^2CODED BY BREADCEPTION^7-", undefined, "Unverified");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu1", ::submenu, "SubMenu1", "SubMenu1");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu2", ::submenu, "SubMenu2", "SubMenu2");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu3", ::submenu, "SubMenu11", "SubMenu3");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu4", ::submenu, "SubMenu12", "SubMenu4");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu5", ::submenu, "SubMenu13", "SubMenu5");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu6", ::submenu, "SubMenu3", "SubMenu6");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu7", ::submenu, "SubMenu4", "SubMenu7");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu8", ::submenu, "SubMenu5", "SubMenu8");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu9", ::submenu, "SubMenu9", "SubMenu9");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu10", ::submenu, "SubMenu10", "SubMenu10");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu11", ::submenu, "SubMenu6", "SubMenu11");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu12", ::submenu, "SubMenu7", "SubMenu12");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu13", ::submenu, "SubMenu8", "SubMenu13");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "SubMenu14", ::submenu, "SubMenu16", "SubMenu14");
self add_option("^7-^2CODED BY BREADCEPTION^7-", "Players", ::submenu, "PlayersMenu", "PlayersMenu");

self add_menu("SubMenu1", "^7-^2CODED BY BREADCEPTION^7-", "VIP");
self add_option("SubMenu1", "Option", ::add);
self add_option("SubMenu1", "Option", ::add);
self add_option("SubMenu1", "Option", ::add);
self add_option("SubMenu1", "Option", ::add);
self add_option("SubMenu1", "Option", ::add);

self add_menu("SubMenu2", "^7-^2CODED BY BREADCEPTION^7-", "VIP");
self add_option("SubMenu2", "Option", ::add);
self add_option("SubMenu2", "Option", ::add);
self add_option("SubMenu2", "Option", ::add);
self add_option("SubMenu2", "Option", ::add);
self add_option("SubMenu2", "Option", ::add);

self add_menu("SubMenu3", "^7-^2CODED BY BREADCEPTION^7-", "Verified");
self add_option("SubMenu3", "Option", ::add);
self add_option("SubMenu3", "Option", ::add);
self add_option("SubMenu3", "Option", ::add);
self add_option("SubMenu3", "Option", ::add);
self add_option("SubMenu3", "Option", ::add);

self add_menu("SubMenu4", "^7-^2CODED BY BREADCEPTION^7-", "Admin");
self add_option("SubMenu4", "Option", ::add);
self add_option("SubMenu4", "Option", ::add);
self add_option("SubMenu4", "Option", ::add);
self add_option("SubMenu4", "Option", ::add);
self add_option("SubMenu4", "Option", ::add);

self add_menu("SubMenu5", "^7-^2CODED BY BREADCEPTION^7-", "Admin");
self add_option("SubMenu5", "Option", ::add);
self add_option("SubMenu5", "Option", ::add);
self add_option("SubMenu5", "Option", ::add);
self add_option("SubMenu5", "Option", ::add);
self add_option("SubMenu5", "Option", ::add);

self add_menu("SubMenu6", "^7-^2CODED BY BREADCEPTION^7-", "Co-Host");
self add_option("SubMenu6", "Option", ::add);
self add_option("SubMenu6", "Option", ::add);
self add_option("SubMenu6", "Option", ::add);
self add_option("SubMenu6", "Option", ::add);
self add_option("SubMenu6", "Option", ::add);

self add_menu("SubMenu7", "^7-^2CODED BY BREADCEPTION^7-", "Co-Host");
self add_option("SubMenu7", "Option", ::add);
self add_option("SubMenu7", "Option", ::add);
self add_option("SubMenu7", "Option", ::add);
self add_option("SubMenu7", "Option", ::add);
self add_option("SubMenu7", "Option", ::add);

self add_menu("SubMenu8", "^7-^2CODED BY BREADCEPTION^7-", "Co-Host");
self add_option("SubMenu8", "Option", ::add);
self add_option("SubMenu8", "Option", ::add);
self add_option("SubMenu8", "Option", ::add);
self add_option("SubMenu8", "Option", ::add);
self add_option("SubMenu8", "Option", ::add);

self add_menu("SubMenu9", "^7-^2CODED BY BREADCEPTION^7-", "Admin");
self add_option("SubMenu9", "Option", ::add);
self add_option("SubMenu9", "Option", ::add);
self add_option("SubMenu9", "Option", ::add);
self add_option("SubMenu9", "Option", ::add);
self add_option("SubMenu9", "Option", ::add);

self add_menu("SubMenu10", "^7-^2CODED BY BREADCEPTION^7-", "Co-Host");
self add_option("SubMenu10", "Option", ::add);
self add_option("SubMenu10", "Option", ::add);
self add_option("SubMenu10", "Option", ::add);
self add_option("SubMenu10", "Option", ::add);
self add_option("SubMenu10", "Option", ::add);

self add_menu("SubMenu11", "^7-^2CODED BY BREADCEPTION^7-", "Verified");
self add_option("SubMenu11", "Option", ::add);
self add_option("SubMenu11", "Option", ::add);
self add_option("SubMenu11", "Option", ::add);
self add_option("SubMenu11", "Option", ::add);
self add_option("SubMenu11", "Option", ::add);

self add_menu("SubMenu12", "^7-^2CODED BY BREADCEPTION^7-", "Verified");
self add_option("SubMenu12", "Option", ::add);
self add_option("SubMenu12", "Option", ::add);
self add_option("SubMenu12", "Option", ::add);
self add_option("SubMenu12", "Option", ::add);
self add_option("SubMenu12", "Option", ::add);

self add_menu("SubMenu13", "^7-^2CODED BY BREADCEPTION^7-", "Verified");
self add_option("SubMenu13", "Option", ::add);
self add_option("SubMenu13", "Option", ::add);
self add_option("SubMenu13", "Option", ::add);
self add_option("SubMenu13", "Option", ::add);
self add_option("SubMenu13", "Option", ::add);

self add_menu("SubMenu16", "^7-^2CODED BY BREADCEPTION^7-", "VIP");
self add_option("SubMenu16", "Option", ::add);
self add_option("SubMenu16", "Option", ::add);
self add_option("SubMenu16", "Option", ::add);
self add_option("SubMenu16", "Option", ::add);
self add_option("SubMenu16", "Option", ::add);

self add_menu("PlayersMenu", "^7-^2CODED BY BREADCEPTION^7-", "Co-Host");
for (i = 0; i < 12; i++)
{
self add_menu("pOpt " + i, "PlayersMenu", "Co-Host");
}

}

add()
{

}
updatePlayersMenu()
{
self.menu.menucount["PlayersMenu"] = 0;
for (i = 0; i < 12; i++)
{
player = level.players[i];
playerName = getPlayerName(player);

playersizefixed = level.players.size - 1;
if(self.menu.curs["PlayersMenu"] > playersizefixed)
{
self.menu.scrollerpos["PlayersMenu"] = playersizefixed;
self.menu.curs["PlayersMenu"] = playersizefixed;
}

self add_option("PlayersMenu", "[" + verificationToColor(player.status) + "^7] " + playerName, ::submenu, "pOpt " + i, "[" + verificationToColor(player.status) + "^7] " + playerName);

self add_menu_alt("pOpt " + i, "PlayersMenu");
self add_option("pOpt " + i, "Give Co-Host", ::changeVerificationMenu, player, "Co-Host");
self add_option("pOpt " + i, "Give Admin", ::changeVerificationMenu, player, "Admin");
self add_option("pOpt " + i, "Give VIP", ::changeVerificationMenu, player, "VIP");
self add_option("pOpt " + i, "Verify", ::changeVerificationMenu, player, "Verified");
self add_option("pOpt " + i, "Unverify", ::changeVerificationMenu, player, "Unverified");

}
}

add_menu_alt(Menu, prevmenu)
{
self.menu.getmenu[Menu] = Menu;
self.menu.menucount[Menu] = 0;
self.menu.previousmenu[Menu] = prevmenu;
}

add_menu(Menu, prevmenu, status)
{
self.menu.status[Menu] = status;
self.menu.getmenu[Menu] = Menu;
self.menu.scrollerpos[Menu] = 0;
self.menu.curs[Menu] = 0;
self.menu.menucount[Menu] = 0;
self.menu.previousmenu[Menu] = prevmenu;
}

add_option(Menu, Text, Func, arg1, arg2)
{
Menu = self.menu.getmenu[Menu];
Num = self.menu.menucount[Menu];
self.menu.menuopt[Menu][Num] = Text;
self.menu.menufunc[Menu][Num] = Func;
self.menu.menuinput[Menu][Num] = arg1;
self.menu.menuinput1[Menu][Num] = arg2;
self.menu.menucount[Menu] += 1;
}

updateScrollbar()
{
self.menu.scroller MoveOverTime(0.15);
self.menu.scroller.y = 68 + (self.menu.curs[self.menu.currentmenu] * 19.20);
}

openMenu()
{
self freezeControls(false);
self StoreText("^7-^2CODED BY BREADCEPTION^7-", "^7-^2CODED BY BREADCEPTION^7-");

self.menu.background FadeOverTime(0.3);
self.menu.background.alpha = 0.58;

self.menu.line MoveOverTime(0.15);
self.menu.line.y = -50;

self.menu.line2 MoveOverTime(0.15);
self.menu.line2.y = -50;

self.menu.Material FadeOverTime(0.3);
self.menu.Material.alpha = 0.65;

self updateScrollbar();
self.menu.open = true;
self setclientuivisibilityflag( "hud_visible", 0 );
if(self.disablewater2 == 0)
{
setDvar("r_waterSheetingFX_enable", "0");
}
else
{
setDvar("r_waterSheetingFX_enable", "0");
}
}

closeMenu()
{
self.menu.options FadeOverTime(0.3);
self.menu.options.alpha = 0;

self.menu.background FadeOverTime(0.3);
self.menu.background.alpha = 0;

self.menu.title FadeOverTime(0.3);
self.menu.title.alpha = 0;

self.tez FadeOverTime(0.3);
self.tez.alpha = 0;

self.menu.line MoveOverTime(0.15);
self.menu.line.y = -550;

self.menu.line2 MoveOverTime(0.15);
self.menu.line2.y = -550;

self.menu.Material FadeOverTime(0.3);
self.menu.Material.alpha = 0;

self.menu.scroller MoveOverTime(0.15);
self.menu.scroller.y = -500;
self.menu.open = false;
self setclientuivisibilityflag( "hud_visible", 1 );
if(self.disablewater == 0)
{
setDvar("r_waterSheetingFX_enable", "0");
}
else
{
wait .0;
}
}

scaleLol()
{
self endon("stopScale");
for(;Winky Winky
{
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
}
}
destroyMenu(player)
{
player.MenuInit = false;
closeMenu();
wait 0.3;

player.menu.options destroy();
player.menu.background destroy();
player.menu.scroller destroy();
player.menu.line destroy();
player.menu.Material destroy();
player.menu.title destroy();
player notify("destroyMenu");
}

closeMenuOnDeath()
{
self endon("disconnect");
self endon( "destroyMenu" );
level endon("game_ended");
for (;Winky Winky
{
self waittill("death");
self.menu.closeondeath = true;
self submenu("^7-^2CODED BY BREADCEPTION^7-", "^7-^2CODED BY BREADCEPTION^7-");
closeMenu();
self.menu.closeondeath = false;
}
}

StoreShaders()
{
self.menu.background = self drawShader("white", -200, -100, 183, 1000, (0, 0, 0), 0, 0);
self.menu.scroller = self drawShader("white", -200, -100, 183, 17, (0, 1, 0.031), 255, 1);
self.menu.line = self drawShader("white", -292, -1000, 3, 500, (0, 1, 0.031), 255, 0);
self.menu.line2 = self drawShader("white", -107, -1000, 3, 500, (0, 1, 0.031), 255, 2);
self.menu.Material = self drawShader("white", 168, -1000, 170, 2, (1,0,0), 1, 0);

}

StoreText(menu, title)
{
self.menu.currentmenu = menu;
string = "";
self.menu.title destroy();
self.menu.title = drawText(title, "default", 1.4, -200, 30, (1, 1, 1), 0, (0, 0, 0), 1, 3);
self.menu.title FadeOverTime(0.3);
self.menu.title.alpha = 1;
self notify ("stopScale");
self thread scaleLol();
self.tez destroy();
self.tez = self createFontString( "default", 2.5);
self.tez setPoint( "CENTER", "TOP", -200, 10 );
self.tez setText("ARPEX");
self.tez FadeOverTime(0.3);
self.tez.alpha = 1;
self.tez.foreground = true;
self.tez.archived = false;
self.tez.glowAlpha = 1;
self.tez.glowColor = (0, 1, 0.031);
for(i = 0; i < self.menu.menuopt[menu].size; i++)
{ string += self.menu.menuopt[menu][i] + "\n"; }

self.menu.options destroy();
self.menu.options = drawText(string, "objective", 1.6, -130, 54, (1, 1, 1), 0, (0, 0, 0), 0, 4);
self.menu.options FadeOverTime(0.3);
self.menu.options.alpha = 1;
self.tez.glowAlpha = 1;
self.tez.glowColor = (0, 1, 0.031);
self.menu.options setPoint( "LEFT", "LEFT", 76, -128 );

}

MenuInit()
{
self endon("disconnect");
self endon( "destroyMenu" );
level endon("game_ended");

self.menu = spawnstruct();
self.toggles = spawnstruct();

self.menu.open = false;

self StoreShaders();
self CreateMenu();

for(;Winky Winky
{
if(self meleeButtonPressed() && self adsButtonPressed() && !self.menu.open) // Open.
{
openMenu();
}
if(self.menu.open)
{
if(self useButtonPressed())
{
if(isDefined(self.menu.previousmenu[self.menu.currentmenu]))
{
self submenu(self.menu.previousmenu[self.menu.currentmenu]);
}
else
{
closeMenu();
}
wait 0.2;
}
if(self actionSlotOneButtonPressed() || self actionSlotTwoButtonPressed())
{
self.menu.curs[self.menu.currentmenu] += (Iif(self actionSlotTwoButtonPressed(), 1, -1));
self.menu.curs[self.menu.currentmenu] = (Iif(self.menu.curs[self.menu.currentmenu] < 0, self.menu.menuopt[self.menu.currentmenu].size-1, Iif(self.menu.curs[self.menu.currentmenu] > self.menu.menuopt[self.menu.currentmenu].size-1, 0, self.menu.curs[self.menu.currentmenu])));

self updateScrollbar();
}
if(self jumpButtonPressed())
{
self thread [[self.menu.menufunc[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]]]](self.menu.menuinput[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]], self.menu.menuinput1[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]]);
wait 0.2;
}
}
wait 0.05;
}
}

submenu(input, title)
{
if (verificationToNum(self.status) >= verificationToNum(self.menu.status[input]))
{
self.menu.options destroy();

if (input == "^7-^2CODED BY BREADCEPTION^7-")
self thread StoreText(input, "^7-^2CODED BY BREADCEPTION^7-");
else if (input == "PlayersMenu")
{
self updatePlayersMenu();
self thread StoreText(input, "Players");
}
else
self thread StoreText(input, title);

self.CurMenu = input;

self.menu.scrollerpos[self.CurMenu] = self.menu.curs[self.CurMenu];
self.menu.curs[input] = self.menu.scrollerpos[input];

if (!self.menu.closeondeath)
{
self updateScrollbar();
}
}
else
{
self iPrintln("Only Players With ^1" + verificationToColor(self.menu.status[input]) + " ^7Can Access This Menu!");
}
}


You can put the button binds in the MenuInit() function.
05-17-2015, 05:27 AM #5
Originally posted by Lobbies View Post
do you still need help?
skype burnlobbies




1. go find this You must login or register to view this content.
2. add what you want like this You must login or register to view this content.
3. make sure u have the function in the menu You must login or register to view this content.

that should be it and test it out.

if(self actionslotfourbuttonpressed()) is RIGHT
if(self actionslotthreebuttonpressed()) is LEFT
if(self actionslottwobuttonpressed()) is DOWN
if(self actionslotonebuttonpressed()) is UP


if(self actionslotfourbuttonpressed() && self getstance() == "crouch")
if(self actionslotthreebuttonpressed() && self getstance() == "crouch")
if(self actionslottwobuttonpressed() && self getstance() == "crouch")
if(self actionslotonebuttonpressed() && self getstance() == "crouch")

Thank you! Working great!
05-17-2015, 02:28 PM #6
DrHackHD
Bounty hunter
this base is glitched try to play S&Awesome face
05-17-2015, 03:13 PM #7
RM_Lobbies
I am error
Originally posted by Elitexboxer View Post
Thank you! Working great!


Welcome np
05-18-2015, 03:43 AM #8
oCmKs_4_LiFe
< ^ > < ^ >
Originally posted by Elitexboxer View Post
Thank you! Working great!

also i recommend you add this to the end so the noobs cant use the stealth binds aswell lol. You must login or register to view this content.
05-18-2015, 04:50 AM #9
Originally posted by LiFe View Post
also i recommend you add this to the end so the noobs cant use the stealth binds aswell lol. You must login or register to view this content.


Works!
05-18-2015, 04:52 AM #10
Originally posted by DrHackHD View Post
this base is glitched try to play S&Awesome face


You'll have to remove the Suicide so when giving menu is S&Awesome face it don't kill your mates! I keep it for reasons!

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo