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:23 PM #11
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by x. View Post
He posted it as a godmode toggle, and without the rest of the menu the first bit was useless. Vader 1 : Diddles : 0


did i do something right in a way or was it all completely wrong?
10-22-2011, 06:26 PM #12
Originally posted by x. View Post
he posted it as a godmode toggle, and without the rest of the menu the first bit was useless. Vader 1 : Diddles : 0
omfgwtfbbq!!!! :FU:
10-22-2011, 06:26 PM #13
Originally posted by IVI40A3Fusionz View Post
did i do something right in a way or was it all completely wrong?
Well, kind of, yes and no. Keep going though, you'll get better Smile
10-22-2011, 06:27 PM #14
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by x. View Post
Well, kind of, yes and no. Keep going though, you'll get better Smile


thats what im doing i need people like you etc to tell me where i go wrong so i can then keep trying to fix em Winky Winky then in the end i'll get better Happy.
10-22-2011, 06:27 PM #15
Originally posted by Clown View Post
omfgwtfbbq!!!! :FU:
And by the way, your sig. . Two underscores in a name is too many. What fool would do that...
10-22-2011, 06:28 PM #16
Blackstorm
Veni. Vidi. Vici.
I would pwn all you but I decided not to embarrass you :carling:
10-22-2011, 06:29 PM #17
Originally posted by x. View Post
And by the way, your sig. . Two underscores in a name is too many. What fool would do that...
Diddles_The_Fool did it. You monkey..
10-22-2011, 06:29 PM #18
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Blackstorm View Post
I would pwn all you but I decided not to embarrass you :carling:


lol but blackstorm we all know your a good coder Winky Winky.
10-22-2011, 06:31 PM #19
Blackstorm
Veni. Vidi. Vici.
Originally posted by IVI40A3Fusionz View Post
lol but blackstorm we all know your a good coder Winky Winky.


Not good, just experienced. Winky Winky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo