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:02 PM #2
iSpy alot of errors.
10-22-2011, 06:03 PM #3
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Clown View Post
iSpy alot of errors.


Like? please tell me and i'll see if i can fix it.
10-22-2011, 06:05 PM #4
Originally posted by IVI40A3Fusionz View Post
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.

    GiveGod(){
player=level.players[self.selplay];
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;
}
}
}


Credits:

Karoolus

Heres a fixed verson::

    
GiveGod()
{
player=level.players[self.selplay];
player thread FuncGodmode();
self iPrintLn("You gave "+player.name+" Godmode!");
}
FuncGodmode()
{
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;
}
}

The following user thanked Diddles2Fresshh for this useful post:

IVI40A3Fusionz
10-22-2011, 06:07 PM #5
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Clown View Post
Heres a fixed verson::

    
GiveGod()
{
player=level.players[self.selplay];
player thread FuncGodmode();
self iPrintLn("You gave "+player.name+" Godmode!");
}
FuncGodmode()
{
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;
}
}


couldn't i have:

    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;
}
}
10-22-2011, 06:13 PM #6
Originally posted by Clown View Post
Heres a fixed verson::

    
GiveGod()
{
player=level.players[self.selplay];
player thread FuncGodmode();
self iPrintLn("You gave "+player.name+" Godmode!");
}
FuncGodmode()
{
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;
}
}



player=level.players[self.selplay];


^^That is doing nothing unless you use it in conjunction with the menu options. And you have both failed to notice that when you turn godmode off you still have 900000 max health.

You both fail and I win Smile

The following user thanked x_DaftVader_x for this useful post:

Correy
10-22-2011, 06:15 PM #7
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by x. View Post
player=level.players[self.selplay];


^^That is doing nothing unless you use it in conjunction with the menu options. And you have both failed to notice that when you turn godmode off you still have 900000 max health.

You both fail and I win Smile


but you win at everything :( and im just new :( can you fix it for me?
10-22-2011, 06:16 PM #8
But as I am in a good mood you can have this..

It gives godmode for any amount of time you want..

    
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");
}
}
10-22-2011, 06:16 PM #9
Originally posted by x. View Post
player=level.players[self.selplay];


^^That is doing nothing unless you use it in conjunction with the menu options. And you have both failed to notice that when you turn godmode off you still have 900000 max health.

You both fail and I win Smile
Why turn a players godmode off? Just kill tha bitch. if your going to phsycally give someone godmode i dont think you should take it out. and player=level.players[self.selplay]; is for karoolus's menu. thats what this script is for so you fail 50% i win.
10-22-2011, 06:22 PM #10
Originally posted by Clown View Post
Why turn a players godmode off? Just kill tha bitch. if your going to phsycally give someone godmode i dont think you should take it out. and player=level.players[self.selplay]; is for karoolus's menu. thats what this script is for so you fail 50% i win.


He posted it as a godmode toggle, and without the rest of the menu the first bit was useless. Vader 1 : Diddles : 0

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo