Skocz do zawartości

menu dla twojego ayyware


MrVelow
# CSH External VIP Project

Masz dosyć problemów z czynnikiem zaufania w CS2 lub notorycznymi banami?

Sprawdź CSH External VIP Project.


Więcej informacji  

Rekomendowane odpowiedzi

lWL7F72.jpg 

Credits:mDenis16

 

 

#include "sdk.h"

#include "hooks.h"

#include "Menu.h"

#include "global.h"

#include "Hitmarker.h"

#include "ESP.h"

#include "ImGUI\imconfig.h"

#include "ImGUI\imgui.h"

#include "ImGUI\imgui_internal.h"

#include "ImGUI\stb_rect_pack.h"

#include "ImGUI\stb_textedit.h"

#include "ImGUI\stb_truetype.h"

#include "ImGUI\DX9\imgui_impl_dx9.h"

#include "Items.h"

#include "Config.h"

#include "GameUtils.h"

IDirect3DTexture9 *tImage = nullptr;

typedef void(*CL_FullUpdate_t) (void);

CL_FullUpdate_t CL_FullUpdate = nullptr;

int iTab;

/*void DrawRectRainbow(int x, int y, int width, int height, float flSpeed, float &flRainbow)

{

ImDrawList* windowDrawList = ImGui::GetWindowDrawList();

 

Color colColor(255, 255, 255, 255);

 

flRainbow += flSpeed;

if (flRainbow > 1.f) flRainbow = 0.f;

 

for (int i = 0; i < width; i++)

{

float hue = (1.f / (float)width) * i;

hue -= flRainbow;

if (hue < 0.f) hue += 1.f;

 

Color colRainbow = colColor.FromHSB(hue, 1.f, 1.f);

windowDrawList->AddRectFilled(ImVec2(x + i, y), ImVec2(width, height), colRainbow.GetU32());

}

}

*/

void KnifeApplyCallbk()

{

static auto CL_FullUpdate = reinterpret_cast<CL_FullUpdate_t>(FindPattern("engine.dll", reinterpret_cast<PBYTE>("\xA1\x00\x00\x00\x00\xB9\x00\x00\x00\x00\x56\xFF\x50\x14\x8B\x34\x85"), "x????x????xxxxxxx"));

CL_FullUpdate();

}

 

PresentFn oPresent;

 

ImFont* Impact;

ImFont* Default;

ImFont* Tabs;

ImFont* fTabs;

ImFont* zeustext;

tReset oResetScene;

 

void GUI_Init(IDirect3DDevice9* pDevice) // Setup for imgui

{

ImGuiIO& io = ImGui::GetIO();

ImGui_ImplDX9_Init(G::Window, pDevice);

 

ImGuiStyle& style = ImGui::GetStyle();

 

 

 

Tabs = io.Fonts->AddFontFromFileTTF("C:\\Windows\\Fonts\\eagle.ttf", 70.0f);

fTabs = io.Fonts->AddFontFromFileTTF("C:\\Windows\\Fonts\\eagle.ttf", 35.0f);

zeustext = io.Fonts->AddFontFromFileTTF("C:\\Windows\\Fonts\\Choktoff.ttf", 14.0f);

style.WindowRounding = 0.f;

style.FramePadding = ImVec2(4, 1);

style.WindowPadding = ImVec2(1, 1);

style.ItemSpacing = ImVec2(1, 1);

style.ScrollbarSize = 10.f;

style.ScrollbarRounding = 0.f;

style.GrabMinSize = 5.f;

G::Init = true;

}

 

void color()

