mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
add showall message
This commit is contained in:
parent
160b4df81c
commit
07bc652896
|
@ -1135,6 +1135,11 @@ void CGameContext::ConShowAll(IConsole::IResult *pResult, void *pUserData)
|
||||||
pPlayer->m_ShowAll = pResult->GetInteger(0);
|
pPlayer->m_ShowAll = pResult->GetInteger(0);
|
||||||
else
|
else
|
||||||
pPlayer->m_ShowAll = !pPlayer->m_ShowAll;
|
pPlayer->m_ShowAll = !pPlayer->m_ShowAll;
|
||||||
|
|
||||||
|
if (pPlayer->m_ShowAll)
|
||||||
|
pSelf->SendChatTarget(pResult->m_ClientID, "You will now see all tees on this server, no matter the distance.");
|
||||||
|
else
|
||||||
|
pSelf->SendChatTarget(pResult->m_ClientID, "You will no longer see all tees on this server.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGameContext::ConSpecTeam(IConsole::IResult *pResult, void *pUserData)
|
void CGameContext::ConSpecTeam(IConsole::IResult *pResult, void *pUserData)
|
||||||
|
|
Loading…
Reference in a new issue