client_connect(id) or client_putinserver(id) // whichever works for you.
cs_set_user_team(id,CS_TEAM_SPECTATOR ) //Changing team to Spectator.