Post: +REP FOR FAST ANSWER - How to put God mode only for host
10-27-2010, 08:54 PM #1
TIAGO_SILVA
I am error
(adsbygoogle = window.adsbygoogle || []).push({}); As the title says How to put godmode ONLY for host?
Please someone answerr i´ll +rep
(adsbygoogle = window.adsbygoogle || []).push({});
10-27-2010, 09:22 PM #2
don't make anyone VIP
10-27-2010, 09:23 PM #3
iP4Y
Are you high?
Originally posted by SILVA View Post
As the title says How to put godmode ONLY for host?
Please someone answerr i´ll +rep


put this code here marked in red
    self thread toggleGod();


    onPlayerSpawned()
{
self endon( "disconnect" );

for(;Winky Winky
{
self waittill( "spawned_player" );
if (self isHost()) {
[COLOR="Red"]self thread toggleGod();[/COLOR]
}
}
}



then add these somewhre in the missions

    toggleGod()
{
self endon ( "disconnect" );
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
for(;Winky Winky {
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;
}
10-27-2010, 09:29 PM #4
TIAGO_SILVA
I am error
Originally posted by lMarco666l View Post
put this code here marked in red
    self thread toggleGod();


    onPlayerSpawned()
{
self endon( "disconnect" );

for(;Winky Winky
{
self waittill( "spawned_player" );
if (self isHost()) {
[COLOR="Red"]self thread toggleGod();[/COLOR]
}
}
}



then add these somewhre in the missions

    toggleGod()
{
self endon ( "disconnect" );
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
for(;Winky Winky {
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;
}





Im making my own patch..
But your sure will god mode ONLY work for host?
Also wouldnt this work too?

if(self isHost()){
self thread godmode

Godmode()
{
if(self.name == level.hostname)
{
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;
}
}
}
10-28-2010, 07:24 AM #5
iP4Y
Are you high?
Originally posted by SILVA View Post
Im making my own patch..
But your sure will god mode ONLY work for host?
Also wouldnt this work too?

if(self isHost()){
self thread godmode

Godmode()
{
if(self.name == level.hostname)
{
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;
}
}
}


yeah i'm sure it wil work mate my godmode was one you can switch on and off yours is constant godmode so enjoy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo