View Single Post
Re: PODBOT2.6MM after PMB...work still pending
Old
  (#11)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: PODBOT2.6MM after PMB...work still pending - 15-04-2004

to know if a bot is a vip :

Code:
// Is the edict a vip or not?
bool
UTIL_IsVip (edict_t * pEntity)
{
  if (mod_id != CSTRIKE_DLL)
	return false;
  else
	{
	  char *infobuffer;
	  char model_name[32];
	  infobuffer = (*g_engfuncs.pfnGetInfoKeyBuffer) (pEntity);
	  strcpy (model_name, (g_engfuncs.pfnInfoKeyValue (infobuffer, "model")));
	  if (strcmp (model_name, "vip") == 0) // VIP
 return true;
	}
  return false;
}


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote