Question Black Ops 2 GSC verification script isn't working?

n3m3sis28

Well-Known Member
Messages
114
Reaction score
29
Points
213
hello can someone help me im making a bo2 zombie mod menu but there is somthing wrong with the verification script when i give someone cohost he gets a mssg with you have been givin co instead of cohost and he cant open the menu
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
hello can someone help me im making a bo2 zombie mod menu but there is somthing wrong with the verification script when i give someone cohost he gets a mssg with you have been givin co instead of cohost and he cant open the menu
To receive help, you need to show us the function.
 

n3m3sis28

Well-Known Member
Messages
114
Reaction score
29
Points
213
self add_menu("PlayersMenu", self.menuname, "Co-Host");
for (i = 0; i < 17; i++)
{ self add_menu("pOpt " + i, "PlayersMenu", "Co-Host"); }
}

updatePlayersMenu()
{
self.menu.menucount["PlayersMenu"] = 0;
for (i = 0; i < 17; i++)
{
player = level.players;
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 ^5Co-Host^7", ::changeVerificationMenu, player, "Co-Host");
self add_option("pOpt " + i, "Give ^1Admin^7", ::changeVerificationMenu, player, "Admin");
self add_option("pOpt " + i, "Give ^6VIP^7", ::changeVerificationMenu, player, "VIP");
self add_option("pOpt " + i, "^2Verify^7", ::changeVerificationMenu, player, "Verified");
self add_option("pOpt " + i, "^3Unverify^7", ::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.10);
self.menu.scroller.y = 50 + (self.menu.curs[self.menu.currentmenu] * 14.40);

}

openMenu()
{

self.menu.backgroundMain thread moveTo("y", 10, .4);
self.menu.backgroundMain2 thread moveTo("y", 296, .4);

self.menu.background thread moveTo("x", 263+self.menuxpos, .4);
self.menu.scroller thread moveTo("x", 263+self.menuxpos, .4);

self.menu.background FadeOverTime(0.6);
self.menu.background.alpha = 0.55;

self.menu.scroller FadeOverTime(0.6);
self.menu.scroller.alpha = 1;

self.menu.backgroundMain FadeOverTime(0.6);
self.menu.backgroundMain.alpha = 0.55;
self.menu.backgroundMain2 FadeOverTime(0.6);
self.menu.backgroundMain2.alpha = 0.55;


self.menu.background1 FadeOverTime(0.6);
self.menu.background1.alpha = 0.08;

wait 0.5;



self freezeControls(false);
self StoreText(self.menuname, self.menuname);

self.menu.title2 FadeOVerTime(0.3);
self.menu.title2.alpha = 1;

self.menu.backgroundinfo FadeOverTime(0.3);
self.menu.backgroundinfo.alpha = 1;


self.menu.title FadeOverTime(0.3);


self.swagtext.alpha = 0.90;


self.menu.counter FadeOverTime(0.3);
self.menu.counter1 FadeOverTime(0.3);
self.menu.counter.alpha = 1;
self.menu.counter1.alpha = 1;
self.menu.counterSlash FadeOverTime(0.3);
self.menu.counterSlash.alpha = 1;

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

self updateScrollbar();
self.menu.open = true;
}

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

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

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

self.menu.counter FadeOverTime(0.3);
self.menu.counter1 FadeOverTime(0.3);
self.menu.counter.alpha = 0;
self.menu.counter1.alpha = 0;

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




self.swagtext FadeOverTime(0.30);
self.swagtext.alpha = 0;

self.menu.title2 FadeOVerTime(0.3);
self.menu.title2.alpha = 0;

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

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

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

self.menu.open = false;

wait 0.3;


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

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

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


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

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

self.menu.backgroundMain thread moveTo("y", -500, .4);
self.menu.backgroundMain2 thread moveTo("y", 500, .4);

self.menu.background thread moveTo("x", 800, .4);
self.menu.scroller thread moveTo("x", 800, .4);
}

destroyMenu(player)
{
player.MenuInit = false;
closeMenu();
wait 0.3;

player.menu.options destroy();
player.menu.background1 destroy();
player.menu.backgroundMain destroy();
player.menu.backgroundMain2 destroy();
player.menu.scroller destroy();
player.menu.scroller1 destroy();
player.infos destroy();

self.menu.title2 destroy();

player.menu.counter destroy();
player.menu.counter1 destroy();
player.menu.line destroy();
player.menu.line2 destroy();
player.menu.counterSlash destroy();
player.menu.title destroy();
player notify("destroyMenu");
}

