What it be better to place this into sdk_client.cpp ?
void FinishClientPutInServer( CSDKPlayer *pPlayer )
{
// team menu stuff here
}
Because the player will not be able to spawn while the round is still being
played. They will need to wait until the round has ended.
r00t 3:16
CQC Gaming
www.cqc-gaming.com
----- Original Message -----
From: "r00t 3:16" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, December 31, 2004 2:22 AM
Subject: PlayerSpawn
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