mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
ddnet Info
This commit is contained in:
parent
987efe8604
commit
b567c32820
|
@ -42,17 +42,17 @@ void CGameContext::ConInfo(IConsole::IResult *pResult, void *pUserData)
|
||||||
{
|
{
|
||||||
CGameContext *pSelf = (CGameContext *) pUserData;
|
CGameContext *pSelf = (CGameContext *) pUserData;
|
||||||
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "info",
|
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "info",
|
||||||
"DDRace Mod. Version: " GAME_VERSION);
|
"DDRaceNetwork Mod. Version: " GAME_VERSION);
|
||||||
#if defined( GIT_SHORTREV_HASH )
|
#if defined( GIT_SHORTREV_HASH )
|
||||||
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "info",
|
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "info",
|
||||||
"Git revision hash: " GIT_SHORTREV_HASH);
|
"Git revision hash: " GIT_SHORTREV_HASH);
|
||||||
#endif
|
#endif
|
||||||
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "info",
|
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "info",
|
||||||
"Official site: DDRace.info");
|
"Official site: ddnet.no-ip.info");
|
||||||
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "info",
|
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "info",
|
||||||
"For more Info /cmdlist");
|
"For more Info /cmdlist");
|
||||||
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "info",
|
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "info",
|
||||||
"Or visit DDRace.info");
|
"Or visit ddnet.no-ip.info");
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGameContext::ConHelp(IConsole::IResult *pResult, void *pUserData)
|
void CGameContext::ConHelp(IConsole::IResult *pResult, void *pUserData)
|
||||||
|
|
|
@ -670,8 +670,8 @@ void CGameContext::OnClientEnter(int ClientID)
|
||||||
str_format(aBuf, sizeof(aBuf), "'%s' entered and joined the %s", Server()->ClientName(ClientID), m_pController->GetTeamName(m_apPlayers[ClientID]->GetTeam()));
|
str_format(aBuf, sizeof(aBuf), "'%s' entered and joined the %s", Server()->ClientName(ClientID), m_pController->GetTeamName(m_apPlayers[ClientID]->GetTeam()));
|
||||||
SendChat(-1, CGameContext::CHAT_ALL, aBuf);
|
SendChat(-1, CGameContext::CHAT_ALL, aBuf);
|
||||||
|
|
||||||
SendChatTarget(ClientID, "DDRace Mod. Version: " GAME_VERSION);
|
SendChatTarget(ClientID, "DDRaceNetwork Mod. Version: " GAME_VERSION);
|
||||||
SendChatTarget(ClientID, "please visit http://DDRace.info or say /info for more info");
|
SendChatTarget(ClientID, "please visit http://ddnet.no-ip.info or say /info for more info");
|
||||||
|
|
||||||
if(g_Config.m_SvWelcome[0]!=0)
|
if(g_Config.m_SvWelcome[0]!=0)
|
||||||
SendChatTarget(ClientID,g_Config.m_SvWelcome);
|
SendChatTarget(ClientID,g_Config.m_SvWelcome);
|
||||||
|
|
Loading…
Reference in a new issue