When you want to go AFK simply type "!specme" into chat, upon return simply join a team as per usual. *NOTE* if the server has not changed maps when you return your score will be the same as what it was before joining the spectators team.
This is only version 1.0.0 there are more to come.
Installation
Extract this zip file onto your servers root directory, right next to the HL2 folder.