I thought i wouls add this piece of code because when i first started i realised wait a mo my camera is going all the way around and back agen, obv this poses a problem for a first person shooter as (unless of course it is an exorcist shooter) peoples heads cant do a 360 degree spin. so this is for those people who cant be bothered to write their own.
NB i tried looking for another persons code which did this but it neva worked so i ended up writing my own
ENJOY
Aj