You have to mess up with lightrange, spotlight, d3d_spotlightcone see the manual. I can put here a simple example but later cause i am at work now.