What's new

Solved Toggle Option?

  • Thread starter FearlessRage
  • Start date
  • Views 183
F

FearlessRage

Bros From NiNJA
Messages
15
Reaction score
7
I have been looking around and cant find how to make somethings in my menu toggle on and off. Is it a code i add or is there a list of the codes with this already?
 
K

Kyzuro

Problem Solver
Messages
183
Reaction score
62
Is this what you're looking for?
Code:
Godmode()
{
if(self.god==false)
{
doThis();
self.god=true;
}
else
{
doThat();
self.god=false;
}
}
 
F

FearlessRage

Bros From NiNJA
Messages
15
Reaction score
7
Is this what you're looking for?
Code:
if(self.god==false)
{
doThis();
self.god=true;
}
else
{
doThat()
self.god=false;
}
Yes but to work with god mode. Infinite ammo and such.
 
Top Bottom