Disallowing player movement but with camera control?

How can i block the player from walking around but do allow him to look around? i tried to block the console command with the PlayerBindPress hook but i still need to inputs from the player.

I’m not entirely if this will help, but read this page.

This was done in the Fretta-gamemode Assassination for a few seconds upon player spawn. You should take a look at there.

This helped, thanks a lot.