Post: Is it possible to make this "Toggle-able"?
08-14-2013, 09:02 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I am a beginner at modding and because of so I ran into a little issue I am having trying to make something "Toggle-able".


If it is possible to make this "Toggle-able" please copy my code and replace it with the "Toggle-able" version.

Or you can just tell me how to do it.

Code:

doBmsg()
{
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(;Winky Winky
{
infotext MoveOverTime(25); infotext.x = -1200;
wait 25;
infotext.x = 1200;
}
}

dond( item )
{
self waittill("death");
item destroy();
}


Sorry if I sound dumb. I am a beginner after all.
(adsbygoogle = window.adsbygoogle || []).push({});
08-14-2013, 09:15 AM #2
Master0wn3r
I’m too L33T
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

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo