Post: God Mode not working?
07-28-2017, 07:07 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hello NextGenUpdate community, I am having trouble getting god mode to work on zombies, basically when I turn on god mode it only works while the menu is open but if I close it, it stops working. I've never had this problem before, I'm using StonedYoda's Menu Base for multiplayer but I'm using it on zombies.

    
GodMode()
{
if(self.godmd == false)
{
self iprintln("God Mode ^2On");
self enableInvulnerability();
self.godmd=true;
}
else
{
self iprintln("God Mode ^1Off");
self DisableInvulnerability();
self.godmd=false;
}
}
Last edited by quacked420 ; 07-28-2017 at 07:14 PM.
07-28-2017, 07:57 PM #2
KrazyKandy
I am error
Originally posted by quacked420 View Post
Hello NextGenUpdate community, I am having trouble getting god mode to work on zombies, basically when I turn on god mode it only works while the menu is open but if I close it, it stops working. I've never had this problem before, I'm using StonedYoda's Menu Base for multiplayer but I'm using it on zombies.

    
GodMode()
{
if(self.godmd == false)
{
self iprintln("God Mode ^2On");
self enableInvulnerability();
self.godmd=true;
}
else
{
self iprintln("God Mode ^1Off");
self DisableInvulnerability();
self.godmd=false;
}
}

Check your closemenu function, make sure it doesn't have
    self DisableInvulnerability();

The following user thanked KrazyKandy for this useful post:

quacked420
07-28-2017, 09:28 PM #3
Originally posted by KrazyKandy View Post
Check your closemenu function, make sure it doesn't have
    self DisableInvulnerability();


Wow, that's stupid, thanks a lot man! It was in there. Smile
07-28-2017, 09:31 PM #4
Patrick
League Champion
Originally posted by quacked420 View Post
Wow, that's stupid, thanks a lot man! It was in there. Smile


You have "DisableInvulnerability" inside of close menu because it gives you godmode when you open the menu, if i was you i would do this check inside of the close menu.
    if(!self.godmd)
self DisableInvulnerability();

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo