[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.
if(self isHost())
{
self thread doGod();
}
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;
}
}