Well this mod allows you to set infinite HP. You can use sethealth comand but only you can 250 hp. With this script you can use !sethp (id) (hp) command to set Extra health. If your extra health is over then you will be hurted. To see your total hp you can type !myhp. On each respawn you will have your total hp.
The script have some other disabled functions like +1hp per kill or admin list.
@MC_Bowlinghead, Spartan2D
It isn't a bug, glitch, or error. Computers cannot use numbers larger than 2^64-1. But most programs only use 32-bit numbers so 2^32-1. Lua uses 64-bits for its numbers though (I think).
oh ya if i make new server not an dedicated server
its works but in dedicated server its say
LUA ERROR: sys/lua/extralife.lua:46: attempt to compare nil with number
LUA ERROR:sys/lua/extralife.lua:29:attempt to compare nil with number and two of this continous
sorry im noob in Lua
but this is great
its possible if you are admin make it:
use always hook and make (i dont know your codes because i dont look it... exemple:) hp[id]= 1000
its always hook and all time your extra hp = 1000 its never change.
@SharpEye
Man you fail. My script have return 1 on hit hook. You real hp dont go down if your extra hp is more than 0. I play with the script and it works. I think you need to download it and then write a comment.
@KimKat
Maybe you are right. But if you get +1 extra hp per kill you can get all the hp you want. And yes, this is like a cheat. I made this because i was bored and I saw "Infinite Money" script. I wanted do the same but with HP.
Good script, it's good to have infinite health sometimes... but it would be considered as cheating if no one else gets this... unfair treatment of players, etc. It's like giving one player a laser and expect the other players to be okay with it. But still, nice Lua...
DsTyLe has written
You can set yourself the biggest number you can write.
If you cant write an infinite numer it is your problem
The infinite value is: ∞.
It's possible to write Lua that interprets that symbol as infinite.