resize clients
This commit is contained in:
@ -514,7 +514,7 @@ void CGameContext::SendChat(int ChatterClientID, int Team, const char *pText, in
|
||||
char aBuf[256], aText[256];
|
||||
str_copy(aText, pText, sizeof(aText));
|
||||
if(ChatterClientID >= 0 && ChatterClientID < MAX_CLIENTS)
|
||||
str_format(aBuf, sizeof(aBuf), "%d:%d:%s: %s", ChatterClientID, Team, Server()->ClientName(ChatterClientID), aText);
|
||||
str_format(aBuf, sizeof(aBuf), "[%d:%d:%s]: %s", ChatterClientID, Team, Server()->ClientName(ChatterClientID), aText);
|
||||
else if(ChatterClientID == -2)
|
||||
{
|
||||
str_format(aBuf, sizeof(aBuf), "### %s", aText);
|
||||
@ -562,7 +562,7 @@ void CGameContext::SendChat(int ChatterClientID, int Team, const char *pText, in
|
||||
// pack one for the recording only
|
||||
if(g_Config.m_SvDemoChat)
|
||||
Server()->SendPackMsg(&Msg, MSGFLAG_VITAL | MSGFLAG_NOSEND, SERVER_DEMO_CLIENT);
|
||||
|
||||
|
||||
// send to the clients
|
||||
for(int i = 0; i < Server()->MaxClients(); i++)
|
||||
{
|
||||
@ -1086,7 +1086,7 @@ void CGameContext::OnTick()
|
||||
Console()->ExecuteLine(m_aVoteCommand);
|
||||
Server()->SetRconCID(IServer::RCON_CID_SERV);
|
||||
EndVote();
|
||||
SendChat(-1, CGameContext::CHAT_ALL, "Vote passed", -1, CHAT_SIX);
|
||||
SendChat(-1, CGameContext::CHAT_ALL, "投票通过", -1, CHAT_SIX);
|
||||
|
||||
if(m_apPlayers[m_VoteCreator] && !IsKickVote() && !IsSpecVote())
|
||||
m_apPlayers[m_VoteCreator]->m_LastVoteCall = 0;
|
||||
@ -1109,7 +1109,7 @@ void CGameContext::OnTick()
|
||||
if(VetoStop || (m_VoteWillPass && Veto))
|
||||
SendChat(-1, CGameContext::CHAT_ALL, "Vote failed because of veto. Find an empty server instead", -1, CHAT_SIX);
|
||||
else
|
||||
SendChat(-1, CGameContext::CHAT_ALL, "Vote failed", -1, CHAT_SIX);
|
||||
SendChat(-1, CGameContext::CHAT_ALL, "投票失败", -1, CHAT_SIX);
|
||||
}
|
||||
else if(m_VoteUpdate)
|
||||
{
|
||||
|
Reference in New Issue
Block a user