Liberty Unleashed
Scripting => Script Help => Topic started by: Maximom on October 31, 2013, 06:07:31 pm
-
?any one have godmode script? if have give me the code thx. :-\
-
Save this in your server as client script
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.
-
not working :/
-
Vetal forgot onClientShot
-
but i dont know still..
-
Take this: (client script)
/* 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;
}
-
IT WORKS!! THE GODMODE BUTTON WORKS!!efeapgaer[hlaerhpl[erehp[lhteainozhno
-
Does this work on the ''Mess about server''?
-
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.
-
I'm not the owner of the server lol
-
I'm not the owner of the server lol
Where did I say you were?
-
I'm not the owner of the server lol
Where did I say you were?
Ur pretending to be a asshole or what?!
-
Easy now boy. You're making some weird assumptions here.
I'm gonna lock this thread before you say something you'll regret..