Mouselook 2.49 Horizontal Cap

Hi there

Well… I’m using the mouselook for a light control movement (like a flashlight for Survival Horrors) and i just can’t solve the problem of having the same “Cap” method used in the vertical move in the z-axis of the light for the horizontal move… i dont want it to rotate 360°… the python code is the same used in this tutorial… almost nothing changed

http://www.tutorialsforblender3d.com/Game_Engine/MouseLook/MouseLook_First_1.html

Someone can explain me how can i fix it to have the desired effect plz…

Thanks in advance