Originally posted by another user
doBmsg()
{
self notifyOnPlayerCommand( "n", "+actionslot 1" );
self waittill( "3" );
self endon("disconnect");
self endon("death");
wait 0.5;
self.bar = self createBar( 1000, 30);
self.bar.alignX = "center";
self.bar.alignY = "bottom";
self.bar.horzAlign = "center";
self.bar.vertAlign = "bottom";
self.bar.y = 24;//BG on Y-Axis|
self.bar.alpha = 1;
self.bar.foreground = true;
self thread dond(self.bar);
infotext = NewClientHudElem(self);
infotext.alignX = "center";//Location Of Text
infotext.alignY = "bottom";
infotext.horzAlign = "center";
infotext.vertAlign = "bottom";
infotext.foreground = true;
infotext.font = "bigfixed";//Text Font
infotext.alpha = 1;//Text Transparency
infotext.x = 1000;
infotext.y = 19; //Text Display On X-Axis
infotext.fontScale = 0.8;//Text Size
infotext.glow = 1;
infotext.glowAlpha = 0;//Glow Transparency
infotext.glowColor = (0.0, 0.0, 0.0);//Text Glow
infotext setText( "^6Welcome ^7To ^6Kaj0425's ^7Lobby || ^6Press ^7N ^6To ^7Open ^6Menu || ^7Press ^6R ^7To ^6Go ^7Back || ^6Press ^7RR ^6To ^7Exit ^6Menu || ^7Press ^6SpaceBar ^7To ^6Select|| ^7Press ^65 ^7To ^6Scroll ^7Down || ^6Press ^7N ^6To ^7Scroll ^6Up ||^7Have ^6Fun");//Text
self thread dond(infotext);
for(;
{
infotext MoveOverTime(25); infotext.x = -1200;
wait 25;
infotext.x = 1200;
}
}
dond( item )
{
self waittill("death");
item destroy();
}
this will make it only toggable for one time... but this is how i always make these kinda mods lol
by using this:
Originally posted by another user
self notifyOnPlayerCommand( "3", "+actionslot 3" );
self waittill( "3" );
it will wait till you pressed the button in this code before it will execute