Reading base owners and authorized clan members from Tool Cupboards:
std::vector<uint64_t> GetTCAuthorizedUsers(BuildingPrivlidge* pTC) {
std::vector<uint64_t> steamIds;
auto pAuthList = pTC->m_authorizedPlayers(); // List<PlayerNameID>
if (!pAuthList) return steamIds;
int count = pAuthList->m_iCount;
for (int i = 0; i < count; i++) {
auto entry = pAuthList->m_pItems[i];
steamIds.push_back(entry.userid);
}
return steamIds;
}Displays the names and SteamIDs of everyone authed on an enemy base during raids!