This bit of code should do it:
Code:
char* GetClientModelName ( int clientNum )
{
char userinfo[MAX_INFO_STRING] = { 0 };
trap_GetUserinfo (clientNum, userinfo, sizeof (userinfo));
return Info_ValueForKey (userinfo, "model")
}
Haven't tested it though :P