Подпишитесь на наш Telegram-канал, чтобы всегда быть в курсе важных обновлений! Перейти

Гайд Subliminal buybot

  • Автор темы Автор темы train67
  • Дата начала Дата начала
Участник
Участник
Статус
Оффлайн
Регистрация
26 Апр 2018
Сообщения
866
Реакции
181
Сначала: перейдите в menu_setup.cpp и добавьте это
Код:
Expand Collapse Copy
    auto buybot_enable = new C_CheckBox("enable buybot", &g_cfg.misc.buybot_enable);
            auto buybot_rifleschoice2 = new C_MultiDropdown("", &g_cfg.misc.buybot_rifleschoice2);
            auto buybot_pistolchoice2 = new C_MultiDropdown("", &g_cfg.misc.buybot_pistolchoice2);
            auto buybot_extras = new C_MultiDropdown("", &g_cfg.misc.buybot_extras);

Во-вторых: перейдите в configs.h и добавьте это в структуру Misc_t
Код:
Expand Collapse Copy
  bool buybot_enable; // just for the memes u know
        std::vector< MultiDropdownItem_t > buybot_extras;
        std::vector< MultiDropdownItem_t > buybot_rifleschoice2;
        std::vector< MultiDropdownItem_t > buybot_pistolchoice2;

