English Infinite Health in X Second

7 replies
Goto Page
To the start Previous 1 Next To the start
07.12.11 03:45:40 pm
Up
Eternal
User
Offline Off
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
07.12.11 04:00:59 pm
Up
_Y
User
Offline Off
Why would you want this? It's nonsense.
IMG:http://picr.ws/images/2013/03/14/kBIThzC6.png
• Unlocking the games. • We want YOUR maps! < Click me!
07.12.11 04:20:15 pm
Up
DC
Admin
Offline Off
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.
07.12.11 04:26:47 pm
Up
EpicCrisis
User
Offline Off
I think you can put env_hurt and put it -99999 so it will auto heal you.
Another Day Another Shitload Of Shit
07.12.11 04:43:18 pm
Up
Loooser
User
Offline Off
@user EpicCrisis: but that only works for weapons with a damage lower than 100 !!
IMG:http://i45.tinypic.com/saus1e.jpg
07.12.11 04:45:56 pm
Up
SilentDash
User
Offline Off
@user 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
IMG:http://fc01.deviantart.net/fs71/f/2012/067/0/a/mlp_userbar___rainbow_dash_by_blackizaron-d4s388s.png
07.12.11 06:08:00 pm
Up
Jela331
User
Offline Off
You mean:

Player 1 hits Player 2(which has inf hp), player 1 gets inf hp?
Leaving Unrealsoftware, will be back after Stranded 3 is released.
07.12.11 08:03:34 pm
Up
Rumine
User
Offline Off
Ah, he wants a timer-ed shield...

Code:
1
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


Untested, but the idea is correct.
To the start Previous 1 Next To the start