Liberty Unleashed

Scripting => Script Help => Topic started by: Maximom on October 31, 2013, 06:07:31 pm

Title: godmode script
Post by: Maximom on October 31, 2013, 06:07:31 pm
?any one have godmode script? if have give me the code thx.  :-\
Title: Re: godmode script
Post by: Nihau on October 31, 2013, 07:55:09 pm
Save this in your server as client script

Code: [Select]
pPlayer  <- FindLocalPlayer();
GOD_MODE <-  false;//This is global variable

function onClientHurt(entity){

if(pPlayer){ //   Check if local player exist to prevent possible crash

if(GOD_MODE == true)   //Check if GOD_MODE has been enabled, then:
{   return 0; /* Cancel the damage */  }
}
return 1;
}


function onClientCommand( cmd, text )
{

if(cmd == "godmode"){

if(GOD_MODE == false){
GOD_MODE = true;
Message("GOD MODE HAS BEEN ENABLED.");

} else {
GOD_MODE = false;
Message("GOD MODE HAS BEEN DISABLED.");
}

}  //end of godmode command

return 1;
}

This script not tested, but should work.
Title: Re: godmode script
Post by: Maximom on November 11, 2013, 01:16:07 pm
not working :/
Title: Re: godmode script
Post by: sasha19323 on November 11, 2013, 01:34:08 pm
Vetal forgot onClientShot
Title: Re: godmode script
Post by: Maximom on November 11, 2013, 01:44:31 pm
but i dont know still..
Title: Re: godmode script
Post by: ZX_Lost_Soul on November 11, 2013, 02:36:21 pm
Take this: (client script)
Code: [Select]
/* Immortal mode  ||  Author: ZX_Lost_Soul
Press F11 to become fucking immortal */

local plr=FindLocalPlayer();
local immortal;

function onScriptLoad() {
BindKey(KEY_F11, BINDTYPE_UP, "immortal_mode");
}

function immortal_mode() {
if(!immortal) {
immortal=1;
Message("Now you're immortal!");
} else {
immortal=0;
Message("Now you're earthborn");
  }
}

function onClientHurt(ent) {
if(immortal) return 0;
return 1;
}

function onClientShot(plr, wep, prt) {
if(immortal) return 0;
return 1;
}
Title: Re: godmode script
Post by: Maximom on November 11, 2013, 06:40:24 pm
IT WORKS!! THE GODMODE BUTTON WORKS!!efeapgaer[hlaerhpl[erehp[lhteainozhno
Title: Re: godmode script
Post by: Suzuka on January 10, 2014, 12:41:24 pm
Does this work on the ''Mess about server''?
Title: Re: godmode script
Post by: Thijn on January 10, 2014, 03:12:01 pm
Does this work on the ''Mess about server''?
If you're talking about the server itself, no. This script isn't added on there.
If you're talking about the script, sure. You can add it yourself.
Title: Re: godmode script
Post by: Suzuka on January 10, 2014, 11:52:30 pm
I'm not the owner of the server lol
Title: Re: godmode script
Post by: Thijn on January 11, 2014, 12:50:40 pm
I'm not the owner of the server lol
Where did I say you were?
Title: Re: godmode script
Post by: Suzuka on January 12, 2014, 06:32:40 pm
I'm not the owner of the server lol
Where did I say you were?

Ur pretending to be a asshole or what?!
Title: Re: godmode script
Post by: Thijn on January 12, 2014, 11:32:22 pm
Easy now boy. You're making some weird assumptions here.
I'm gonna lock this thread before you say something you'll regret..