В-третьих: перейдите в configs.cpp и добавьте это где-нибудь
Код:
Expand Collapse Copy
  if (g_cfg.misc.buybot_enable && !strcmp(event_name, "round_prestart")) // Checks if buybot is enabled, and then will buy stuff if round before round
    {

        if (g_cfg.misc.buybot_rifleschoice2[GALILAR].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy galilar");
        }
        if (g_cfg.misc.buybot_rifleschoice2[FAMAS].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy famas");
        }
        if (g_cfg.misc.buybot_rifleschoice2[AK47].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy ak47");
        }
        if (g_cfg.misc.buybot_rifleschoice2[M4A1].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy m4a1");
        }
        if (g_cfg.misc.buybot_rifleschoice2[M4A1_SILENCER].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy m4a1_silencer");
        }
        if (g_cfg.misc.buybot_rifleschoice2[SSG08].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy ssg08");
        }
        if (g_cfg.misc.buybot_rifleschoice2[AUG].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy aug");
        }
        if (g_cfg.misc.buybot_rifleschoice2[SG556].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy sg556");
        }
        if (g_cfg.misc.buybot_rifleschoice2[AWP].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy awp");
        }
        if (g_cfg.misc.buybot_rifleschoice2[SCAR20].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy scar20");
        }
        if (g_cfg.misc.buybot_rifleschoice2[G3SG1].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy g3sg1");
        }
        if (g_cfg.misc.buybot_rifleschoice2[NOVA].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy nova");
        }
        if (g_cfg.misc.buybot_rifleschoice2[XM1014].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy xm1014");
        }
        if (g_cfg.misc.buybot_rifleschoice2[MAG7].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy mag7");
        }
        if (g_cfg.misc.buybot_rifleschoice2[M249].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy m249");
        }
        if (g_cfg.misc.buybot_rifleschoice2[NEGEV].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy negev");
        }
        if (g_cfg.misc.buybot_rifleschoice2[MAC10].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy mac10");
        }
        if (g_cfg.misc.buybot_rifleschoice2[MP9].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy mp9");
        }
        if (g_cfg.misc.buybot_rifleschoice2[MP7].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy mp7");
        }
        if (g_cfg.misc.buybot_rifleschoice2[UMP45].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy ump45");
        }
        if (g_cfg.misc.buybot_rifleschoice2[P90].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy p90");
        }
        if (g_cfg.misc.buybot_rifleschoice2[BIZON].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy bizon");
        }


        if (g_cfg.misc.buybot_pistolchoice2[GLOCK].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy glock");
        }
        if (g_cfg.misc.buybot_pistolchoice2[HKP2000].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy hkp2000");
        }
        if (g_cfg.misc.buybot_pistolchoice2[USP_SILENCER].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy usp_silencer");
        }
        if (g_cfg.misc.buybot_pistolchoice2[ELITE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy elite");
        }
        if (g_cfg.misc.buybot_pistolchoice2[P250].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy p250");
        }
        if (g_cfg.misc.buybot_pistolchoice2[TEC9].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy tec9");
        }
        if (g_cfg.misc.buybot_pistolchoice2[FIVESEVEN].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy fn57");
        }
        if (g_cfg.misc.buybot_pistolchoice2[DEAGLE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy deagle; buy revolver");
        }


        if (g_cfg.misc.buybot_extras[VEST].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy vest");
        }
        if (g_cfg.misc.buybot_extras[VESTHELM].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy vesthelm");
        }
        if (g_cfg.misc.buybot_extras[DEFUSER].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy defuser");
        }
        if (g_cfg.misc.buybot_extras[HEAVYARMOR].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy heavyarmor");
        }
        if (g_cfg.misc.buybot_extras[TASER].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy taser 34");
        }
        if (g_cfg.misc.buybot_extras[HEGRENADE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy hegrenade");
        }
        if (g_cfg.misc.buybot_extras[SMOKEGRENADE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy smokegrenade");
        }
        if (g_cfg.misc.buybot_extras[INCGRENADE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy incgrenade");
        }
        if (g_cfg.misc.buybot_extras[MOLOTOV].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy molotov");
        }
        if (g_cfg.misc.buybot_extras[DECOY].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy decoy");
        }
        if (g_cfg.misc.buybot_extras[FLASHBANG].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy flashbang");
        }
        if (g_cfg.misc.buybot_extras[FLASHBANGX2].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy flashbang; buy flashbang;");
        }

}

В-четвертых: перейдите к hooked_events.cpp и добавьте это где-нибудь в void FireGameEvent
Код:
Expand Collapse Copy
  if (g_cfg.misc.buybot_enable && !strcmp(event_name, "round_prestart")) // Checks if buybot is enabled, and then will buy stuff if round before round
    {

        if (g_cfg.misc.buybot_rifleschoice2[GALILAR].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy galilar");
        }
        if (g_cfg.misc.buybot_rifleschoice2[FAMAS].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy famas");
        }
        if (g_cfg.misc.buybot_rifleschoice2[AK47].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy ak47");
        }
        if (g_cfg.misc.buybot_rifleschoice2[M4A1].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy m4a1");
        }
        if (g_cfg.misc.buybot_rifleschoice2[M4A1_SILENCER].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy m4a1_silencer");
        }
        if (g_cfg.misc.buybot_rifleschoice2[SSG08].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy ssg08");
        }
        if (g_cfg.misc.buybot_rifleschoice2[AUG].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy aug");
        }
        if (g_cfg.misc.buybot_rifleschoice2[SG556].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy sg556");
        }
        if (g_cfg.misc.buybot_rifleschoice2[AWP].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy awp");
        }
        if (g_cfg.misc.buybot_rifleschoice2[SCAR20].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy scar20");
        }
        if (g_cfg.misc.buybot_rifleschoice2[G3SG1].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy g3sg1");
        }
        if (g_cfg.misc.buybot_rifleschoice2[NOVA].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy nova");
        }
        if (g_cfg.misc.buybot_rifleschoice2[XM1014].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy xm1014");
        }
        if (g_cfg.misc.buybot_rifleschoice2[MAG7].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy mag7");
        }
        if (g_cfg.misc.buybot_rifleschoice2[M249].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy m249");
        }
        if (g_cfg.misc.buybot_rifleschoice2[NEGEV].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy negev");
        }
        if (g_cfg.misc.buybot_rifleschoice2[MAC10].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy mac10");
        }
        if (g_cfg.misc.buybot_rifleschoice2[MP9].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy mp9");
        }
        if (g_cfg.misc.buybot_rifleschoice2[MP7].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy mp7");
        }
        if (g_cfg.misc.buybot_rifleschoice2[UMP45].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy ump45");
        }
        if (g_cfg.misc.buybot_rifleschoice2[P90].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy p90");
        }
        if (g_cfg.misc.buybot_rifleschoice2[BIZON].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy bizon");
        }


        if (g_cfg.misc.buybot_pistolchoice2[GLOCK].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy glock");
        }
        if (g_cfg.misc.buybot_pistolchoice2[HKP2000].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy hkp2000");
        }
        if (g_cfg.misc.buybot_pistolchoice2[USP_SILENCER].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy usp_silencer");
        }
        if (g_cfg.misc.buybot_pistolchoice2[ELITE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy elite");
        }
        if (g_cfg.misc.buybot_pistolchoice2[P250].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy p250");
        }
        if (g_cfg.misc.buybot_pistolchoice2[TEC9].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy tec9");
        }
        if (g_cfg.misc.buybot_pistolchoice2[FIVESEVEN].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy fn57");
        }
        if (g_cfg.misc.buybot_pistolchoice2[DEAGLE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy deagle; buy revolver");
        }


        if (g_cfg.misc.buybot_extras[VEST].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy vest");
        }
        if (g_cfg.misc.buybot_extras[VESTHELM].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy vesthelm");
        }
        if (g_cfg.misc.buybot_extras[DEFUSER].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy defuser");
        }
        if (g_cfg.misc.buybot_extras[HEAVYARMOR].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy heavyarmor");
        }
        if (g_cfg.misc.buybot_extras[TASER].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy taser 34");
        }
        if (g_cfg.misc.buybot_extras[HEGRENADE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy hegrenade");
        }
        if (g_cfg.misc.buybot_extras[SMOKEGRENADE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy smokegrenade");
        }
        if (g_cfg.misc.buybot_extras[INCGRENADE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy incgrenade");
        }
        if (g_cfg.misc.buybot_extras[MOLOTOV].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy molotov");
        }
        if (g_cfg.misc.buybot_extras[DECOY].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy decoy");
        }
        if (g_cfg.misc.buybot_extras[FLASHBANG].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy flashbang");
        }
        if (g_cfg.misc.buybot_extras[FLASHBANGX2].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy flashbang; buy flashbang;");
        }
}

В-пятых: перейдите в configs.h (снова) и добавьте это где-нибудь рядом с перечислениями
Код:
Expand Collapse Copy
enum {
    //rifles
    GALILAR,
    FAMAS,
    AK47,
    M4A1,
    M4A1_SILENCER,
    SSG08,
    AUG,
    SG556,
    AWP,
    SCAR20,
    G3SG1,
    NOVA,
    XM1014,
    MAG7,
    M249,
    NEGEV,
    MAC10,
    MP9,
    MP7,
    UMP45,
    P90,
    BIZON,

    //pistols
    GLOCK,
    HKP2000,
    USP_SILENCER,
    ELITE,
    P250,
    TEC9,
    FIVESEVEN,
    DEAGLE,

    //misc
    VEST,
    VESTHELM,
    TASER,
    DEFUSER,
    HEAVYARMOR,
    MOLOTOV,
    INCGRENADE,
    DECOY,
    FLASHBANG,
    FLASHBANGX2,
    HEGRENADE,
    SMOKEGRENADE
};
 
Сначала: перейдите в menu_setup.cpp и добавьте это
Код:
Expand Collapse Copy
    auto buybot_enable = new C_CheckBox("enable buybot", &g_cfg.misc.buybot_enable);
            auto buybot_rifleschoice2 = new C_MultiDropdown("", &g_cfg.misc.buybot_rifleschoice2);
            auto buybot_pistolchoice2 = new C_MultiDropdown("", &g_cfg.misc.buybot_pistolchoice2);
            auto buybot_extras = new C_MultiDropdown("", &g_cfg.misc.buybot_extras);

Во-вторых: перейдите в configs.h и добавьте это в структуру Misc_t
Код:
Expand Collapse Copy
  bool buybot_enable; // just for the memes u know
        std::vector< MultiDropdownItem_t > buybot_extras;
        std::vector< MultiDropdownItem_t > buybot_rifleschoice2;
        std::vector< MultiDropdownItem_t > buybot_pistolchoice2;

В-третьих: перейдите в configs.cpp и добавьте это где-нибудь
Код:
Expand Collapse Copy
  if (g_cfg.misc.buybot_enable && !strcmp(event_name, "round_prestart")) // Checks if buybot is enabled, and then will buy stuff if round before round
    {

        if (g_cfg.misc.buybot_rifleschoice2[GALILAR].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy galilar");
        }
        if (g_cfg.misc.buybot_rifleschoice2[FAMAS].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy famas");
        }
        if (g_cfg.misc.buybot_rifleschoice2[AK47].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy ak47");
        }
        if (g_cfg.misc.buybot_rifleschoice2[M4A1].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy m4a1");
        }
        if (g_cfg.misc.buybot_rifleschoice2[M4A1_SILENCER].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy m4a1_silencer");
        }
        if (g_cfg.misc.buybot_rifleschoice2[SSG08].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy ssg08");
        }
        if (g_cfg.misc.buybot_rifleschoice2[AUG].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy aug");
        }
        if (g_cfg.misc.buybot_rifleschoice2[SG556].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy sg556");
        }
        if (g_cfg.misc.buybot_rifleschoice2[AWP].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy awp");
        }
        if (g_cfg.misc.buybot_rifleschoice2[SCAR20].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy scar20");
        }
        if (g_cfg.misc.buybot_rifleschoice2[G3SG1].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy g3sg1");
        }
        if (g_cfg.misc.buybot_rifleschoice2[NOVA].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy nova");
        }
        if (g_cfg.misc.buybot_rifleschoice2[XM1014].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy xm1014");
        }
        if (g_cfg.misc.buybot_rifleschoice2[MAG7].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy mag7");
        }
        if (g_cfg.misc.buybot_rifleschoice2[M249].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy m249");
        }
        if (g_cfg.misc.buybot_rifleschoice2[NEGEV].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy negev");
        }
        if (g_cfg.misc.buybot_rifleschoice2[MAC10].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy mac10");
        }
        if (g_cfg.misc.buybot_rifleschoice2[MP9].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy mp9");
        }
        if (g_cfg.misc.buybot_rifleschoice2[MP7].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy mp7");
        }
        if (g_cfg.misc.buybot_rifleschoice2[UMP45].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy ump45");
        }
        if (g_cfg.misc.buybot_rifleschoice2[P90].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy p90");
        }
        if (g_cfg.misc.buybot_rifleschoice2[BIZON].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy bizon");
        }


        if (g_cfg.misc.buybot_pistolchoice2[GLOCK].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy glock");
        }
        if (g_cfg.misc.buybot_pistolchoice2[HKP2000].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy hkp2000");
        }
        if (g_cfg.misc.buybot_pistolchoice2[USP_SILENCER].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy usp_silencer");
        }
        if (g_cfg.misc.buybot_pistolchoice2[ELITE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy elite");
        }
        if (g_cfg.misc.buybot_pistolchoice2[P250].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy p250");
        }
        if (g_cfg.misc.buybot_pistolchoice2[TEC9].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy tec9");
        }
        if (g_cfg.misc.buybot_pistolchoice2[FIVESEVEN].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy fn57");
        }
        if (g_cfg.misc.buybot_pistolchoice2[DEAGLE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy deagle; buy revolver");
        }


        if (g_cfg.misc.buybot_extras[VEST].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy vest");
        }
        if (g_cfg.misc.buybot_extras[VESTHELM].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy vesthelm");
        }
        if (g_cfg.misc.buybot_extras[DEFUSER].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy defuser");
        }
        if (g_cfg.misc.buybot_extras[HEAVYARMOR].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy heavyarmor");
        }
        if (g_cfg.misc.buybot_extras[TASER].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy taser 34");
        }
        if (g_cfg.misc.buybot_extras[HEGRENADE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy hegrenade");
        }
        if (g_cfg.misc.buybot_extras[SMOKEGRENADE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy smokegrenade");
        }
        if (g_cfg.misc.buybot_extras[INCGRENADE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy incgrenade");
        }
        if (g_cfg.misc.buybot_extras[MOLOTOV].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy molotov");
        }
        if (g_cfg.misc.buybot_extras[DECOY].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy decoy");
        }
        if (g_cfg.misc.buybot_extras[FLASHBANG].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy flashbang");
        }
        if (g_cfg.misc.buybot_extras[FLASHBANGX2].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy flashbang; buy flashbang;");
        }

}

В-четвертых: перейдите к hooked_events.cpp и добавьте это где-нибудь в void FireGameEvent
Код:
Expand Collapse Copy
  if (g_cfg.misc.buybot_enable && !strcmp(event_name, "round_prestart")) // Checks if buybot is enabled, and then will buy stuff if round before round
    {

        if (g_cfg.misc.buybot_rifleschoice2[GALILAR].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy galilar");
        }
        if (g_cfg.misc.buybot_rifleschoice2[FAMAS].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy famas");
        }
        if (g_cfg.misc.buybot_rifleschoice2[AK47].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy ak47");
        }
        if (g_cfg.misc.buybot_rifleschoice2[M4A1].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy m4a1");
        }
        if (g_cfg.misc.buybot_rifleschoice2[M4A1_SILENCER].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy m4a1_silencer");
        }
        if (g_cfg.misc.buybot_rifleschoice2[SSG08].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy ssg08");
        }
        if (g_cfg.misc.buybot_rifleschoice2[AUG].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy aug");
        }
        if (g_cfg.misc.buybot_rifleschoice2[SG556].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy sg556");
        }
        if (g_cfg.misc.buybot_rifleschoice2[AWP].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy awp");
        }
        if (g_cfg.misc.buybot_rifleschoice2[SCAR20].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy scar20");
        }
        if (g_cfg.misc.buybot_rifleschoice2[G3SG1].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy g3sg1");
        }
        if (g_cfg.misc.buybot_rifleschoice2[NOVA].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy nova");
        }
        if (g_cfg.misc.buybot_rifleschoice2[XM1014].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy xm1014");
        }
        if (g_cfg.misc.buybot_rifleschoice2[MAG7].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy mag7");
        }
        if (g_cfg.misc.buybot_rifleschoice2[M249].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy m249");
        }
        if (g_cfg.misc.buybot_rifleschoice2[NEGEV].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy negev");
        }
        if (g_cfg.misc.buybot_rifleschoice2[MAC10].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy mac10");
        }
        if (g_cfg.misc.buybot_rifleschoice2[MP9].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy mp9");
        }
        if (g_cfg.misc.buybot_rifleschoice2[MP7].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy mp7");
        }
        if (g_cfg.misc.buybot_rifleschoice2[UMP45].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy ump45");
        }
        if (g_cfg.misc.buybot_rifleschoice2[P90].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy p90");
        }
        if (g_cfg.misc.buybot_rifleschoice2[BIZON].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy bizon");
        }


        if (g_cfg.misc.buybot_pistolchoice2[GLOCK].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy glock");
        }
        if (g_cfg.misc.buybot_pistolchoice2[HKP2000].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy hkp2000");
        }
        if (g_cfg.misc.buybot_pistolchoice2[USP_SILENCER].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy usp_silencer");
        }
        if (g_cfg.misc.buybot_pistolchoice2[ELITE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy elite");
        }
        if (g_cfg.misc.buybot_pistolchoice2[P250].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy p250");
        }
        if (g_cfg.misc.buybot_pistolchoice2[TEC9].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy tec9");
        }
        if (g_cfg.misc.buybot_pistolchoice2[FIVESEVEN].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy fn57");
        }
        if (g_cfg.misc.buybot_pistolchoice2[DEAGLE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy deagle; buy revolver");
        }


        if (g_cfg.misc.buybot_extras[VEST].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy vest");
        }
        if (g_cfg.misc.buybot_extras[VESTHELM].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy vesthelm");
        }
        if (g_cfg.misc.buybot_extras[DEFUSER].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy defuser");
        }
        if (g_cfg.misc.buybot_extras[HEAVYARMOR].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy heavyarmor");
        }
        if (g_cfg.misc.buybot_extras[TASER].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy taser 34");
        }
        if (g_cfg.misc.buybot_extras[HEGRENADE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy hegrenade");
        }
        if (g_cfg.misc.buybot_extras[SMOKEGRENADE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy smokegrenade");
        }
        if (g_cfg.misc.buybot_extras[INCGRENADE].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy incgrenade");
        }
        if (g_cfg.misc.buybot_extras[MOLOTOV].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy molotov");
        }
        if (g_cfg.misc.buybot_extras[DECOY].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy decoy");
        }
        if (g_cfg.misc.buybot_extras[FLASHBANG].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy flashbang");
        }
        if (g_cfg.misc.buybot_extras[FLASHBANGX2].enabled)
        {
            g_csgo.m_engine()->ClientCmd("buy flashbang; buy flashbang;");
        }
}

В-пятых: перейдите в configs.h (снова) и добавьте это где-нибудь рядом с перечислениями
Код:
Expand Collapse Copy
enum {
    //rifles
    GALILAR,
    FAMAS,
    AK47,
    M4A1,
    M4A1_SILENCER,
    SSG08,
    AUG,
    SG556,
    AWP,
    SCAR20,
    G3SG1,
    NOVA,
    XM1014,
    MAG7,
    M249,
    NEGEV,
    MAC10,
    MP9,
    MP7,
    UMP45,
    P90,
    BIZON,

    //pistols
    GLOCK,
    HKP2000,
    USP_SILENCER,
    ELITE,
    P250,
    TEC9,
    FIVESEVEN,
    DEAGLE,

    //misc
    VEST,
    VESTHELM,
    TASER,
    DEFUSER,
    HEAVYARMOR,
    MOLOTOV,
    INCGRENADE,
    DECOY,
    FLASHBANG,
    FLASHBANGX2,
    HEGRENADE,
    SMOKEGRENADE
};
Видал это на пастерс,байбот покупает рандомно(хз почему ,но у меня так),пришлось самому сделать.
 
Покупает все пистолеты*
+ я написал что спастили с пастерса
и что он от туда это не значит что его тут нету вот и кинул сюды чтоб не потерять там вселишь 1 строчку изменить не трудно
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
го кредиты мне пж
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Смешно смотреть на тебя и твой гайд.
Всё это можно сделать и в обычной кс, как собственно делают многие.
Смысл от того что ты добавил это UserCmd.
Это просто гайд по вбиву текста в консоль
 
Смешно смотреть на тебя и твой гайд.
Всё это можно сделать и в обычной кс, как собственно делают многие.
Смысл от того что ты добавил это UserCmd.
Это просто гайд по вбиву текста в консоль
Просто проще спастить а не настраивать конфиг, и можно на ходу менять что покупать
К тому же это не его гайд
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Закупает рандомно,пришлось переделать
 
Назад
Сверху Снизу