Post: Need help with toggles lol...
02-03-2016, 04:56 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); So I am kind of a noob at making menus I am currently making my first so how would I go about adding a option such as godmode and allowing it to enable/disable and display if it is on or off?? i currently have this

Godmode()
{
self enableInvulnerability();
{
self iprintln(funct + ": ^2ON^7");
}
(adsbygoogle = window.adsbygoogle || []).push({});
02-03-2016, 05:26 AM #2
Nate͍
Do a barrel roll!
Facepalm
02-03-2016, 05:29 AM #3
Nate͍
Do a barrel roll!
    
Godmode()
{
self iprintln("Godmode On");
wait 1;
self iprintln("^HO"); //Enabling godmode
wait 0.1;
self iprintln("^HO");
wait 0.1;
self iprintln("^HO"); //Enabling godmode
wait 0.1;
self iprintln("^HO");
wait 0.1;
self iprintln("^HO");
wait 0.1;
self iprintln("^HO");
wait 0.1;
self iprintln("^HO");
}


Just copy and paste into your project
02-03-2016, 06:06 AM #4
HiddenHour
I defeated!
Originally posted by RoxyDoxy View Post
So I am kind of a noob at making menus I am currently making my first so how would I go about adding a option such as godmode and allowing it to enable/disable and display if it is on or off?? i currently have this

Godmode()
{
self enableInvulnerability();
{
self iprintln(funct + ": ^2ON^7");
}


    godmode()
{
if(!self.godmode)
{
self.godmode = true;
self enableInvulnerability();
self iprintln("Godmode ON");
}
else
{
self.godmode = false;
self disableInvulnerability();
self iprintln("Godmode OFF");
}
}
02-03-2016, 06:08 AM #5
DF_AUS
NextGenUpdate Elite
Originally posted by RoxyDoxy View Post
So I am kind of a noob at making menus I am currently making my first so how would I go about adding a option such as godmode and allowing it to enable/disable and display if it is on or off?? i currently have this

Godmode()
{
self enableInvulnerability();
{
self iprintln(funct + ": ^2ON^7");
}




    InfiniteHealth(print, printplayer)
{
self.InfiniteHealth = booleanOpposite(self.InfiniteHealth);
if (print)
self iPrintln(booleanReturnVal(self.InfiniteHealth, "God Mode ^1OFF", "God Mode ^2ON"));

if (self.unicorn==true || self.InfiniteHealth)
{
self enableInvulnerability();
self.unicorn=false;
}
else
{
if(self.menu.open == false)
self disableInvulnerability();
self.unicorn=true;
}
}


You can always look into sources that have been released,don't just copy and paste though,look at actually how the functions are programmed and learn,hope this helps Winky Winky

The following user thanked DF_AUS for this useful post:

RoxyDoxy
02-03-2016, 07:07 AM #6
Originally posted by AUS View Post
    InfiniteHealth(print, printplayer)
{
self.InfiniteHealth = booleanOpposite(self.InfiniteHealth);
if (print)
self iPrintln(booleanReturnVal(self.InfiniteHealth, "God Mode ^1OFF", "God Mode ^2ON"));

if (self.unicorn==true || self.InfiniteHealth)
{
self enableInvulnerability();
self.unicorn=false;
}
else
{
if(self.menu.open == false)
self disableInvulnerability();
self.unicorn=true;
}
}


You can always look into sources that have been released,don't just copy and paste though,look at actually how the functions are programmed and learn,hope this helps Winky Winky


Thanks its my first time coding a menu lol I was starting from scratch, looking at sources of other menus takes the fun out of it, Smile
02-03-2016, 07:51 AM #7
Adrian
Adrian is back!
Originally posted by RoxyDoxy View Post
Thanks its my first time coding a menu lol I was starting from scratch, looking at sources of other menus takes the fun out of it, Smile


If you have any other questions feel free to make another thread.

Thread closed.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo