Camera rotation constraint

I don’t know how but how can I restrict the cameras rotation to 0-180 on the x axis only? I know there is a logic brick with constraints, but it does not have one for rotation. PLEASE, without python, or animation of the camera.( But if it’s the only way then okay.)