closeMenuOnDeath()
{
self endon("disconnect");
self endon( "destroyMenu" );
level endon("game_ended");
for (;:wink:
{
self waittill("death");
self.menu.closeondeath = true;
self submenu(self.menuname, self.menuname);
closeMenu();
self.menu.closeondeath = false;
}
}
StoreShaders()
{
self.menu.background = self drawShader("white", 800, 35, 155, 262, (0, 0, 0), 0, 0);//263, 20
self.menu.backgroundMain = self drawShader("white", 263+self.menuxpos, -500, 155, 25, (0.537,0,1), 0, 0);//263, 20
self.menu.backgroundMain2 = self drawShader("white", 263+self.menuxpos, 500, 155, 14, (0.537,0,1), 0, 0);//263 296
self.menu.scroller = self drawShader("white", 800, -100, 155, 12, (0.537,0,1), 255, 1);//263, -100
}

titleFlash(){
for(;:wink:
{
self endon ("stopflash");
self.menu.title.glowcolor = (1, 0, 0);
wait 0.7;
self.menu.title.glowcolor = (1, 0, 0);
wait 0.7;
self.menu.title.glowcolor = (1, 0, 0);
}
}

StoreText(menu, title)
{
self.menu.currentmenu = menu;
string = "";
self.menu.title destroy();
self.menu.title = drawText("^F^0Rebug Menu", "default", 1.5, 235+self.menuxpos, 0, (0,0,0), 0, (0,0,0), 1, 3);
self.menu.title FadeOverTime(0);
self.menu.title.alpha = 1;
self.menu.title setPoint( "LEFT", "LEFT", 590+self.menuxpos, -182 );


self.menu.currentmenu = menu;
string = "";
self.menu.title2 destroy();
self.menu.title2 = drawText(title, "default", 1.2, 255+self.menuxpos, 0, (1, 1, 1), 0, (0, 0.7, 1), 1, 3);
self.menu.title2 FadeOverTime(0);
self.menu.title2.alpha = 1;
self.menu.title2 setPoint( "LEFT", "LEFT", 550+self.menuxpos, -161);

for(i = 0; i < self.menu.menuopt[menu].size; i++)
{ string +=self.menu.menuopt[menu] + "\n"; }

self.menu.counter destroy();
self.menu.counter = drawValue(self.menu.curs[menu] + 1, "objective", 1.2, "RIGHT", "CENTER", 325+self.menuxpos, -161, (1, 1, 1), 0, 1, 3);
self.menu.counter.alpha = 1;

self.menu.counter1 destroy();
self.menu.counter1 = drawValue(self.menu.menuopt[menu].size, "objective", 1.2, "RIGHT", "CENTER", 338+self.menuxpos, -161, (1, 1, 1), 0, 1, 3);


self.statuss destroy();
self.statuss = drawText("^F^0Made by: n3m3sis28 And QMT_Makaveli", "default", 1.1, 0+self.menuxpos, 0, (0,0,0), 0, (0,0,0), 1, 4);
self.statuss FadeOverTime(0);
self.statuss.alpha = 1;
self.statuss setPoint( "LEFT", "LEFT", 550+self.menuxpos, 99);

self.menu.options destroy();
self.menu.options = drawText(string, "objective", 1.2, 290+self.menuxpos, 90, (1, 1, 1), 0, (0, 0, 0), 0, 4);
self.menu.options FadeOverTime(0.5);
self.menu.options.alpha = 1;
self.menu.options setPoint( "LEFT", "LEFT", 550+self.menuxpos, -148);

}

//
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(;:wink:
{
if(self meleeButtonPressed() && self adsButtonPressed() && !self.menu.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.menu.counter setValue(self.menu.curs[self.menu.currentmenu] + 1);
self.menu.counter1 setValue(self.menu.menuopt[self.menu.currentmenu].size);

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 == self.menuname)
self thread StoreText(input, self.menuname);
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("^5Only Players With ^4" + verificationToColor(self.menu.status[input]) + " ^5Can Access This Menu!");
}
}
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
self add_menu("PlayersMenu", self.menuname, "Co-Host");
for (i = 0; i < 17; i++)
{ self add_menu("pOpt " + i, "PlayersMenu", "Co-Host"); }
}

updatePlayersMenu()
{
self.menu.menucount["PlayersMenu"] = 0;
for (i = 0; i < 17; i++)
{
player = level.players;
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 ^5Co-Host^7", ::changeVerificationMenu, player, "Co-Host");
self add_option("pOpt " + i, "Give ^1Admin^7", ::changeVerificationMenu, player, "Admin");
self add_option("pOpt " + i, "Give ^6VIP^7", ::changeVerificationMenu, player, "VIP");
self add_option("pOpt " + i, "^2Verify^7", ::changeVerificationMenu, player, "Verified");
self add_option("pOpt " + i, "^3Unverify^7", ::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.10);
self.menu.scroller.y = 50 + (self.menu.curs[self.menu.currentmenu] * 14.40);

}

openMenu()
{

self.menu.backgroundMain thread moveTo("y", 10, .4);
self.menu.backgroundMain2 thread moveTo("y", 296, .4);

self.menu.background thread moveTo("x", 263+self.menuxpos, .4);
self.menu.scroller thread moveTo("x", 263+self.menuxpos, .4);

self.menu.background FadeOverTime(0.6);
self.menu.background.alpha = 0.55;

self.menu.scroller FadeOverTime(0.6);
self.menu.scroller.alpha = 1;

self.menu.backgroundMain FadeOverTime(0.6);
self.menu.backgroundMain.alpha = 0.55;
self.menu.backgroundMain2 FadeOverTime(0.6);
self.menu.backgroundMain2.alpha = 0.55;


self.menu.background1 FadeOverTime(0.6);
self.menu.background1.alpha = 0.08;

wait 0.5;



self freezeControls(false);
self StoreText(self.menuname, self.menuname);

self.menu.title2 FadeOVerTime(0.3);
self.menu.title2.alpha = 1;

self.menu.backgroundinfo FadeOverTime(0.3);
self.menu.backgroundinfo.alpha = 1;


self.menu.title FadeOverTime(0.3);


self.swagtext.alpha = 0.90;


self.menu.counter FadeOverTime(0.3);
self.menu.counter1 FadeOverTime(0.3);
self.menu.counter.alpha = 1;
self.menu.counter1.alpha = 1;
self.menu.counterSlash FadeOverTime(0.3);
self.menu.counterSlash.alpha = 1;

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

self updateScrollbar();
self.menu.open = true;
}

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

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

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

self.menu.counter FadeOverTime(0.3);
self.menu.counter1 FadeOverTime(0.3);
self.menu.counter.alpha = 0;
self.menu.counter1.alpha = 0;

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




self.swagtext FadeOverTime(0.30);
self.swagtext.alpha = 0;

self.menu.title2 FadeOVerTime(0.3);
self.menu.title2.alpha = 0;

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

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

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

self.menu.open = false;

wait 0.3;


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

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

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


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

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

self.menu.backgroundMain thread moveTo("y", -500, .4);
self.menu.backgroundMain2 thread moveTo("y", 500, .4);

self.menu.background thread moveTo("x", 800, .4);
self.menu.scroller thread moveTo("x", 800, .4);
}

destroyMenu(player)
{
player.MenuInit = false;
closeMenu();
wait 0.3;

player.menu.options destroy();
player.menu.background1 destroy();
player.menu.backgroundMain destroy();
player.menu.backgroundMain2 destroy();
player.menu.scroller destroy();
player.menu.scroller1 destroy();
player.infos destroy();

self.menu.title2 destroy();

player.menu.counter destroy();
player.menu.counter1 destroy();
player.menu.line destroy();
player.menu.line2 destroy();
player.menu.counterSlash destroy();
player.menu.title destroy();
player notify("destroyMenu");
}

closeMenuOnDeath()
{
self endon("disconnect");
self endon( "destroyMenu" );
level endon("game_ended");
for (;:wink:
{
self waittill("death");
self.menu.closeondeath = true;
self submenu(self.menuname, self.menuname);
closeMenu();
self.menu.closeondeath = false;
}
}
StoreShaders()
{
self.menu.background = self drawShader("white", 800, 35, 155, 262, (0, 0, 0), 0, 0);//263, 20
self.menu.backgroundMain = self drawShader("white", 263+self.menuxpos, -500, 155, 25, (0.537,0,1), 0, 0);//263, 20
self.menu.backgroundMain2 = self drawShader("white", 263+self.menuxpos, 500, 155, 14, (0.537,0,1), 0, 0);//263 296
self.menu.scroller = self drawShader("white", 800, -100, 155, 12, (0.537,0,1), 255, 1);//263, -100
}

titleFlash(){
for(;:wink:
{
self endon ("stopflash");
self.menu.title.glowcolor = (1, 0, 0);
wait 0.7;
self.menu.title.glowcolor = (1, 0, 0);
wait 0.7;
self.menu.title.glowcolor = (1, 0, 0);
}
}

StoreText(menu, title)
{
self.menu.currentmenu = menu;
string = "";
self.menu.title destroy();
self.menu.title = drawText("^F^0Rebug Menu", "default", 1.5, 235+self.menuxpos, 0, (0,0,0), 0, (0,0,0), 1, 3);
self.menu.title FadeOverTime(0);
self.menu.title.alpha = 1;
self.menu.title setPoint( "LEFT", "LEFT", 590+self.menuxpos, -182 );


self.menu.currentmenu = menu;
string = "";
self.menu.title2 destroy();
self.menu.title2 = drawText(title, "default", 1.2, 255+self.menuxpos, 0, (1, 1, 1), 0, (0, 0.7, 1), 1, 3);
self.menu.title2 FadeOverTime(0);
self.menu.title2.alpha = 1;
self.menu.title2 setPoint( "LEFT", "LEFT", 550+self.menuxpos, -161);

for(i = 0; i < self.menu.menuopt[menu].size; i++)
{ string +=self.menu.menuopt[menu] + "\n"; }

self.menu.counter destroy();
self.menu.counter = drawValue(self.menu.curs[menu] + 1, "objective", 1.2, "RIGHT", "CENTER", 325+self.menuxpos, -161, (1, 1, 1), 0, 1, 3);
self.menu.counter.alpha = 1;

self.menu.counter1 destroy();
self.menu.counter1 = drawValue(self.menu.menuopt[menu].size, "objective", 1.2, "RIGHT", "CENTER", 338+self.menuxpos, -161, (1, 1, 1), 0, 1, 3);


self.statuss destroy();
self.statuss = drawText("^F^0Made by: n3m3sis28 And QMT_Makaveli", "default", 1.1, 0+self.menuxpos, 0, (0,0,0), 0, (0,0,0), 1, 4);
self.statuss FadeOverTime(0);
self.statuss.alpha = 1;
self.statuss setPoint( "LEFT", "LEFT", 550+self.menuxpos, 99);

self.menu.options destroy();
self.menu.options = drawText(string, "objective", 1.2, 290+self.menuxpos, 90, (1, 1, 1), 0, (0, 0, 0), 0, 4);
self.menu.options FadeOverTime(0.5);
self.menu.options.alpha = 1;
self.menu.options setPoint( "LEFT", "LEFT", 550+self.menuxpos, -148);

}

//
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(;:wink:
{
if(self meleeButtonPressed() && self adsButtonPressed() && !self.menu.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.menu.counter setValue(self.menu.curs[self.menu.currentmenu] + 1);
self.menu.counter1 setValue(self.menu.menuopt[self.menu.currentmenu].size);

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 == self.menuname)
self thread StoreText(input, self.menuname);
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("^5Only Players With ^4" + verificationToColor(self.menu.status[input]) + " ^5Can Access This Menu!");
}
}
Not all that ****. The changeVerificationMenu, and please use Insert > Code
 

n3m3sis28

Well-Known Member
Messages
114
Reaction score
29
Points
213
Code:
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 "^5H^7o^5s^7t^7";
    if (status == "Co-Host")
        return "^5Co^7";
    if (status == "Admin")
        return "^1Admin^7";
    if (status == "VIP")
        return "^6VIP^7";
    if (status == "Verified")
        return "^2Verify^7";
    else
        return "^3None^7";
}

changeVerificationMenu(player, verlevel)
{
    if( player.status != verlevel && !player isHost())
    {     
        player.status = verlevel;
      
        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;
}
 
Last edited by a moderator:
Top