This is my first plugin, I know there is some other plugins like this but this is my version.
Commands
sm_afk (Moves client to the spectator team.)
sm_spec <name|#userid> (Moves client to the spectator team and watches target.)
sm_spectate <name|#userid> (Same with !spec.)
sm_observe <name|#userid> (Same with !spec.)
Cvars
sm_spec_enabled "1/0" Enable / Disable plugin. (default: 1)
sm_spec_blockmotherzm "1/0" Blocks motherzombies to use !spec command. 1 = Block | 0 = Don't block. (default: 1)
Github