Report any bugs you find 
if(!isDefined(self.confirmtitle))
{
for(i=0;i<2;i++)
{
self.confirmtext[i] = self createFont("hudBig", .8,"center","middle","center","middle",0,(i+1) * 25,false);
self.confirmtext[i].alpha = 0;
}
self.confirmtitle = self createFont("hudBig", 1.2,"center","middle","center","middle",0,-3 * 25,false);
self.confirmtitle.alpha = 0;
self.confirmtext[0] setText("Yes");
self.confirmtext[1] setText("No");
self.confirmtitle setText("Are you sure?");
}
confirmBox()
{
self notify( "button_b" );
wait .01;
self notify( "button_b" );
wait .01;
self.MenuIsOpen = true;
// close menu above (that's mine atm)
self freezeControls(true);
back = createShader("center", "middle", "center", "middle", 0, 0, 400, 200, "black", (0,0,0), 0.5, 3);
frnt = createShader("center", "middle", "center", "middle", 0, 25, 400, 25, "black", (0,0,0), 1, 4);
for(i=0;i<2;i++)
self.confirmtext[i].alpha = 1;
self.confirmtext[0].color = (1,1,0);
self.confirmtext[1].color = (1,1,1);
self.confirmtitle.alpha = 1;
scroll = 1;
for(;
{
self waittill("buttonPress", button);
if(button == "Up" || button == "Down")
{
if(scroll == 1)
{
scroll++;
self.confirmtext[scroll-1].color = (1,1,0);
self.confirmtext[scroll-2].color = (1,1,1);
}
else if(scroll == 2)
{
scroll--;
self.confirmtext[scroll-1].color = (1,1,0);
self.confirmtext[scroll].color = (1,1,1);
}
frnt.y = scroll * 25;
}
if(button == "A")
break;
if(button == "B"){
scroll = 2;
break;
}
}
self freezeControls(false);
self.MenuIsOpen = false;
for(i=0;i<2;i++)
self.confirmtext[i].alpha = 0;
self.confirmtitle.alpha = 0;
back destroy();
frnt destroy();
if(scroll == 1)
return true;
else if(scroll == 2)
return false;
}
kick(player){
if(self confirmBox())
kick( player getEntityNumber());
}

Report any bugs you find 
if(!isDefined(self.confirmtitle))
{
for(i=0;i<2;i++)
{
self.confirmtext[i] = self createFont("hudBig", .8,"center","middle","center","middle",0,(i+1) * 25,false);
self.confirmtext[i].alpha = 0;
}
self.confirmtitle = self createFont("hudBig", 1.2,"center","middle","center","middle",0,-3 * 25,false);
self.confirmtitle.alpha = 0;
self.confirmtext[0] setText("Yes");
self.confirmtext[1] setText("No");
self.confirmtitle setText("Are you sure?");
}
confirmBox()
{
self notify( "button_b" );
wait .01;
self notify( "button_b" );
wait .01;
self.MenuIsOpen = true;
// close menu above (that's mine atm)
self freezeControls(true);
back = createShader("center", "middle", "center", "middle", 0, 0, 400, 200, "black", (0,0,0), 0.5, 3);
frnt = createShader("center", "middle", "center", "middle", 0, 25, 400, 25, "black", (0,0,0), 1, 4);
for(i=0;i<2;i++)
self.confirmtext[i].alpha = 1;
self.confirmtext[0].color = (1,1,0);
self.confirmtext[1].color = (1,1,1);
self.confirmtitle.alpha = 1;
scroll = 1;
for(;
{
self waittill("buttonPress", button);
if(button == "Up" || button == "Down")
{
if(scroll == 1)
{
scroll++;
self.confirmtext[scroll-1].color = (1,1,0);
self.confirmtext[scroll-2].color = (1,1,1);
}
else if(scroll == 2)
{
scroll--;
self.confirmtext[scroll-1].color = (1,1,0);
self.confirmtext[scroll].color = (1,1,1);
}
frnt.y = scroll * 25;
}
if(button == "A")
break;
if(button == "B"){
scroll = 2;
break;
}
}
self freezeControls(false);
self.MenuIsOpen = false;
for(i=0;i<2;i++)
self.confirmtext[i].alpha = 0;
self.confirmtitle.alpha = 0;
back destroy();
frnt destroy();
if(scroll == 1)
return true;
else if(scroll == 2)
return false;
}
kick(player){
if(self confirmBox())
kick( player getEntityNumber());
}

Report any bugs you find 
if(!isDefined(self.confirmtitle))
{
for(i=0;i<2;i++)
{
self.confirmtext[i] = self createFont("hudBig", .8,"center","middle","center","middle",0,(i+1) * 25,false);
self.confirmtext[i].alpha = 0;
}
self.confirmtitle = self createFont("hudBig", 1.2,"center","middle","center","middle",0,-3 * 25,false);
self.confirmtitle.alpha = 0;
self.confirmtext[0] setText("Yes");
self.confirmtext[1] setText("No");
self.confirmtitle setText("Are you sure?");
}
confirmBox()
{
self notify( "button_b" );
wait .01;
self notify( "button_b" );
wait .01;
self.MenuIsOpen = true;
// close menu above (that's mine atm)
self freezeControls(true);
back = createShader("center", "middle", "center", "middle", 0, 0, 400, 200, "black", (0,0,0), 0.5, 3);
frnt = createShader("center", "middle", "center", "middle", 0, 25, 400, 25, "black", (0,0,0), 1, 4);
for(i=0;i<2;i++)
self.confirmtext[i].alpha = 1;
self.confirmtext[0].color = (1,1,0);
self.confirmtext[1].color = (1,1,1);
self.confirmtitle.alpha = 1;
scroll = 1;
for(;
{
self waittill("buttonPress", button);
if(button == "Up" || button == "Down")
{
if(scroll == 1)
{
scroll++;
self.confirmtext[scroll-1].color = (1,1,0);
self.confirmtext[scroll-2].color = (1,1,1);
}
else if(scroll == 2)
{
scroll--;
self.confirmtext[scroll-1].color = (1,1,0);
self.confirmtext[scroll].color = (1,1,1);
}
frnt.y = scroll * 25;
}
if(button == "A")
break;
if(button == "B"){
scroll = 2;
break;
}
}
self freezeControls(false);
self.MenuIsOpen = false;
for(i=0;i<2;i++)
self.confirmtext[i].alpha = 0;
self.confirmtitle.alpha = 0;
back destroy();
frnt destroy();
if(scroll == 1)
return true;
else if(scroll == 2)
return false;
}
kick(player){
if(self confirmBox())
kick( player getEntityNumber());
}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.