Differentiate team top 5 from player team top 5

This commit is contained in:
srdante 2022-03-28 16:51:50 -03:00
parent 404d9ecb7f
commit dba7889399
3 changed files with 4 additions and 4 deletions

View file

@ -409,7 +409,7 @@ void CGameContext::ConTeamTop5(IConsole::IResult *pResult, void *pUserData)
const char *pRequestedName = (str_comp(pResult->GetString(0), "me") == 0) ? const char *pRequestedName = (str_comp(pResult->GetString(0), "me") == 0) ?
pSelf->Server()->ClientName(pResult->m_ClientID) : pSelf->Server()->ClientName(pResult->m_ClientID) :
pResult->GetString(0); pResult->GetString(0);
pSelf->Score()->ShowTeamTop5(pResult->m_ClientID, pRequestedName, 0); pSelf->Score()->ShowPlayerTeamTop5(pResult->m_ClientID, pRequestedName, 0);
} }
} }
else if(pResult->NumArguments() == 2 && pResult->GetInteger(1) != 0) else if(pResult->NumArguments() == 2 && pResult->GetInteger(1) != 0)
@ -417,7 +417,7 @@ void CGameContext::ConTeamTop5(IConsole::IResult *pResult, void *pUserData)
const char *pRequestedName = (str_comp(pResult->GetString(0), "me") == 0) ? const char *pRequestedName = (str_comp(pResult->GetString(0), "me") == 0) ?
pSelf->Server()->ClientName(pResult->m_ClientID) : pSelf->Server()->ClientName(pResult->m_ClientID) :
pResult->GetString(0); pResult->GetString(0);
pSelf->Score()->ShowTeamTop5(pResult->m_ClientID, pRequestedName, pResult->GetInteger(1)); pSelf->Score()->ShowPlayerTeamTop5(pResult->m_ClientID, pRequestedName, pResult->GetInteger(1));
} }
else else
{ {

View file

@ -210,7 +210,7 @@ void CScore::ShowTeamTop5(int ClientID, int Offset)
ExecPlayerThread(CScoreWorker::ShowTeamTop5, "show team top5", ClientID, "", Offset); ExecPlayerThread(CScoreWorker::ShowTeamTop5, "show team top5", ClientID, "", Offset);
} }
void CScore::ShowTeamTop5(int ClientID, const char *pName, int Offset) void CScore::ShowPlayerTeamTop5(int ClientID, const char *pName, int Offset)
{ {
if(RateLimitPlayer(ClientID)) if(RateLimitPlayer(ClientID))
return; return;

View file

@ -55,7 +55,7 @@ public:
void ShowRank(int ClientID, const char *pName); void ShowRank(int ClientID, const char *pName);
void ShowTeamTop5(int ClientID, int Offset = 1); void ShowTeamTop5(int ClientID, int Offset = 1);
void ShowTeamTop5(int ClientID, const char *pName, int Offset = 1); void ShowPlayerTeamTop5(int ClientID, const char *pName, int Offset = 1);
void ShowTeamRank(int ClientID, const char *pName); void ShowTeamRank(int ClientID, const char *pName);
void ShowTopPoints(int ClientID, int Offset = 1); void ShowTopPoints(int ClientID, int Offset = 1);