From 3fda2de502ce28d0c4e0372f671f197a82ff07b1 Mon Sep 17 00:00:00 2001 From: marvin Date: Sat, 27 Apr 2019 11:26:17 +0200 Subject: [PATCH] finally fixed #27 (#16) --- src/game/server/gamecontext.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index d1b5dc638..3a9cdfe66 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -1307,7 +1307,17 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID) pPlayer->m_TeeInfosOriginal.m_aSkinPartColors[p] = pMsg->m_aSkinPartColors[p]; } ApplyStartColors(ClientID, pPlayer->m_TeeInfosOriginal);//does change feet and body colors of original skin - SendChat(ClientID, CHAT_ALL, ClientID, "Your skinchange will apply next round"); + + CNetMsg_Sv_Chat Msg; + Msg.m_Mode = CHAT_ALL; + Msg.m_ClientID = -1; + + Msg.m_TargetID = ClientID; + + Msg.m_pMessage = "Your skinchange will apply next round"; + Server()->SendPackMsg(&Msg, MSGFLAG_VITAL, ClientID); + + //SendChat(-1, CHAT_ALL, ClientID, "Your skinchange will apply next round"); // update all clients//don't update, the update will apply next round /*for(int i = 0; i < MAX_CLIENTS; ++i) {