{

//style.Colors[ImGuiCol_Button] = ImVec4(0.1f, 0.1f, 0.1f, 0.95f);

ImGuiStyle& style = ImGui::GetStyle();

style.Colors[ImGuiCol_Text] = ImVec4(0.86f, 0.93f, 0.89f, 0.78f);

style.Colors[ImGuiCol_TextDisabled] = ImVec4(0.86f, 0.93f, 0.89f, 0.78f);

style.Colors[ImGuiCol_WindowBg] = ImVec4(0.1f, 0.1f, 0.1f, 0.95f);

style.Colors[ImGuiCol_CheckMark] = ImColor(1, 1, 1, 255);

 

style.Colors[ImGuiCol_ChildWindowBg] = ImVec4(0.1f, 0.1f, 0.1f, 0.95f);

style.Colors[ImGuiCol_Border] = ImColor(15, 30, 15, 255);

style.Colors[ImGuiCol_FrameBg] = ImVec4(0.184f, 0.310f, 0.310f, 0.95f);

style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(0.184f, 0.310f, 0.310f, 0.95f);

style.Colors[ImGuiCol_FrameBgActive] = ImVec4(0.184f, 0.310f, 0.310f, 0.95f);

style.Colors[ImGuiCol_TitleBg] = ImVec4(0.20f, 0.22f, 0.27f, 1.00f);

style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(0.20f, 0.22f, 0.27f, 0.75f);

style.Colors[ImGuiCol_TitleBgActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);

style.Colors[ImGuiCol_MenuBarBg] = ImVec4(0.35f, 0.35f, 0.35f, 1.00f);

style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(0.13f, 0.13f, 0.13f, 1.00f);

style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4(0.09f, 0.15f, 0.16f, 1.00f);

style.Colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(0.15f, 0.60f, 0.78f, 0.78f);

style.Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);

 

style.Colors[ImGuiCol_SliderGrabActive] = ImVec4(0.15f, 0.60f, 0.78f, 1.00f);

style.Colors[ImGuiCol_Button] = ImVec4(0.1f, 0.1f, 0.1f, 0.95f);

style.Colors[ImGuiCol_ButtonHovered] = ImVec4(0.1f, 0.1f, 0.1f, 0.95f);

style.Colors[ImGuiCol_ButtonActive] = ImVec4(0.1f, 0.1f, 0.1f, 0.95f);

style.Colors[ImGuiCol_Header] = ImVec4(0.24f, 0.40f, 0.95f, 1.00f);

style.Colors[ImGuiCol_HeaderHovered] = ImVec4(0.24f, 0.40f, 0.95f, 0.59f);

style.Colors[ImGuiCol_HeaderActive] = ImVec4(0.39f, 0.39f, 0.39f, 1.00f);

style.Colors[ImGuiCol_ColumnHovered] = ImVec4(0.70f, 0.02f, 0.60f, 0.22f);

style.Colors[ImGuiCol_CloseButton] = ImVec4(0.24f, 0.40f, 0.95f, 1.00f);

style.Colors[ImGuiCol_CloseButtonHovered] = ImVec4(0.24f, 0.40f, 0.95f, 0.59f);

}

 

void TextColor(bool active)

{

auto& style = ImGui::GetStyle();

 

if (active)

style.Colors[ImGuiCol_Text] = ImVec4(0.98f, 0.98f, 0.98f, 1.f);

else

style.Colors[ImGuiCol_Text] = ImVec4(0.39f, 0.39f, 0.39f, 1.f);

}

 

 

void buttonColor(bool bActive)

{

 

}

 

void lineColor(bool bActive)

{

ImGuiStyle& style = ImGui::GetStyle();

 

if (bActive)

{

style.Colors[ImGuiCol_Button] = ImColor(120, 120, 120);

style.Colors[ImGuiCol_ButtonHovered] = ImColor(120, 120, 120);

style.Colors[ImGuiCol_ButtonActive] = ImColor(120, 120, 120);

}

else

{

style.Colors[ImGuiCol_Button] = ImColor(10, 10, 10);

style.Colors[ImGuiCol_ButtonHovered] = ImColor(10, 10, 10);

style.Colors[ImGuiCol_ButtonActive] = ImColor(10, 10, 10);

}

}

 

void lineColor1(bool bActive)

{

ImGuiStyle& style = ImGui::GetStyle();

 

if (bActive)

{

style.Colors[ImGuiCol_Button] = ImColor(120, 120, 120);

style.Colors[ImGuiCol_ButtonHovered] = ImColor(120, 120, 120);

style.Colors[ImGuiCol_ButtonActive] = ImColor(120, 120, 120);

}

else

{

style.Colors[ImGuiCol_Button] = style.Colors[ImGuiCol_WindowBg];

style.Colors[ImGuiCol_ButtonHovered] = style.Colors[ImGuiCol_WindowBg];

style.Colors[ImGuiCol_ButtonActive] = style.Colors[ImGuiCol_WindowBg];

}

}

 

 

void Border(bool active)

