View Single Post
Re: Another step forward?
Old
  (#16)
dub
Member
 
dub's Avatar
 
Status: Offline
Posts: 89
Join Date: Aug 2004
Location: UK
Default Re: Another step forward? - 10-01-2005

bug fix for get team, add this code to the end of ubbot_util.cpp
Code:
int UTIL_GetTeam (edict_t *pEdict)
 {
 	IPlayerInfo *pi = NULL;
 
 	if ((pi = playerinfomanager->GetPlayerInfo (pEdict)) != NULL)
 		return (pi->GetTeamIndex ());
 	else
 		return -1;
 }
& max clients is sent on server activate.
code hasn`t been tested but should hopefully work enjoy

[edit]
much cleaner code.
[/edit]

Last edited by dub; 11-01-2005 at 03:23..
  
Reply With Quote