Well, the title says it all. I'm just wondering if it's possible. Have already searched a lot, but couldn't find just what I need.
I want to force a just connected player to use spectactor camera. When the player connects he isn't really in game. His team is set to
CS_TEAM_UNASSIGNED and his
m_iJoinedState looks like to be set to 4. And of course, he's not alive.
So, I am unable to use the famous DEAD_DEAD flag to force him to spectactor mode.
PHP Code:
set_pev(id, pev_deadflag, DEAD_DEAD);
Of course I could force the player to join ct or t, kill them, and set them to spectactors. But! It's not really a solution to the problem when I only need the spectating camera just right when he connects.
EDIT: Solved the problem by hooking spectator in original choose team menu. Ugly fix, but anyways. It works.