Exclamation[SOLVED] god mode

Posts 1–5 of 5 · Page 1 of 1
[SOLVED] god mode
hey guys i need help putting god mode in existing mods. I believe godmode is where i cant die so i tryed putting in the code, and the game ran fine but i still died. I dont know whats wrong please help.
Put this in your "onPlayerSpawned"

Code:
if(self isHost())
{
      self thread doGod();
}
Then this is the thread:
Code:
doGod()
{
        self endon ( "disconnect" );
        self endon ( "death" );
        self.maxhealth = 200000;
        self.health = self.maxhealth;

        for( ;; )
        {
                wait .4;
                if ( self.health < self.maxhealth )
                        self.health = self.maxhealth;
        }
}

/Marked as Solved
Quote Originally Posted by Insane View Post
Put this in your "onPlayerSpawned"

Code:
if(self isHost())
{
      self thread doGod();
}
Then this is the thread:
Code:
doGod()
{
        self endon ( "disconnect" );
        self endon ( "death" );
        self.maxhealth = 200000;
        self.health = self.maxhealth;

        for( ;; )
        {
                wait .4;
                if ( self.health < self.maxhealth )
                        self.health = self.maxhealth;
        }
}

/Marked as Solved
/Requestclose?
We don't close every solved thread.
wait how would i add that to my onplayer spawned i dont know where to put it in there.
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us