From 2f45abdc404b4e8f6b5ff925ec38f779736754d8 Mon Sep 17 00:00:00 2001 From: "DemonulPierdut/-/Julian /[Assange/]" Date: Mon, 24 Jan 2011 22:36:05 +1100 Subject: [PATCH] fixed the sv_team 1 message.. lol it never told u too join a team :D --- src/game/server/entities/character.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/game/server/entities/character.cpp b/src/game/server/entities/character.cpp index ac58dfdeb..a5ac032f1 100644 --- a/src/game/server/entities/character.cpp +++ b/src/game/server/entities/character.cpp @@ -99,7 +99,10 @@ bool CCharacter::Spawn(CPlayer *pPlayer, vec2 Pos) { Controller->m_Teams.SendTeamsState(GetPlayer()->GetCID()); } - + if(g_Config.m_SvTeam == 1) + { + GameServer()->SendChatTarget(GetPlayer()->GetCID(),"Please join a team before you start"); + } m_DefEmote = EMOTE_NORMAL; m_DefEmoteReset = -1; return true; @@ -1045,8 +1048,8 @@ void CCharacter::HandleTiles(int Index) if(((m_TileIndex == TILE_BEGIN) || (m_TileFIndex == TILE_BEGIN) || FTile1 == TILE_BEGIN || FTile2 == TILE_BEGIN || FTile3 == TILE_BEGIN || FTile4 == TILE_BEGIN || Tile1 == TILE_BEGIN || Tile2 == TILE_BEGIN || Tile3 == TILE_BEGIN || Tile4 == TILE_BEGIN) && (m_DDRaceState == DDRACE_NONE || m_DDRaceState == DDRACE_FINISHED || (m_DDRaceState == DDRACE_STARTED && !Team()))) { bool CanBegin = true; - if(g_Config.m_SvTeam == 1 && (Team() == TEAM_FLOCK || Teams()->Count(Team()) <= 1) ) { - GameServer()->SendChat(-1, GetPlayer()->GetCID(),"I already told you that you must find a friend");//need to make this better + if(g_Config.m_SvTeam == 1 && (Team() == TEAM_FLOCK || Teams()->Count(Team()) <= 1)) { + GameServer()->SendChatTarget(GetPlayer()->GetCID(),"I already told you too join a team"); CanBegin = false; } if(CanBegin) {