From 2865b3fd71567b8cd2a3075c3c3de0d1a2e51c62 Mon Sep 17 00:00:00 2001 From: "Marius \"Teelevision\" Neugebauer" Date: Wed, 7 May 2014 21:48:11 +0200 Subject: added help for commands --- src/game/server/gamecontext.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index f2c51fc5..94651e85 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -832,7 +832,7 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID) if(!str_comp_nocase("info", pMsg->m_pMessage + 1)) { char aBuf[128]; - str_format(aBuf, sizeof(aBuf), "zCatch %s by erd and Teetime, modified by Teelevision.", ZCATCH_VERSION); + str_format(aBuf, sizeof(aBuf), "zCatch %s by erd and Teetime, modified by Teelevision. See /help.", ZCATCH_VERSION); SendChatTarget(ClientID, aBuf); SendChatTarget(ClientID, "You are caught when killed and released when your killer dies. Catch everyone to win the round."); if(g_Config.m_SvLastStandingPlayers > 2) @@ -841,6 +841,13 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID) SendChatTarget(ClientID, aBuf); } } + else if(!str_comp_nocase("help", pMsg->m_pMessage + 1)) + { + SendChatTarget(ClientID, "/victims: who is waiting for your death"); + SendChatTarget(ClientID, "/kills: list of players you killed"); + SendChatTarget(ClientID, "/t : write PM to "); + SendChatTarget(ClientID, "/ti : write PM via ID"); + } else if(!str_comp_nocase("victims", pMsg->m_pMessage + 1)) { if(pPlayer->m_zCatchNumVictims) -- cgit 1.4.1