View Single Post
Re: Player Joining..
Old
  (#10)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default Re: Player Joining.. - 10-12-2004

I found a function that looks like it would work.

Declaration (game_shared/multiplay_gamerules.h):
Code:
virtual bool ClientConnected( edict_t *pEntity, const char *pszName, const char *pszAddress, char *reject, int maxrejectlen );
Implementation (game_shared/multplay_gamerules.cpp):
Code:
bool CMultiplayRules::ClientConnected( edict_t *pEntity, const char *pszName, const char *pszAddress, char *reject, int maxrejectlen )
   {
     GetVoiceGameMgr()->ClientConnected( pEntity );
     return true;
   }
In gamerules.h, it stated it was called when a player connects, but isn't spawned.


sfx1999.postcount++
  
Reply With Quote