Here I script something but there are 3 little problem with it:
1)I want to press the key once here we have to hold it.
2)The hurt sound repeats when you are in the trigger.
3)The eyehud come and do not go when you are in the trigger.
I know why these happen but I don't know how to fix them.
Here is the script
;Artificial Intelligence Script
;Header
desc = Plr Hurt In Zone(Hold f to not hurt)(Hold should be press)
;Triggers
:plrwithinzone=1:state=1,plraddhealth=-1,state=2
:state=2,scancodekeypressed=33:plraddhealth=1,state=3
:state=3,scancodekeypressed=0,state=1
The result of the first problem is in the end: state=1
and other problems are plraddhealth=-1 and plraddhealth=1
there must be a way to not use the second one but disable the first one.
Anyway the script works and you can maybe use it as it is for free.
Have our guns was a mistake!!!
I am PaYaM