Код: // // !FF // else if( Command == "ff" && !player->GetFFVote( ) && m_GameLoaded) { if ( !m_Stats ) { SendChat(player->GetPID(), m_GHost->m_Language->GetLang("lang_1208")); return HideCommand; } if ( m_GHost->m_minFFtime && ((GetTime() - GetGameLoadedTime()) < m_GHost->m_minFFtime) ) { SendChat(player->GetPID(), m_GHost->m_Language->GetLang("lang_1217", UTIL_ToString(m_GHost->m_minFFtime))); return HideCommand; } player->SetFFVote( true ); unsigned char playerTeam = m_Slots[GetSIDFromPID(player->GetPID())].GetTeam(); uint32_t count1 = 0; uint32_t count2 = 0; //count of players in the team. uint32_t votes1 = 0; uint32_t votes2 = 0; //count of votes in the team. string teamname = (playerTeam == 0 ? "SENTINEL" : "SCOURGE"); for( vector<CGamePlayer *> :: iterator i = m_Players.begin( ); i != m_Players.end( ); i++ ) { if( !(*i)->GetLeftMessageSent( ) ) if(m_Slots[GetSIDFromPID((*i)->GetPID())].GetTeam() == (unsigned char)0) { count1++; if( (*i)->GetFFVote( ) ) votes1++; } else { count2++; if( (*i)->GetFFVote( ) ) votes2++; } } bool end1 = (votes1 == count1); bool end2 = (votes2 == count2); if( end1 || end2 ) { if( end1 ) m_Stats->SetWinner(2); else m_Stats->SetWinner(1); SendAllChat(m_GHost->m_Language->GetLang("lang_1213", end1 ? "SENTINEL" : "SCOURGE" )); SendAllChat(m_GHost->m_Language->GetLang("lang_1053")); // "Game will end in 5 seconds" m_GameEndCountDownStarted = true; m_GameEndCountDownCounter = 5; m_GameEndLastCountDownTicks = GetTicks(); } else { SendAllChat( m_GHost->m_Language->GetLang("lang_1211", "$USER$", User, "$TEAMNAME$", teamname, "$VOTES$", UTIL_ToString(playerTeam == 0 ? votes1 : votes2), "$COUNT$", UTIL_ToString(playerTeam == 0 ? count1 : count2))); } SendChat(player->GetPID(), m_GHost->m_Language->GetLang("lang_1210", "$TRIGGER$", string(1, m_GHost->m_CommandTrigger))); return HideCommand; } как это всунуть в GhostOne? при компиляции ибо пишет this is not CLanguage