how to make the camera follow the mouse cursor just like crosshair in counter-strike?

can someone give me hints about getting the mouse cursor coordinates then gives in to the center of the camera or a gameobject that is centered in the camera will accept the coordinates?

http://unity3d.com/support/documentation/ScriptReference/Rect.Rect.html

uhh… why Rect?

because we need to get coordiantes of the center of screen.You can do it with raycast too Unity - Scripting API: Camera.ScreenPointToRay

var positionn : Rect; 
var crosshairTexture : Texture2D;
function Update() {
Screen.lockCursor = true;
}

function OnGUI () {
      //this line generates the mouse pos
    positionn = Rect( Input.mousePosition.x - (crosshairTexture.width / 2), (Screen.height - Input.mousePosition.y) - (crosshairTexture.height / 2), crosshairTexture.width , crosshairTexture.height );
   //draws the texture to mouse pos
    GUI.DrawTexture( positionn , crosshairTexture );

}