This is exactly what I have:
;Artificial Intelligence Script
Flahlight script
;Header
desc = flashlight s4real fog edit by game freak16 and edited by:(SEF)DEATH and CoffeeGrunt too!
;Triggers
;==============================================================================================================================================================
;Hud's to show.
;==============================================================================================================================================================
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecoretextflash.dds,hudname=flash,hudhide=1,hudmake=display,state=9
:state=9:hudreset,hudx=11,hudy=90,hudimagefine=gamecoretextflashlightv31.tag,hudname=1,hudhide=1,hudmake=display,state=10
:state=10:hudreset,hudx=11,hudy=90,hudimagefine=gamecoretextflashlightv32.tag,hudname=2,hudhide=1,hudmake=display,state=11
:state=11:hudreset,hudx=11,hudy=90,hudimagefine=gamecoretextflashlightv33.tag,hudname=3,hudhide=1,hudmake=display,state=12
:state=12:hudreset,hudx=11,hudy=90,hudimagefine=gamecoretextflashlightv34.tag,hudname=4,hudhide=1,hudmake=display,state=13
:state=13:hudreset,hudx=11,hudy=90,hudimagefine=gamecoretextflashlightv35.tag,hudname=5,hudhide=1,hudmake=display,state=14
:state=14:hudreset,hudx=11,hudy=90,hudimagefine=gamecoretextflashlightv36.tag,hudname=6,hudhide=1,hudmake=display,state=15
:state=15:hudreset,hudx=11,hudy=90,hudimagefine=gamecoretextflashlightv37.tag,hudname=7,hudhide=1,hudmake=display,state=16
:state=16:hudreset,hudx=11,hudy=90,hudimagefine=gamecoretextflashlightv38.tag,hudname=8,hudhide=1,hudmake=display,state=17
:state=17:hudreset,hudx=11,hudy=90,hudimagefine=gamecoretextflashlightv39.tag,hudname=9,hudhide=1,hudmake=display,state=18
:state=18:hudreset,hudx=11,hudy=90,hudimagefine=gamecoretextflashlightv310.tag,hudname=10,hudhide=1,hudmake=display,state=1
:state=1,scancodekeypressed=33:hudshow=flash,sound=audiobankflashswitchflash.ogg,ambience=50,timerstart,state=2,fog=1,fogred=5,fogblue=5,foggreen=5
:state=2,scancodekeypressed=0:state=3
;==============================================================================================================================================================
;Hud timers
;==============================================================================================================================================================
:state=3,timergreater=1:hudshow=1
:state=3,timergreater=4000:ambience=48,hudunshow=1
:state=3,timergreater=4000:ambience=46,hudshow=2
:state=3,timergreater=8000:ambience=44,hudunshow=2
:state=3,timergreater=8000:ambience=42,hudshow=3
:state=3,timergreater=12000:ambience=40,hudunshow=3
:state=3,timergreater=12000:ambience=38,hudshow=4
:state=3,timergreater=16000:ambience=36,hudunshow=4
:state=3,timergreater=16000:ambience=34,hudshow=5
:state=3,timergreater=20000:ambience=32,hudunshow=5
:state=3,timergreater=20000:ambience=30,hudshow=6
:state=3,timergreater=24000:ambience=27,hudunshow=6
:state=3,timergreater=24000:ambience=24,hudshow=7
:state=3,timergreater=28000:ambience=21,hudunshow=7
:state=3,timergreater=28000:ambience=18,hudshow=8
:state=3,timergreater=32000:ambience=15,hudunshow=8
:state=3,timergreater=32000:ambience=12,hudshow=9
:state=3,timergreater=36000:ambience=9,hudunshow=9
:state=3,timergreater=36000:ambience=6,hudshow=10
:state=3,timergreater=37000:ambience=3,hudunshow=10
:state=3,timergreater=37000:hudunshow=flash,sound=audiobankflashswitchflash.ogg,ambience=0,state=1,fog=0,fogred=0,fogblue=0,foggreen=0
;==============================================================================================================================================================
;Huds to unshow when the key is pressed
;==============================================================================================================================================================
:state=3,scancodekeypressed=33:hudunshow=flash,sound=audiobankflashswitchflash.ogg,ambience=5,state=4,fog=0,fogred=0,fogblue=0,foggreen=0
:state=4:hudunshow=1,timerstart
:state=4:hudunshow=2
:state=4:hudunshow=3
:state=4:hudunshow=4
:state=4:hudunshow=5
:state=4:hudunshow=6
:state=4:hudunshow=7
:state=4:hudunshow=8
:state=4:hudunshow=9
:state=4:hudunshow=10
:state=4,timergreater=3000:plraddhealth=-9999,plrsound=XXX
:state=4,scancodekeypressed=0:state=1
;End Script
P.S. Thanks both of you for helping me with this.