{

auto& style = ImGui::GetStyle();

 

if (active)

style.Colors[ImGuiCol_Border] = ImColor(80, 80, 80, 255);

else

style.Colors[ImGuiCol_Border] = ImColor(0, 0, 0, 0);

}

 

void rage()

{}

void legit()

{}

void misc()

{

}

void visuals()

{

}

HRESULT __stdcall Hooks::D3D9_EndScene(IDirect3DDevice9* pDevice)

{

HRESULT result = d3d9VMT->GetOriginalMethod<EndSceneFn>(42)(pDevice);

 

if (!G::Init)

{

GUI_Init(pDevice);

}

else

{

if (g_pEngine->IsInGame() && g_pEngine->IsConnected())

ImGui::GetIO().MouseDrawCursor = G::Opened;

else

ImGui::GetIO().MouseDrawCursor = true;

ImGui_ImplDX9_NewFrame();

 

auto& style = ImGui::GetStyle();

 

if (G::Opened && style.Alpha < 1.f)

{

G::ShowMenu = true;

if (style.Alpha > 1.f)

style.Alpha = 1.f;

else if (style.Alpha != 1.f)

style.Alpha += 0.03f;

}

else if (style.Alpha > 0.f)

{

if (style.Alpha < 0.f)

style.Alpha = 0.f;

else if (style.Alpha != 0.f)

style.Alpha -= 0.03f;

if (style.Alpha == 0.f)

G::ShowMenu = false;

}

 

static int tab;

 

if (G::ShowMenu)

{

 

 

 

 

ImGui::PushFont(Default);

color();

ImGui::SetNextWindowSize(ImVec2(700, 500));

ImGui::SetNextWindowPosCenter(ImGuiSetCond_Always);

ImGui::Begin("getze.us", &G::ShowMenu, ImVec2(700, 500), 0.4f, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_ShowBorders | ImGuiWindowFlags_NoScrollbar);

{

 

 

 

 

 

style.ItemSpacing = ImVec2(0, 0);

//style.Colors[ImGuiCol_Button] = ImVec4(0.1f, 0.1f, 0.1f, 0.95f);

ImGui::PushFont(Tabs);

style.Colors[ImGuiCol_Text] = ImVec4(1.00f, 1.00f, 1.00f, 1.00f);

ImGui::Button("a", ImVec2(700, 90));

ImGui::PushFont(fTabs);

 

 

 

if (ImGui::Button("j", ImVec2(175, 70))) iTab = 0;

ImGui::SameLine();

style.Colors[ImGuiCol_Text] = iTab == 1 ? ImVec4(0.961f, 0.961f, 0.961f, 1.00f) : ImVec4(1.00f, 1.00f, 1.00f, 1.00f);

if (ImGui::Button("b", ImVec2(175, 70))) iTab = 1;

ImGui::SameLine();

style.Colors[ImGuiCol_Text] = iTab == 2 ? ImVec4(0.961f, 0.961f, 0.961f, 1.00f) : ImVec4(1.00f, 1.00f, 1.00f, 1.00f);

if (ImGui::Button("c", ImVec2(175, 70))) iTab = 2;

style.Colors[ImGuiCol_Text] = iTab == 3 ? ImVec4(0.961f, 0.961f, 0.961f, 1.00f) : ImVec4(1.00f, 1.00f, 1.00f, 1.00f);

ImGui::SameLine();

if (ImGui::Button("d", ImVec2(175, 70))) iTab = 3;

 

ImGui::PushFont(zeustext);

 

switch (iTab)

{

case 0: //aimbot

legit();

break;

case 1: //rage

rage();

break;

case 2: //rage

visuals();

break;

case 3: //rage

misc();

break;

}

 

 

}

 

ImGui::End();

 

 

}

 

 

 

 

ImGui::Render();

}

return result;

}
Odnośnik do komentarza

Niezłe c+p tematu, takie leniwe, że nawet tagów [code.][/code.] nie wstawiłeś, poprawiłem raz, następnym razem nie poprawię. Nie wyrównuj też tekstu do lewej jeśli chodzi o kod, bo psujesz wcięcia i formatowanie, które kod czyni czytelnym.

Odnośnik do komentarza

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Gość
Dodaj odpowiedź do tematu...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę. Regulamin. Polityka prywatności