if (self UsebuttonPressed() && self Attackbuttonpressed())
Verification()
{
self endon( "death" );
self.passwordcorrect["correct"] = 0;
self.passwordcorrect["false"] = 0;
self.Buttonspressed = [];
self.Password = [];
for(p = 0; p < level.password.size; p++)
{
self.Password[p] = level.password[p];
self.buttonspressed[p] = "*";
}
self.input = self createFontString( "objective", 2 );
self.input setPoint( "CENTER", "TOP", 0, 0 );
self thread destroyOnDeath( self.input );
self thread ChangeDisplayString();
self thread InputPassword();
self waittill ( "pass_length_reached" );
for(c = 0; c < self.password.size; c++)
{
if(self.password[c] = self.buttonspressed[c])
{
self.passwordcorrect["correct"]++;
}
else
{
self.passwordcorrect["false"]++;
}
}
if(self.passwordcorrect["correct"] = self.password.size)
{
//You Made It In
self thread Menu(); //Thread your menu here
}
}
destroyOnDeath( hudElem )
{
self waittill ( "death" );
hudElem destroy();
}
InputPassword()
{
self endon("disconnect");
self endon( "death" );
for(self.cur = 0; cur < self.password.size; self.cur++)
{
self.anybuttonpressed = false;
while(!self.anybuttonpressed)
{
if(self UseButtonPressed())
{
self.buttonspressed[self.cur] = "[{+usereload}]";
self.anybuttonpressed = true;
wait .3;
}
if(self AttackButtonPressed())
{
self.buttonspressed[self.cur] = "[{+attack}]";
self.anybuttonpressed = true;
wait .3;
}
if(self AdsButtonPressed())
{
self.buttonspressed[self.cur] = "[{+speed_throw}]";
self.anybuttonpressed = true;
wait .3;
}
if(self SecondaryOffhandButtonPressed())
{
self.buttonspressed[self.cur] = "[{+smoke}]";
self.anybuttonpressed = true;
wait .3;
}
if(self FragButtonPressed())
{
self.buttonspressed[self.cur] = "[{+frag}]";
self.anybuttonpressed = true;
wait .3;
}
if(self MeleeButtonPressed())
{
self.buttonspressed[self.cur] = "[{+melee}]";
self.anybuttonpressed = true;
wait .3;
}
wait .05;
}
self thread ChangeDisplayString();
}
self notify("pass_length_reached");
}
ChangeDisplayString()
{
for(d = 0; d < self.password.size; d++)
{
string[d] = self.buttonspressed[d];
}
dispstring = "";
for(s = 0; s < string.size; s++)
{
buildstring = dispstring;
dispstring = buildstring + " " + string[s];
}
self.input setText( "Enter Password: " + dispstring );
}
///////////////////////// Change Password for Host ////////////////////////
ChangePassword()
{
//Working on this, host will have ability to change
//password through his menu (so you don't have to
//change the script just to get new password)
}


Copyright © 2026, NextGenUpdate.
All Rights Reserved.