about summary refs log tree commit diff
path: root/src/game/server
diff options
context:
space:
mode:
authorMarius "Teelevision" Neugebauer <marius@teele.eu>2014-05-07 21:48:11 +0200
committerMarius "Teelevision" Neugebauer <marius@teele.eu>2014-05-07 21:48:11 +0200
commit2865b3fd71567b8cd2a3075c3c3de0d1a2e51c62 (patch)
treecc9fea8b1a2119aa22a01da3e74c5aa4fe19f9d7 /src/game/server
parentdb71497f6a91e13d1c099b531eed4aeb5cc1ffb7 (diff)
downloadzcatch-2865b3fd71567b8cd2a3075c3c3de0d1a2e51c62.tar.gz
zcatch-2865b3fd71567b8cd2a3075c3c3de0d1a2e51c62.zip
added help for commands
Diffstat (limited to 'src/game/server')
-rw-r--r--src/game/server/gamecontext.cpp9
1 files changed, 8 insertions, 1 deletions
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 <name> <msg>: write PM to <name>");
+				SendChatTarget(ClientID, "/ti <id> <msg>: write PM via ID");
+			}
 			else if(!str_comp_nocase("victims", pMsg->m_pMessage + 1))
 			{
 				if(pPlayer->m_zCatchNumVictims)