Uzman Üye
#pragma comment(lib,"opengl32.lib")
#pragma comment(lib,"detours.lib")
#include <process.h>
#include <Windows.h>
#include <gl/GL.h>
#include "detours.h"
#include "targetver.h"
bool wallhack = false;
bool chams = false;
bool kenarlıchams = false;
typedef void (WINAPI *glDrawElements_t) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
glDrawElements_t origglDrawElements;
// =============================================================================================== //
void WINAPI newglDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
{
//wallhack
if (GetAsyncKeyState(VK_F1) & 1) wallhack = !wallhack;
if (wallhack)
{
if (count >= 2500 && count <= 7000 && indices != 0 && count != 3939)//ultra ayarlar bunu tercih ederim
{
glDepthRange(0, 0.5);
origglDrawElements(mode, count, type, indices);
glDepthRange(0.5, 1);
}
}
//burasi chams Yeşil Normal
if (GetAsyncKeyState(VK_F2) & 1) chams = !chams;
if (chams)
{
if (count >= 2500 && count <= 7000 && indices != 0 && count != 3939)//ultra ayalar
{
glPushAttrib(GL_ALL_ATTRIB_BITS);
glPushMatrix();
glDepthRange(1, 0.5);
glColorMask(0, 1, 0, 0);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE);
origglDrawElements(mode, count, type, indices);
glDepthRange(0.5, 1);
glColorMask(1, 1, 1, 1);
glDisable(GL_BLEND);
glPopMatrix();
glPopAttrib();
}
}
//burası kenarlar siyah chams yeşilli
if (GetAsyncKeyState(VK_F3) & 1) kenarlıchams = !kenarlıchams;
if (kenarlıchams)
{
if (count >= 2500 && count <= 7000 && indices != 0 && count != 3939)//ultra ayarlar
{
glPushAttrib(GL_ALL_ATTRIB_BITS);
glPushMatrix();
glDepthRange(1, 0.5);
glColorMask(0, 1, 0, 0);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE);
origglDrawElements(mode, count, type, indices);
glDepthRange(0.5, 1);
glColorMask(1, 1, 1, 1);
glDisable(GL_BLEND);
glPopMatrix();
glPopAttrib();
}
// bölümün taslağını çıkar
if (count >= 2500 && count <= 7000 && indices != 0 && count != 3939)//ultra ayarlar
{
glPushAttrib(GL_ALL_ATTRIB_BITS);
glPushMatrix();
glEnable(GL_BLEND);
glBlendFunc(GL_DST_COLOR, GL_ZERO);
glEnable(GL_LINE_SMOOTH);
glLineWidth(2);
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
origglDrawElements(mode, count, type, indices);
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
glBlendFunc(GL_SRC_ALPHA, GL_ONE);
glDisable(GL_BLEND);
glPopMatrix();
glPopAttrib();
}
}
return origglDrawElements (mode, count, type, indices);
}
// =============================================================================================== //
bool yarrakye = false;
void HookFunction()
{
HMODULE ROSAMK = GetModuleHandle("opengl32.dll");
if (!yarrakye)
{
yarrakye = true;
if (ROSAMK)
{
origglDrawElements = (glDrawElements_t)(DWORD)GetProcAddress(ROSAMK, "glDrawElements");
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
DetourAttach(&(PVOID &)origglDrawElements, newglDrawElements);
DetourTransactionCommit();
}
}
}
//BURADI DLLMAİN
BOOL WINAPI DllMain(HMODULE hModule,
DWORD dwReason,
LPVOID lpReserved)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
HookFunction();
MessageBox(0, "[CengizHackers] Hile Aktif Edildi", "By Coder", MB_OK);
case DLL_PROCESS_DETACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
break;
}
return true;
}
resimi düzgün at göstermiyorSorun cıktı krdş bu nedir yardımcı olun
neresi calışmıyor linkin ya bal gibide calisiyorlink çalışmıyor yeni link yükle
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?