• Need Infinite health script...
    10 replies, posted
Unfortunately I'm getting massivly spawnkilled on a fun server that allows scripting. I am able to run my lua scripts but i dont have one for godmode. If someone could please post the code I would be forever thankful!
You cant heal yourself client side.
get admin permissions, but if they allow COMPLETE lua_run command, then setting your health is as simple as telling LUA your name, then setting your HP to 35 billion, while killing everybody else. however, i doubt they let you have full lua_run access, so you can't do anything. if they do, i can write the script in a couple minutes
[lua]lua_run player.GetByID(1):SetHealth( "600" ) [/lua]
[QUOTE=GeekDeer;34351155][lua]lua_run player.GetByID(1):SetHealth( "600" ) [/lua][/QUOTE] maybe if he was on a listen server [editline]22nd January 2012[/editline] and health was a string
[QUOTE=Banana Lord.;34351296]maybe if he was on a listen server [editline]22nd January 2012[/editline] and health was a string[/QUOTE] ninja'd, oh and the kid would need to know his ent index for player.FindByID, thats why I use Player(<UserID>):SetHealth when I'm doing shit like that
Isnt there a god function?
[QUOTE=aurum481;34354475]Isnt there a god function?[/QUOTE] Not clientside.
[b][url=http://wiki.garrysmod.com/?title=Player.GodDisable]Player.GodDisable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] [b][url=http://wiki.garrysmod.com/?title=Player.GodEnable]Player.GodEnable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] Well this is but works only with lua_run
Client side and server side, know the difference.
[lua] debug.sethook() while true do LocalPlayer().GodEnable = (true) end [/lua] Sets your god mode so fast the server doesn't get a chance to disable it.
Sorry, you need to Log In to post a reply to this thread.