Infinite Health in X Second
7 replies
1

07.12.11 03:45:40 pm
Hi guys! i want infinite health in x second
Example: player A have infinite health in 10 second
if player B hit player A,player A isn't die because infinite health when finish 10 second player B can hit and kill player A,player A can get damage from player B or other player.
Can you make me this script?
Thank you for answer
Example: player A have infinite health in 10 second
if player B hit player A,player A isn't die because infinite health when finish 10 second player B can hit and kill player A,player A can get damage from player B or other player.
Can you make me this script?
Thank you for answer
use the hit hook and return 1.
use a variable to save which player is currently invincible and a timer to switch every x seconds. done.
use a variable to save which player is currently invincible and a timer to switch every x seconds. done.
I think you can put env_hurt and put it -99999 so it will auto heal you.
Another Day Another Shitload Of Shit
@
Loooser: if you have a super armor it works with all weapons
but it don't work (without armor)
if...the weapon kill you in 1sec
Loooser: if you have a super armor it works with all weapons
but it don't work (without armor)
if...the weapon kill you in 1sec
You mean:
Player 1 hits Player 2(which has inf hp), player 1 gets inf hp?
Player 1 hits Player 2(which has inf hp), player 1 gets inf hp?
Leaving Unrealsoftware, will be back after Stranded 3 is released.
Ah, he wants a timer-ed shield...
Untested, but the idea is correct.
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
addhook("say","_say")
addhook("hit","_hit")
protected={}
function _say(id,message)
if message=="give me inf" then
protected[id]=os.time()+10
end
end
function _hit(id,victim)
if protected[victim]~=nil and os.time()<protected[victim] then
return 1
end
end
addhook("hit","_hit")
protected={}
function _say(id,message)
if message=="give me inf" then
protected[id]=os.time()+10
end
end
function _hit(id,victim)
if protected[victim]~=nil and os.time()<protected[victim] then
return 1
end
end
Untested, but the idea is correct.
1








Infinite Health in X Second

Unlocking the games.