Hello Zay333,
here's the gasmask script, the only thing that you have to edit is the imagepath:
;Artificial Intelligence Script
;Header
desc = Hud
;Triggers
;Choose our Gasmask variable
:state=0:globalvar=Gasmaskstate
;Create the Hud (Position and Image)
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=*Image*,hudname=Gasmask,hudhide=1,hudmake=display,state=1
;Show the hud if "G" is pressed
:state=1,scancodekeypressed=34:state=2
:state=2:hudshow=Gasmask,setvar=1,state=3
;Reset the keypressed condition
:state=3,scancodekeypressed=0:state=4
;If the hud is shown and "G" gets pressed, hide the hud
:state=4,scancodekeypressed=34:hudunshow=Gasmask,setvar=0,state=5
;Reset the keypressed condition
:state=5,scancodekeypressed=0:state=1
;End of Script
And here's the edited plrhurtinzone script:
;Artificial Intelligence Script
;Header
desc = Plr Hurt In Zone
;Triggers
:state=0:globalvar=Gasmaskstate
:state=0,plrwithinzone=1,varequal=0:state=1,plraddhealth=-1
;End of script
I haven't tested them, but they should work, however, a version higher than 1.08 is required because of the used variable commands.
-Doomster