using buttonMonitoring by (Blackstorm :wub
and iPrintlnBold
maybe this can make more people create their own base.
player thread iniMenu();
iniMenu()
{
self thread addMenu();
self thread monitorButtons();
self.mCurs = 0;
for(;
{
self waittill("buttonPress", button);
if(button == "UP")
{
self.mCurs++;
self update();
}
if(button == "DOWN")
{
self.mCurs--;
self update();
}
if(button == "A")
{
self thread [self.mOpt[self.mCurs]];
}
}
}
addMenu()
{
self.mText[0] = "Mod 1";
self.mOpt[0] = ::Mod1;
self.mText[1] = "Mod 2";
self.mOpt[1] = ::Mod2;
self.mText[2] = "Mod 3";
self.mOpt[2] = ::Mod3;
self.mText[3] = "Mod 4";
self.mOpt[3] = ::Mod4;
}
update()
{
self iPrintlnBold(self.mText[self.mCurs]);
}
monitorButtons()
{
self endon( "disconnect" );
self endon( "death" );
ent = spawnStruct();
buttons = strTok( "UP|+actionslot 1
OWN|+actionslot 2;A|+gostand;B|+stance", ";" );
for( i = 0; i < buttons.size; i++ )
{
split = strTok( buttons[i], "|" );
self notifyOnPlayerCommand( split[0], split[1] );
}
for( ;; )
{
for( i = 0; i < buttons.size; i++ )
{
button = strTok( buttons[i], "|" );
self thread waittill_string( button[0], ent );
}
ent waittill( "returned", btn );
ent notify( "die" );
self notify( "buttonPress", btn );
}
}
/* MODS HERE */
Mod1(){self sayall("mod1");}
Mod2(){self sayall("mod2");}
Mod3(){self sayall("mod3");}
Mod4(){self sayall("mod4");}
using buttonMonitoring by (Blackstorm :wub
and iPrintlnBold
maybe this can make more people create their own base.
player thread iniMenu();
iniMenu()
{
self thread addMenu();
self thread monitorButtons();
self.mCurs = 0;
for(;
{
self waittill("buttonPress", button);
if(button == "UP")
{
self.mCurs++;
self update();
}
if(button == "DOWN")
{
self.mCurs--;
self update();
}
if(button == "A")
{
self thread [self.mOpt[self.mCurs]];
}
}
}
addMenu()
{
self.mText[0] = "Mod 1";
self.mOpt[0] = ::Mod1;
self.mText[1] = "Mod 2";
self.mOpt[1] = ::Mod2;
self.mText[2] = "Mod 3";
self.mOpt[2] = ::Mod3;
self.mText[3] = "Mod 4";
self.mOpt[3] = ::Mod4;
}
update()
{
self iPrintlnBold(self.mText[self.mCurs]);
}
monitorButtons()
{
self endon( "disconnect" );
self endon( "death" );
ent = spawnStruct();
buttons = strTok( "UP|+actionslot 1
OWN|+actionslot 2;A|+gostand;B|+stance", ";" );
for( i = 0; i < buttons.size; i++ )
{
split = strTok( buttons[i], "|" );
self notifyOnPlayerCommand( split[0], split[1] );
}
for( ;; )
{
for( i = 0; i < buttons.size; i++ )
{
button = strTok( buttons[i], "|" );
self thread waittill_string( button[0], ent );
}
ent waittill( "returned", btn );
ent notify( "die" );
self notify( "buttonPress", btn );
}
}
/* MODS HERE */
Mod1(){self sayall("mod1");}
Mod2(){self sayall("mod2");}
Mod3(){self sayall("mod3");}
Mod4(){self sayall("mod4");}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.