Player angle limiting to yaw(?)

Hello, I wanted to know, if its possible, to set the player being able to only look sideways, yaw if I am right - sorry I dont understand angles much yet, I dont want them to look up/down, only left/right, I think it has to do with calcview, but how would I go about doing so?