From a63534b1d4df293c2f0e5d31500b53438aca7f7a Mon Sep 17 00:00:00 2001 From: Adam Jaworski Date: Sat, 15 Aug 2015 00:00:58 +0200 Subject: IF DEFINED(CONf_SQL) fixed. --- src/game/server/gamecontext.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/game/server/gamecontext.cpp') diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 0c564928..e28b944d 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -878,7 +878,11 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID) str_format(aBuf, sizeof(aBuf), "If there are less than %d players, the round does not end and all players are released instead.", g_Config.m_SvLastStandingPlayers); SendChatTarget(ClientID, aBuf); } +#if defined(CONF_SQL) SendChatTarget(ClientID, "Commands list: top5, rank, help, victims, kills, w, whisper, c, converse"); +#else + SendChatTarget(ClientID, "Commands list: help, victims, kills, w, whisper, c, converse"); +#endif } #if defined(CONF_SQL) @@ -909,8 +913,10 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID) #endif else if(!str_comp_nocase("help", pMsg->m_pMessage + 1)) { +#if defined(CONF_SQL) SendChatTarget(ClientID, "/rank or /rank - show position in ranking."); SendChatTarget(ClientID, "/top5 or /top5 - Top5 winners on server."); +#endif SendChatTarget(ClientID, "/victims - who is waiting for your death"); SendChatTarget(ClientID, "/kills - list of players you killed"); SendChatTarget(ClientID, "/whisper "); -- cgit 1.4.1