Post: God Mode Not Disabling?
03-13-2015, 02:22 PM #1
Z0neyDanza
Climbing up the ladder
(adsbygoogle = window.adsbygoogle || []).push({}); So for whatever reason my God Mode will only turn on and not off. It's pretty fucking annoying. Is there any simple reason I may be overlooking? It shows it turning off, but it never actually goes off. Here's the code I'm using;

    
InfiniteHealth()
{
self.InfiniteHealth=booleanOpposite(self.InfiniteHealth);
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 suicide(); //Added this to take it off since nothing else works.
self.unicorn=true;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});
03-13-2015, 02:41 PM #2
Im_YouViolateMe
NextGenUpdate Elite
Originally posted by Z0neyDanza View Post
So for whatever reason my God Mode will only turn on and not off. It's pretty fucking annoying. Is there any simple reason I may be overlooking? It shows it turning off, but it never actually goes off. Here's the code I'm using;

    
InfiniteHealth()
{
self.InfiniteHealth=booleanOpposite(self.InfiniteH ealth);
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 suicide(); //Added this to take it off since nothing else works.
self.unicorn=true;
}
}


Edit: You're the one who posted this video:


I'm not helping you.
03-13-2015, 02:48 PM #3
Z0neyDanza
Climbing up the ladder
Originally posted by YouViolateMe View Post
Edit: You're the one who posted this video:


I'm not helping you.


Alright thanks anyways. Still trying to learn how to make the functions call properly in a empty menu base. I see that you're butt hurt based on your YT comment, so I'm sorry I hurt your feeling. Only attempting to learn step by step. Since assholes like yourself don't help people the only way to learn is look and edit. If I was still using that menu, I wouldn't need help with this function now would I?
03-13-2015, 02:50 PM #4
Im_YouViolateMe
NextGenUpdate Elite
Originally posted by Z0neyDanza View Post
Alright thanks anyways. Still trying to learn how to make the functions call properly in a empty menu base. I see that you're butt hurt based on your YT comment, so I'm sorry I hurt your feeling.


Well we knew our menu was going to get leeched anyways...
03-13-2015, 02:54 PM #5
Z0neyDanza
Climbing up the ladder
Originally posted by YouViolateMe View Post
Well we knew our menu was going to get leeched anyways...


For that I man up and apologize. I'm genuinely just trying to learn the exact syntax, which I can't do without making edits to potentially cause problems that I need to figure out how to fix. Once I got the basics I downloaded a menu base and started from 0 functions. Which lead me here. As a matter of fact one of your menu bases, guess I'm a scum bag for that too.
03-13-2015, 03:10 PM #6
SyGnUs
Give a F*** About Your Lifestyle
Originally posted by Z0neyDanza View Post
So for whatever reason my God Mode will only turn on and not off. It's pretty fucking annoying. Is there any simple reason I may be overlooking? It shows it turning off, but it never actually goes off. Here's the code I'm using;

    
InfiniteHealth()
{
self.InfiniteHealth=booleanOpposite(self.InfiniteHealth);
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 suicide(); //Added this to take it off since nothing else works.
self.unicorn=true;
}
}


Maybe has to do with the menu.open statement.
03-13-2015, 03:24 PM #7
Z0neyDanza
Climbing up the ladder
Originally posted by SyGnUs View Post
Maybe has to do with the menu.open statement.


I was thinking the same thing man, but nothing in the menu.open has to do with enabling the god mode.
03-13-2015, 03:32 PM #8
SyGnUs
Give a F*** About Your Lifestyle
Originally posted by Z0neyDanza View Post
I was thinking the same thing man, but nothing in the menu.open has to do with enabling the god mode.


Alright well here you can use my function for it if you want -

    
toggleGod()
{
if ( !isDefined( self.toggleGod ) )
{
self iprintln("Godmode: ^2On");
self EnableInvulnerability();
self.toggleGod = 1;
}
else
{
self iprintln("Godmode: ^1Off");
self DisableInvulnerability();
self.toggleGod = !self.toggleGod;
}
}


You can make it simpler but I just made it right now and it works fine.
03-13-2015, 03:38 PM #9
Z0neyDanza
Climbing up the ladder
Originally posted by SyGnUs View Post
Alright well here you can use my function for it if you want -

    
toggleGod()
{
if ( !isDefined( self.toggleGod ) )
{
self iprintln("Godmode: ^2On");
self EnableInvulnerability();
self.toggleGod = 1;
}
else
{
self iprintln("Godmode: ^1Off");
self DisableInvulnerability();
self.toggleGod = !self.toggleGod;
}
}


You can make it simpler but I just made it right now and it works fine.


Code works perfectly. Thank you. Thread can be closed.
03-13-2015, 04:12 PM #10
Im_YouViolateMe
NextGenUpdate Elite
Originally posted by Z0neyDanza View Post
For that I man up and apologize. I'm genuinely just trying to learn the exact syntax, which I can't do without making edits to potentially cause problems that I need to figure out how to fix. Once I got the basics I downloaded a menu base and started from 0 functions. Which lead me here. As a matter of fact one of your menu bases, guess I'm a scum bag for that too.

<rant>

There's plenty of gsc tutorials. And no I'm not an asshole. I help people. I've posted numerous times if you need help with something you can contact me on skype. I've done a few tutorials. It's just the fact that you changed the name of the menu to Donza v1.1, that's why I'm a little ticked off. If it had credits to the original makers I would be totally fine with it. I understand that people use other menus to learn, hell even I did that back in world at war. But simply renaming the title of the patch and changing some strings, that is not learning.

</rant>

If you want to learn GSC you can add me on skype: nlovett218. I would have been more than happy to help you dude.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo