The below code is what I have in sdk_gamerules.cpp
The below code should load the team select menu and place the player in
TEAM_SPECTATOR
Why would it still spawn the player?
What is happening is the Team Selection menu comes up but it spawns me right
into the server as soon as I connect which is not what I want.


void CSDKGameRules::PlayerSpawn(CBasePlayer *pPlayer) { CSDKPlayer* pPly = ToSDKPlayer(pPlayer); if (pPly->GetTeamNumber() == TEAM_UNASSIGNED) { pPly->ChangeTeam(TEAM_SPECTATOR); pPly->StartObserverMode(OBS_MODE_ROAMING); pPly->ShowViewPortPanel("specgui", false); pPly->ShowViewPortPanel("team", true); } else { pPly->EnableControl(true); pPly->StopObserverMode(); pPly->EquipSuit(); } }

r00t 3:16
CQC Gaming
www.cqc-gaming.com


_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders



Reply via email to