Add a counter to trigger
Code:
InjuryCount=0
function hurtplayer(e)
Detect = PlyrDist(e)
Health = Health(e)
if Detect < 100 then
Health(-1)
InjuryCount=InjuryCount+1
end
if Health > 1 and InjuryCount==5 then
action(e,1)
end
end
Works with any engine that reads LUA, all you need is an IDE (or code editor like Notepad++) find the syntax for the engine functions and away you go with your own scripts.