Post: [SCRIPT] Give God Mode
10-22-2011, 06:00 PM #1
IVI40A3Fusionz
Former Gaming Squad Member
(adsbygoogle = window.adsbygoogle || []).push({}); I didn't really create the script from scratch i just edited it after taking the Toggle God Mode from Karoolus' patch + i don't know if this has already been posted in this section if it has i apologize and i will ask for the thread to be closed.

I'm not sure if it will work but im 50% sure it will.

Please don't flame im a noob at modding and didn't start that long ago and this is my first go at editing a script.

If it don't work could someone kindly edit it so it does work and i will put you in the credits.

My Code:
    GiveGod(){
player=level.players[self.selplay];
player thread Toggle_God();
self iPrintLn("You gave "+player.name+" Godmode!");
}
Toggle_God()
{
if(self.god==true)
{
self notify("stop_god");
self.maxhealth=100;
self.health=self.maxhealth;
self.god=false;
}
else
{
self thread doGod();
self.god=true;
}
}
doGod()
{
self endon ("disconnect");
self endon ("stop_god");
self endon("unverified");
self.maxhealth=90000;
self.health=self.maxhealth;
while(1)
{
wait .1;
if(self.health<self.maxhealth)self.health=self.maxhealth;
}
}


x_DaftVader_x Code:
    GodON(time) {
self endon("disconnect");
self endon("death");
self endon("nog");
self.god = true;
self.maxhealth = 90000;
self.health = self.maxhealth;
for (i = 0; i < time; i++) {
if (self.health < self.maxhealth) self.health = self.maxhealth;
wait 1;
}
if (i == time) {
self.maxhealth = 100;
self.health = self.maxhealth;
self.god = false;
self notify("nog");
}
}


BAdmaNgLiTcHa Code:
    GodON(time)
{
for (i = 0; i < time; i += 1 )
{
self.health = 90000;
wait 1;
}
self.health = 100;
}


Credits:

Karoolus

Diddles Clown (For Fixing My code)

x_DaftVader_x (For His Code)

BAdmaNgLiTcHa (For His Code)
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked IVI40A3Fusionz for this useful post:

ImAzazel
10-22-2011, 06:31 PM #20
Woof
...hmm
Originally posted by Blackstorm View Post
I would pwn all you but I decided not to embarrass you :carling:

Maybe... maybe. Gaspkay:
I will take you out on C# though! :carling:
10-22-2011, 06:32 PM #21
Blackstorm
Veni. Vidi. Vici.
Originally posted by BAdmaNgLiTcHa View Post
Maybe... maybe. Gaspkay:
I will take you out on C# though! :carling:


Probly :b .
10-22-2011, 06:33 PM #22
Originally posted by Blackstorm View Post
I would pwn all you but I decided not to embarrass you :carling:
With your magic staff?
10-22-2011, 06:33 PM #23
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Blackstorm View Post
Not good, just experienced. Winky Winky


this threads kinda turned into a 'Whos better at coding?' thread lol
10-22-2011, 06:33 PM #24
Originally posted by Clown View Post
Diddles_The_Fool did it. You monkey..
x_DaftVader_x_the_fool Now I haz four Winky Winky
10-22-2011, 06:35 PM #25
Blackstorm
Veni. Vidi. Vici.
Originally posted by IVI40A3Fusionz View Post
this threads kinda turned into a 'Whos better at coding?' thread lol


I guess, I haven't really put in my version of this code so I can't say anything :b
10-22-2011, 06:35 PM #26
Originally posted by Blackstorm View Post
Not good, just experienced. Winky Winky
You just make your stuff look good by putting loads of [[[[[ ]]]] round everything Winky Winky

The following user thanked x_DaftVader_x for this useful post:

IELIITEMODZX
10-22-2011, 06:35 PM #27
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Blackstorm View Post
I guess, I haven't really put in my version of this code so I can't say anything :b


well go ahead and put in your version the more the merrier.
10-22-2011, 06:35 PM #28
Blackstorm
Veni. Vidi. Vici.
Originally posted by Clown View Post
With your magic staff?


Tsss, you know what it is

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo