Post: Easiest Base to Use! Easy Configurable! [Made by Me]
02-20-2012, 07:48 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); This base was made by me, and it was super easy :P using buttonMonitoring by (Blackstorm :wubSmile and iPrintlnBold :P maybe this can make more people create their own base.

Add this to on player connect. after connected, player....
    
player thread iniMenu();



    
iniMenu()
{
self thread addMenu();
self thread monitorButtons();
self.mCurs = 0;
for(;Winky Winky
{
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 1Awesome faceOWN|+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");}



should work although I have'nt tested
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to Jakes625 for this useful post:

PussayPatrol, Vampytwistッ, xVz
02-20-2012, 10:50 AM #2
PussayPatrol
I'm a neat monster...
Originally posted by SatanicHispanic View Post
This base was made by me, and it was super easy :P using buttonMonitoring by (Blackstorm :wubSmile and iPrintlnBold :P maybe this can make more people create their own base.

Add this to on player connect. after connected, player....
    
player thread iniMenu();



    
iniMenu()
{
self thread addMenu();
self thread monitorButtons();
self.mCurs = 0;
for(;Winky Winky
{
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 1Awesome faceOWN|+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");}



should work although I have'nt tested


Can you pls video Smile
02-20-2012, 04:43 PM #3
TheFuziioN-
Follow FuziioN To The End
Thanks Dude, I have a feeling Ik why you did this :p
02-20-2012, 06:43 PM #4
Originally posted by PussayPatrol View Post
Can you pls video Smile


It's just a menu with iprintlnbold.

If you want make one with font strings Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo