Cohsty243 Posted July 5, 2008 Share Posted July 5, 2008 Is there a function in serverside that returns the name of the model a client is using? Link to comment Share on other sites More sharing options...
XycaleTh Posted July 5, 2008 Share Posted July 5, 2008 This bit of code should do it: 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 Link to comment Share on other sites More sharing options...
ensiform Posted July 5, 2008 Share Posted July 5, 2008 You might want to make that static. And don't call said function too often in a row or you will likely get corruption. Link to comment Share on other sites More sharing options...
Cohsty243 Posted July 7, 2008 Author Share Posted July 7, 2008 Thank you! That helped alot! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.