How do I create a camera boundary and zooming limit script

In C# sharp, how do I create a script for camera movement limits and limit how much can you zoom in or zoom out?
Post it if you know.

Check the standard assets third person.

I am not making a scene where you control a character,

The camera moves similarly to an RTS game. From a bird’s view.

Therefore standard assets are not applicable nor helpful.

Like in RTS game I need to define where the camera can end.

Well thats something you should have written down in your first post… I’m quite sure you know the boundaries of your level, so you can just grab the position of the camera and put it back to maxX or maxZ if its greater or trying to be greater than this.