well, i don't know of any in-side-hl variables which hold track of that. Therefor i suggest you keep your own list:
Code:
// somewhere in a header file.
// Player information
typedef struct
{
edict_t *pEdict; // edict
bool bIsBot; // is this edict a bot?
float fConnectedTime;
} tPlayer;
// somewhere in dll.cpp
tPlayer Players[32]; // players
// somewhere in GameDLLInit()
int i=0;
for (i; i < 32; i++)
{
Players[i].pEdict=NULL;
Players[i].bIsBot=false;
Players[i].fConnectedTime=0.0;
}
// Somewhere in clientconnect
// etc etc.. find the client, attach the information
hope it helps, pretty tired.
