| 3997 | } |
| 3998 | |
| 3999 | void CServer::ConHideAuthStatus(IConsole::IResult *pResult, void *pUser) |
| 4000 | { |
| 4001 | CServer *pServer = (CServer *)pUser; |
| 4002 | |
| 4003 | if(pServer->m_RconClientId >= 0 && pServer->m_RconClientId < MAX_CLIENTS && |
| 4004 | pServer->m_aClients[pServer->m_RconClientId].m_State != CServer::CClient::STATE_EMPTY) |
| 4005 | { |
| 4006 | if(pResult->NumArguments()) |
| 4007 | { |
| 4008 | pServer->m_aClients[pServer->m_RconClientId].m_AuthHidden = pResult->GetInteger(0); |
| 4009 | } |
| 4010 | else |
| 4011 | { |
| 4012 | char aStr[9]; |
| 4013 | str_format(aStr, sizeof(aStr), "Value: %d", pServer->m_aClients[pServer->m_RconClientId].m_AuthHidden); |
| 4014 | pServer->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "server", aStr); |
| 4015 | } |
| 4016 | } |
| 4017 | } |
| 4018 | |
| 4019 | void CServer::ConForceHighBandwidthOnSpectate(IConsole::IResult *pResult, void *pUser) |
| 4020 | { |
nothing calls this directly
no test coverage detected