How do i get the cursor to stay in the center of screen for fps!?

Im maiking and fps in unity and i need a small script that keeps the mouse/cursor restrained to the center of the screen

http://unity3d.com/support/documentation/ScriptReference/Screen-lockCursor.html