(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". As in On Off
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(;
{
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.