After
PHP Code:
client_connect(id) or client_putinserver(id) // whichever works for you.
You can use this:
PHP Code:
cs_set_user_team(id,CS_TEAM_SPECTATOR ) //Changing team to Spectator.
I think that after connecting,Players will be forced to join team spectators,I didn't test it,Give it a try.