Use this as a script (s4real's flashlight script):
The hud in this case is located in gamecore\huds\ and it's called nightvision.tga . You can change it however you like.Make your hud with photoshop or something and put the script in a dynamic light or trigger zone.Start a game and press F.
;Artificial Intelligence Script
Flahlight script
;Header
desc = flashlight s4real
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\nightvision.tga,hudname=flash,hudhide=1,hudmake=display,state=1
:state=1,scancodekeypressed=33:hudshow=flash,ambience=40,state=2
:state=2,scancodekeypressed=0:state=3
:state=3,scancodekeypressed=33:hudunshow=flash,ambience=0,state=4
:state=4,scancodekeypressed=0:state=1
;End of Script