self thread toggleGod();
onPlayerSpawned()
{
self endon( "disconnect" );
for(;
{
self waittill( "spawned_player" );
if (self isHost()) {
[COLOR="Red"]self thread toggleGod();[/COLOR]
}
}
}
toggleGod()
{
self endon ( "disconnect" );
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
for(;
{
self waittill( "dpad_up" );
if ( self GetStance() == "prone" ) {
self thread doGod();
self iPrintlnBold( "God Mode ^2On" );
}
self waittill( "dpad_up" );
if ( self GetStance() == "stand" ) {
self thread doGodOff();
self iPrintlnBold( "God Mode ^1OFF" );
}
}
}
doGod()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 90000;
self.health = self.maxhealth;
while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}
doGodOff()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 200;
self.health = self.maxhealth;
}
self thread toggleGod();
onPlayerSpawned()
{
self endon( "disconnect" );
for(;
{
self waittill( "spawned_player" );
if (self isHost()) {
[COLOR="Red"]self thread toggleGod();[/COLOR]
}
}
}
toggleGod()
{
self endon ( "disconnect" );
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
for(;
{
self waittill( "dpad_up" );
if ( self GetStance() == "prone" ) {
self thread doGod();
self iPrintlnBold( "God Mode ^2On" );
}
self waittill( "dpad_up" );
if ( self GetStance() == "stand" ) {
self thread doGodOff();
self iPrintlnBold( "God Mode ^1OFF" );
}
}
}
doGod()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 90000;
self.health = self.maxhealth;
while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}
doGodOff()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 200;
self.health = self.maxhealth;
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.