Thread: LUA scripters?
View Single Post
  #8  
Old 06-28-2016, 12:17 PM
Guest001 is offline Guest001
Registered User

Join Date: Aug 2008
Posts: 4,971

I'm a prankster

Yeperoony.



Here's the correct version.

Code:
InjuryCount=0

function hurtplayer(e)
Detect = PlyrDist(e)
Health = Health(e)

if Detect < 100 and InjuryCount<=5 then
Health(-1)
InjuryCount=InjuryCount+1
else
Health > 1 and InjuryCount==5 then
action(e,1)
end

end
Reply With Quote