ZENIX HACK D3D
+6
anjnkgila
rizkyhp
Agoeng_Jr
abenkCB
radzone
ridhotherock
10 posters
:: C++
Halaman 1 dari 1
ZENIX HACK D3D
Tutorial Membuat D3D MENU HACK
Tools yang dibutuhkan :
Okey setelah dapet Alat perang..
Langkah Pertama :
Spoiler Functions.h
Buat Header lagi beri Nama SystemIncludes.h dan Isikan code berikut :
SystemIncludes.h
Klik pada Source Files kemudian Add New Item pilih C++ File (.cpp) Beri Nama D3dbase.cpp Isikan code berikut :
Spoiler D3dbase.cpp
Pada Fungtions.h void *DetourFunction
Spoiler Fungtions.h
Bisa kalian ganti dengan :
zenix D3D App :
[You must be registered and logged in to see this link.]
Download :
[You must be registered and logged in to see this link.] (849.25K)
Number of downloads: 22
Screenshot Hasil :
[You must be registered and logged in to see this link.]
Download Link :
[You must be registered and logged in to see this link.] (26.52K)
Number of downloads: 551
Credit : Alkatraz mpgh, zenix@N3
Ini Untuk Menu background pada game PointBlank.
XD
[You must be registered and logged in to see this link.]
Untuk Sample .dllnya..
Download :
[You must be registered and logged in to see this link.] (61.05K)
Number of downloads: 625
Credit : zenix@N3
zenix@N3
Tools yang dibutuhkan :
- [You must be registered and logged in to see this link.]
- Microsoft DirectX 9.0 SDK (Summer 2004)
Okey setelah dapet Alat perang..
Langkah Pertama :
- Jalankan Visual C++ 2010 Express Edition, Setelah itu buat new Project.
- Pilih Visual C++, Empty Project dan namakan dengan zenix D3Dbase.
Screenshot :
[You must be registered and logged in to see this link.] - Ok Project telah dibuat, Setelah itu buat Header setelah itu Klik pada Project dan pilih Add New Item.
Pilih Header File dan Namai dengan zenixMenuClass.h dan isikan code berikut :
Spoiler zenixMenuClass.h
- Code:
//==================================================================
// This file is part of zenixbase d3d v1
// (c) copyright zenix 2010
// special thanks to:
// Alkatraz
// //mcz yang selalu dukung gw
// nyit-nyit.net
//==================================================================
#include "Functions.h"
typedef struct{
int index;
char * title;
int *hack;
int hackmaxval;
int hacktype;
DWORD HCOLOR;
}ITEM;
class zenixMenu {
public:
LPDIRECT3DDEVICE9 pDevice;
LPD3DXFONT pFont;
int hackcount;
int selector;
int x,y,w,h;
DWORD COLOR;
ITEM HACKITEM[99];
char hackrval[256];
void CreateItem(int index, char * title, int *hack,int hackmaxval=1,int hacktype=0);
void BuildMenu(char * menuname, int x, int y, int h, int w, DWORD TITLECOL, DWORD BACKCOLOR, DWORD BORDERCOLOR, LPDIRECT3DDEVICE9 pDevice);
void RenderMenu();
};
typedef HRESULT ( WINAPI* oReset )( LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters );
typedef HRESULT (WINAPI* oEndScene)(LPDIRECT3DDEVICE9 pDevice);
//Colors A,R,G,B Gan Silahkan dipakai untuk membuat Chams
#define RED D3DCOLOR_ARGB(255, 255, 0, 0)
#define GREEN D3DCOLOR_ARGB(255, 0, 255, 0)
#define BLUE D3DCOLOR_ARGB(255, 0, 0, 255)
#define WHITE D3DCOLOR_ARGB(255, 255, 255, 255)
#define BLACK D3DCOLOR_ARGB(255, 0, 0, 0)
#define YELLOW D3DCOLOR_ARGB(255, 255, 255, 0)
#define TEAL D3DCOLOR_ARGB(255, 0, 255, 255)
#define PINK D3DCOLOR_ARGB(255, 255, 240, 0)
#define ORANGE D3DCOLOR_ARGB(255, 255, 132, 0)
#define LIME D3DCOLOR_ARGB(255, 198, 255, 0)
#define SKYBLUE D3DCOLOR_ARGB(255, 0, 180, 255)
#define MAROON D3DCOLOR_ARGB(255, 142, 30, 0)
#define LGRAY D3DCOLOR_ARGB(255, 174, 174, 174)
#define DGRAY D3DCOLOR_ARGB(255, 71, 65, 64)
#define BROWN D3DCOLOR_ARGB(255, 77, 46, 38)
#define SHIT D3DCOLOR_ARGB(255, 74, 38, 38)
Spoiler Functions.h
- Code:
//==================================================================
// This file is part of zenixbase d3d v1
// (c) copyright zenix 2010
// special thanks to:
// Alkatraz
// //mcz yang selalu dukung gw
// nyit-nyit.net
//==================================================================
#include "SystemIncludes.h"
void PrintText(char pString[], int x, int y, D3DCOLOR col, ID3DXFont *font)
{
RECT FontRect = { x, y, x+500, y+30 };
font->DrawText( NULL, pString, -1, &FontRect, DT_LEFT | DT_WORDBREAK, col);
}
void FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice )
{
if( w < 0 )w = 1;
if( h < 0 )h = 1;
if( x < 0 )x = 1;
if( y < 0 )y = 1;
D3DRECT rec = { x, y, x + w, y + h };
pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 );
}
void DrawBorder( int x, int y, int w, int h, int px, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )
{
FillRGB( x, (y + h - px), w, px, BorderColor, pDevice );
FillRGB( x, y, px, h, BorderColor, pDevice );
FillRGB( x, y, w, px, BorderColor, pDevice );
FillRGB( (x + w - px), y, px, h, BorderColor, pDevice );
}
void DrawBox( int x, int y, int w, int h, D3DCOLOR BoxColor, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )
{
FillRGB( x, y, w, h, BoxColor, pDevice );
DrawBorder( x, y, w, h, 1, BorderColor, pDevice );
}
bool isMouseinRegion(int x1, int y1, int x2, int y2)
{
POINT cPos;
GetCursorPos(&cPos);
if(cPos.x > x1 && cPos.x < x2 && cPos.y > y1 && cPos.y < y2){
return true;
} else {
return false;
}
}
bool bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask)
{
for(;*szMask;++szMask,++pData,++bMask)
if(*szMask=='x' && *pData!=*bMask)
return 0;
return (*szMask) == NULL;
}
DWORD FindPattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask)
{
for(DWORD i=0; i<dwLen; i++)
if (bCompare((BYTE*)(dwAddress+i),bMask,szMask))
return (DWORD)(dwAddress+i);
return 0;
}
void *DetourFunction (BYTE *src, const BYTE *dst, const int len)
{
BYTE *jmp;
DWORD dwback;
DWORD jumpto, newjump;
VirtualProtect(src,len,PAGE_READWRITE,&dwback);
if(src[0] == 0xE9)
{
jmp = (BYTE*)malloc(10);
jumpto = (*(DWORD*)(src+1))+((DWORD)src)+5;
newjump = (jumpto-(DWORD)(jmp+5));
jmp[0] = 0xE9;
*(DWORD*)(jmp+1) = newjump;
jmp += 5;
jmp[0] = 0xE9;
*(DWORD*)(jmp+1) = (DWORD)(src-jmp);
}
else
{
jmp = (BYTE*)malloc(5+len);
memcpy(jmp,src,len);
jmp += len;
jmp[0] = 0xE9;
*(DWORD*)(jmp+1) = (DWORD)(src+len-jmp)-5;
}
src[0] = 0xE9;
*(DWORD*)(src+1) = (DWORD)(dst - src) - 5;
for(int i = 5; i < len; i++)
src[i] = 0x90;
VirtualProtect(src,len,dwback,&dwback);
return (jmp-len);
}
Buat Header lagi beri Nama SystemIncludes.h dan Isikan code berikut :
SystemIncludes.h
- Code:
//==================================================================
// This file is part of zenixbase d3d v1
// (c) copyright zenix 2010
// special thanks to:
// Alkatraz
// //mcz yang selalu dukung gw
// nyit-nyit.net
//==================================================================
#include <Windows.h>
#include <stdio.h>
#include <d3d9.h>
#include <d3dx9.h>
#pragma comment(lib,"d3dx9.lib")
Klik pada Source Files kemudian Add New Item pilih C++ File (.cpp) Beri Nama D3dbase.cpp Isikan code berikut :
Spoiler D3dbase.cpp
- Code:
//==================================================================
// This file is part of zenixbase d3d v1
// (c) copyright zenix 2010
// special thanks to:
// Alkatraz
// //mcz yang selalu dukung gw
// nyit-nyit.net
//==================================================================
#include "zenixMenuClass.h"
oReset pReset;
oEndScene pEndScene;
zenixMenu dMenu;
LPDIRECT3DDEVICE9 g_pDevice = 0;
//Mengatur Offset Font Menu Hack
int xFontOffSet = 15;
int hackopt1;
int MenuHeight = 10;
int show=1;
int b = 0;
//==================================================================
//Menu HACK
int hack1 = 0;
int hack2 = 0;
int hack3 = 0;
int hack4 = 0;
int hack5 = 0;
//==================================================================
void zenixMenu::CreateItem(int index, char * title, int *hack, int hackmaxval,int hacktype)
{
hackcount++;
HACKITEM[hackcount].index = index;
HACKITEM[hackcount].hack = hack;
HACKITEM[hackcount].hackmaxval = hackmaxval;
HACKITEM[hackcount].hacktype = hacktype;
// Mengatur tinggi rendahnya Menu Hack
PrintText(title, xFontOffSet, index*15,HACKITEM[hackcount].HCOLOR,pFont);
}
void zenixMenu::BuildMenu(char * menuname, int x, int y, int h, int w, DWORD TITLECOL, DWORD BACKCOLOR, DWORD BORDERCOLOR, LPDIRECT3DDEVICE9 pDevice)
{
if(GetAsyncKeyState(VK_INSERT)&1)show=(!show); //Memunculkan Menu HACK (INSERT)
if(!show) {
DrawBox(0,0, w, 20, BACKCOLOR, BORDERCOLOR, pDevice);
PrintText(menuname, 5, 2, TITLECOL, pFont);
return;
}
DrawBox(x,y, w, h, BACKCOLOR, BORDERCOLOR, pDevice); // Sesuaikan dengan Base Menu HACK
PrintText(menuname, x+10, y+2, TITLECOL, pFont);
CreateItem(1,"Ammo", &hack1);
CreateItem(2,"Recoil", &hack2);
CreateItem(3,"Wallhack", &hack3);
CreateItem(4,"Chams", &hack4);
CreateItem(5,"Apa aja deh", &hack5);
RenderMenu();
}
void zenixMenu::RenderMenu() //Hotkey menu
{
if(GetAsyncKeyState(VK_DOWN)&1)
selector++;
if(GetAsyncKeyState(VK_UP)&1)
if(selector > 1)
selector--;
if (GetAsyncKeyState(VK_RIGHT)<0){
for(int i=0;i < (hackcount+1);i++){
if(selector == HACKITEM[i].index){
if(*HACKITEM[i].hack < HACKITEM[i].hackmaxval)
*HACKITEM[i].hack += 1;
}
}
}
if (GetAsyncKeyState(VK_LEFT)<0){
for(int i=0;i < (hackcount+1);i++){
if(selector == HACKITEM[i].index){
*HACKITEM[i].hack = 0;
Sleep(200);
}
}
}
for(int i=0;i < (hackcount+1);i++){
if(selector == HACKITEM[i].index)
HACKITEM[i].HCOLOR = GREEN;
else
HACKITEM[i].HCOLOR = RED;
}
for(int i=1; i<(hackcount+1); i++){
if(HACKITEM[i].hacktype == 0){
if(*HACKITEM[i].hack == 1)
// Mengatur tinggi rendahnya Menu Hotkey
PrintText("On", xFontOffSet+100, HACKITEM[i].index*15,WHITE,pFont);
else
PrintText("Off", xFontOffSet+100, HACKITEM[i].index*15,RED,pFont);
}
}
if(selector < 1)
selector = 1;
if(selector > hackcount)
selector = 1;
hackcount = 0;
}
void TestThread() //Memunculkan texk jika ON/OFF
{
if( hack1 == 1)
PrintText("Jika Ammo [ON] text akan berubah warna", 30, 200, GREEN, dMenu.pFont);
else
PrintText("Jika Ammo [ON] text akan berubah warna", 30, 200, RED, dMenu.pFont);
} //Sesuaikan saja
void ReFont(LPDIRECT3DDEVICE9 pDevice) //Untuk penggantian font
{
if (g_pDevice != pDevice)
{
g_pDevice = pDevice;
try
{
if (dMenu.pFont != 0)
dMenu.pFont->Release();
} catch (...) {}
dMenu.pFont = 0;
D3DXCreateFontA(pDevice, 14, 0, FW_BOLD, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &dMenu.pFont );
}
}
HRESULT WINAPI Reset(IDirect3DDevice9* pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters )
{
dMenu.pFont->OnLostDevice();
HRESULT hRet = pReset(pDevice, pPresentationParameters);
dMenu.pFont->OnResetDevice();
return hRet;
}
// Menu TITLE
HRESULT WINAPI EndScene(LPDIRECT3DDEVICE9 pDevice)
{
ReFont(pDevice);
dMenu.BuildMenu("Nyit-nyit.net 2010",0,0,190,200,RED,BLACK,GREEN,pDevice);
TestThread();
return pEndScene(pDevice);
}
int D3Dinit(void)
{
DWORD hD3D, adr, *vtbl;
hD3D=0;
do {
hD3D = (DWORD)GetModuleHandle("d3d9.dll");
Sleep(10);
} while(!hD3D);
adr = FindPattern(hD3D, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "xx????xx????xx");
if (adr) {
memcpy(&vtbl,(void *)(adr+2),4);
pReset = (oReset) DetourFunction((PBYTE)vtbl[16] , (PBYTE)Reset ,5);
pEndScene = (oEndScene) DetourFunction((PBYTE)vtbl[42], (PBYTE)EndScene,5);
}
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH ) {
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)D3Dinit, NULL, NULL, NULL);
}
if( dwReason == DLL_PROCESS_DETACH) {
dMenu.pFont->Release();
}
return TRUE;
}
Screenshot :
[You must be registered and logged in to see this link.]- Kemudian Save All Project. Setelah project telah di Save lalu Compile/Start Debugging.
- Jangan lupa rubah Properties Project rubah Application (.exe) menjadi Dinamic Library (.dll)
Screenshot :
[You must be registered and logged in to see this link.]
Pada Fungtions.h void *DetourFunction
Spoiler Fungtions.h
- Code:
void *DetourFunction (BYTE *src, const BYTE *dst, const int len)
{
BYTE *jmp;
DWORD dwback;
DWORD jumpto, newjump;
VirtualProtect(src,len,PAGE_READWRITE,&dwback);
if(src[0] == 0xE9)
{
jmp = (BYTE*)malloc(10);
jumpto = (*(DWORD*)(src+1))+((DWORD)src)+5;
newjump = (jumpto-(DWORD)(jmp+5));
jmp[0] = 0xE9;
*(DWORD*)(jmp+1) = newjump;
jmp += 5;
jmp[0] = 0xE9;
*(DWORD*)(jmp+1) = (DWORD)(src-jmp);
}
else
{
jmp = (BYTE*)malloc(5+len);
memcpy(jmp,src,len);
jmp += len;
jmp[0] = 0xE9;
*(DWORD*)(jmp+1) = (DWORD)(src+len-jmp)-5;
}
src[0] = 0xE9;
*(DWORD*)(src+1) = (DWORD)(dst - src) - 5;
for(int i = 5; i < len; i++)
src[i] = 0x90;
VirtualProtect(src,len,dwback,&dwback);
return (jmp-len);
}
Bisa kalian ganti dengan :
- Code:
void *DetourFunction (BYTE *src, const BYTE *dst, const int len)
{
BYTE *jmp = (BYTE*)malloc(len+5);
DWORD dwBack;
VirtualProtect(src, len, PAGE_EXECUTE_READWRITE, &dwBack);
memcpy(jmp, src, len);
jmp += len;
jmp[0] = 0xE9;
*(DWORD*)(jmp+1) = (DWORD)(src+len - jmp) - 5;
src[0] = 0xE9;
*(DWORD*)(src+1) = (DWORD)(dst - src) - 5;
for (int i=5; i<len; i++) src[i]=0x90;
VirtualProtect(src, len, dwBack, &dwBack);
return (jmp-len);
}
zenix D3D App :
[You must be registered and logged in to see this link.]
Download :
[You must be registered and logged in to see this link.] (849.25K)
Number of downloads: 22
Screenshot Hasil :
[You must be registered and logged in to see this link.]
Download Link :
[You must be registered and logged in to see this link.] (26.52K)
Number of downloads: 551
Credit : Alkatraz mpgh, zenix@N3
Ini Untuk Menu background pada game PointBlank.
XD
[You must be registered and logged in to see this link.]
Untuk Sample .dllnya..
Download :
[You must be registered and logged in to see this link.] (61.05K)
Number of downloads: 625
Credit : zenix@N3
zenix@N3
Re: ZENIX HACK D3D
@ agoeng_jr @all
nih mau tanya nih kurang apanya kok mesti eror ya
------ Build started: Project: walhack, Configuration: Release Win32 ------
Compiling...
D3dbase.cpp
.\D3dbase.cpp(184) : error C2082: redefinition of formal parameter 'pDevice'
Build log was saved at "file://d:\aplikasi dan source kode program\walhackwin7\walhackwin7\Release\BuildLog.htm"
walhack - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
pencerahan gan
nih mau tanya nih kurang apanya kok mesti eror ya
------ Build started: Project: walhack, Configuration: Release Win32 ------
Compiling...
D3dbase.cpp
.\D3dbase.cpp(184) : error C2082: redefinition of formal parameter 'pDevice'
Build log was saved at "file://d:\aplikasi dan source kode program\walhackwin7\walhackwin7\Release\BuildLog.htm"
walhack - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
pencerahan gan
radzone- C4~ Member
- Jumlah posting : 9
Reputation : 1000
Join date : 08.05.11
Re: ZENIX HACK D3D
Spoiler Buka gan
+++ nya gan jgn lupa [You must be registered and logged in to see this image.]
Credit uc
sesuaikan aja ama directx sdk nya agan
ama jgn quote post 1 dong
panjang bner
pusing gw liatnya
tulisannya juga [You must be registered and logged in to see this image.]
wkwkwk
Spoiler Include Dxd9
VS2008
Open up VC++ and go to Tools -> Options, this dialog should pop up:
[You must be registered and logged in to see this image.]
In the image you can see that I've highlighted some things you want to
unfold. "Executable files" is also highlighted because you need to
change it. First, change it to "Include files". Once you've done that
you should add a new line and add the "\Microsoft DirectX SDK (August
2009)\Include" directory like so:
[You must be registered and logged in to see this image.]
Notice that "Include files" is selected in the top right corner and that
because I have a x64 OS my program files has (x86) behind it. If you do
not have x64 OS then the DirectX SDK is located in the regular Program
Files folder.
There are some other lines visible but those are not important for
DirectX.
Now that we have the "Include" directories set up, we need to add the
"Library" directories.
Select the "Library files" from the little drop-down list and again add a
new line like so:
[You must be registered and logged in to see this image.]
Notice that you need to select either the x86 directory in "Microsoft
DirectX SDK (August 2009)\Lib" or the x64. Select the x86 folder no
matter what your OS is. ( x64 is used for building 64-bit applications
which you will probably not be doing )
Now there is only very important step that yet remains: Click the OK
button, don't just close the window as your settings will not be saved
if you do.
For 2008; Visual C++ will now always find your DirectX SDK ( headers and
libraries ). You should be able to compile DirectX dependant code just
fine now.
+++ nya gan jgn lupa [You must be registered and logged in to see this image.]
Credit uc
sesuaikan aja ama directx sdk nya agan
ama jgn quote post 1 dong
panjang bner
pusing gw liatnya
tulisannya juga [You must be registered and logged in to see this image.]
wkwkwk
Spoiler Include Dxd9
VS2008
Open up VC++ and go to Tools -> Options, this dialog should pop up:
[You must be registered and logged in to see this image.]
In the image you can see that I've highlighted some things you want to
unfold. "Executable files" is also highlighted because you need to
change it. First, change it to "Include files". Once you've done that
you should add a new line and add the "\Microsoft DirectX SDK (August
2009)\Include" directory like so:
[You must be registered and logged in to see this image.]
Notice that "Include files" is selected in the top right corner and that
because I have a x64 OS my program files has (x86) behind it. If you do
not have x64 OS then the DirectX SDK is located in the regular Program
Files folder.
There are some other lines visible but those are not important for
DirectX.
Now that we have the "Include" directories set up, we need to add the
"Library" directories.
Select the "Library files" from the little drop-down list and again add a
new line like so:
[You must be registered and logged in to see this image.]
Notice that you need to select either the x86 directory in "Microsoft
DirectX SDK (August 2009)\Lib" or the x64. Select the x86 folder no
matter what your OS is. ( x64 is used for building 64-bit applications
which you will probably not be doing )
Now there is only very important step that yet remains: Click the OK
button, don't just close the window as your settings will not be saved
if you do.
For 2008; Visual C++ will now always find your DirectX SDK ( headers and
libraries ). You should be able to compile DirectX dependant code just
fine now.
Re: ZENIX HACK D3D
kalo error nya sperti ini
1>------ Build started: Project: zenix D3Dbase, Configuration: Debug
Win32 ------
1> D3dbase.cpp
1>c:\documents and settings\x25net\my documents\visual studio
2010\projects\zenix d3dbase\zenix d3dbase\systemincludes.h(13): fatal
error C1083: Cannot open include file: 'd3dx9.h': No such file or
directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
atau
1>------ Build started: Project: zenix D3Dbase, Configuration:
Release Win32 ------
1> D3dbase.cpp
1>c:\documents and settings\x25net\my documents\visual studio
2010\projects\zenix d3dbase\zenix d3dbase\SystemIncludes.h(13): fatal
error C1083: Cannot open include file: 'd3dx9.h': No such file or
directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
^
itu DirectX 9.0 SDK nya belum kamu download
buat link nya silahkan google
klo buat masukin DirectX 9.0 SDK ke project
di atas ada tuh [You must be registered and logged in to see this image.]
1>------ Build started: Project: zenix D3Dbase, Configuration: Debug
Win32 ------
1> D3dbase.cpp
1>c:\documents and settings\x25net\my documents\visual studio
2010\projects\zenix d3dbase\zenix d3dbase\systemincludes.h(13): fatal
error C1083: Cannot open include file: 'd3dx9.h': No such file or
directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
atau
1>------ Build started: Project: zenix D3Dbase, Configuration:
Release Win32 ------
1> D3dbase.cpp
1>c:\documents and settings\x25net\my documents\visual studio
2010\projects\zenix d3dbase\zenix d3dbase\SystemIncludes.h(13): fatal
error C1083: Cannot open include file: 'd3dx9.h': No such file or
directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
^
itu DirectX 9.0 SDK nya belum kamu download
buat link nya silahkan google
klo buat masukin DirectX 9.0 SDK ke project
di atas ada tuh [You must be registered and logged in to see this image.]
Re: ZENIX HACK D3D
akhirnya ada juga yang membahas TS ini disini makasih Om Ridho
Boleh ane lanjutkah... hehe
Pertanyaan ane OM
simple oM ridho langkah awal ane
- "bi bagian mana ane bisa menempatkan SC wallha nya"
- bisa ane minta tolong diberikan gambarnya.
masalahnya dll wallha itu kalau di injeck dengan punya om HRD ada 2 yang terinjek dalam 1 dll
ane bingung harap di maklum OM ane bener-bener awam dalam langkah menaruh SC nya.
makasih untuk OM ridho kalau berkenan menjawab dan membantu ane.
salam dari ane aBenk.
Boleh ane lanjutkah... hehe
Pertanyaan ane OM
simple oM ridho langkah awal ane
- "bi bagian mana ane bisa menempatkan SC wallha nya"
- bisa ane minta tolong diberikan gambarnya.
masalahnya dll wallha itu kalau di injeck dengan punya om HRD ada 2 yang terinjek dalam 1 dll
ane bingung harap di maklum OM ane bener-bener awam dalam langkah menaruh SC nya.
makasih untuk OM ridho kalau berkenan menjawab dan membantu ane.
salam dari ane aBenk.
abenkCB- C4~ Member
- Jumlah posting : 11
Reputation : 1000
Join date : 07.05.11
Re: ZENIX HACK D3D
Pada void zenixMenu::BuildMenu bro bisa matikan code sbb :
Jangan lupa includekan DirectX 9.0 SDK (Summer 2004)nya bro.
- Code:
DrawBox(x,y, w, h, BACKCOLOR, BORDERCOLOR, pDevice);
Jangan lupa includekan DirectX 9.0 SDK (Summer 2004)nya bro.
Re: ZENIX HACK D3D
@ ts gimana nih
tolong di jawab
------ Build started: Project: walhack, Configuration: Release Win32 ------
Compiling...
D3dbase.cpp
.\D3dbase.cpp(184) : error C2082: redefinition of formal parameter 'pDevice'
Build log was saved at "file://d:\aplikasi dan source kode program\walhackwin7\walhackwin7\Release\BuildLog.htm"
walhack - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
tolong di jawab
------ Build started: Project: walhack, Configuration: Release Win32 ------
Compiling...
D3dbase.cpp
.\D3dbase.cpp(184) : error C2082: redefinition of formal parameter 'pDevice'
Build log was saved at "file://d:\aplikasi dan source kode program\walhackwin7\walhackwin7\Release\BuildLog.htm"
walhack - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
radzone- C4~ Member
- Jumlah posting : 9
Reputation : 1000
Join date : 08.05.11
Re: ZENIX HACK D3D
1>------ Build started: Project: zenix D3Dbase, Configuration: Debug Win32 ------
1> D3dbase.cpp
1>c:\documents and settings\x25net\my documents\visual studio
2010\projects\zenix d3dbase\zenix d3dbase\systemincludes.h(13): fatal
error C1083: Cannot open include file: 'd3dx9.h': No such file or
directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
atau
1>------ Build started: Project: zenix D3Dbase, Configuration: Release Win32 ------
1> D3dbase.cpp
1>c:\documents and settings\x25net\my documents\visual studio
2010\projects\zenix d3dbase\zenix d3dbase\SystemIncludes.h(13): fatal
error C1083: Cannot open include file: 'd3dx9.h': No such file or
directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
tu DirectX 9.0 SDK nya belum kamu download
buat link nya silahkan google
klo buat masukin DirectX 9.0 SDK ke project
di atas ada tuh [You must be registered and logged in to see this image.]
1> D3dbase.cpp
1>c:\documents and settings\x25net\my documents\visual studio
2010\projects\zenix d3dbase\zenix d3dbase\systemincludes.h(13): fatal
error C1083: Cannot open include file: 'd3dx9.h': No such file or
directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
atau
1>------ Build started: Project: zenix D3Dbase, Configuration: Release Win32 ------
1> D3dbase.cpp
1>c:\documents and settings\x25net\my documents\visual studio
2010\projects\zenix d3dbase\zenix d3dbase\SystemIncludes.h(13): fatal
error C1083: Cannot open include file: 'd3dx9.h': No such file or
directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
tu DirectX 9.0 SDK nya belum kamu download
buat link nya silahkan google
klo buat masukin DirectX 9.0 SDK ke project
di atas ada tuh [You must be registered and logged in to see this image.]
Re: ZENIX HACK D3D
ridhotherock wrote:Pada void zenixMenu::BuildMenu bro bisa matikan code sbb :
- Code:
DrawBox(x,y, w, h, BACKCOLOR, BORDERCOLOR, pDevice);
Jangan lupa includekan DirectX 9.0 SDK (Summer 2004)nya bro.
Direct udah ada and kalau test di D3Dtest SC M.zenix ke buid sukses, nah ane ada SC kaya gini Om ridho
Cek SC copz ane
#include
#include
#pragma comment(lib, "d3d9.lib")
#include
#pragma comment(lib, "d3dx9.lib")
float ScreenCenterX = 0.0f;
float ScreenCenterY = 0.0f;
bool Xhair;
bool Chams;
int texnum;
int m_Stride;
LPDIRECT3DTEXTURE9 Red,Yellow,Green,Blue,Purple,Pink,Orange,Black,White;
D3DCOLOR colRed = D3DCOLOR_XRGB(255, 0, 0);
D3DVIEWPORT9 g_ViewPort;
typedef
HRESULT (WINAPI* CreateDevice_Prototype) (LPDIRECT3D9, UINT,
D3DDEVTYPE, HWND, DWORD, D3DPRESENT_PARAMETERS*, LPDIRECT3DDEVICE9*);
typedef HRESULT (WINAPI* Reset_Prototype) (LPDIRECT3DDEVICE9, D3DPRESENT_PARAMETERS*);
typedef HRESULT (WINAPI* EndScene_Prototype) (LPDIRECT3DDEVICE9);
typedef HRESULT (WINAPI* DrawIndexedPrimitive_Prototype)(LPDIRECT3DDEVICE9, D3DPRIMITIVETYPE, INT, UINT, UINT, UINT, UINT);
CreateDevice_Prototype CreateDevice_Pointer = NULL;
Reset_Prototype Reset_Pointer = NULL;
EndScene_Prototype EndScene_Pointer = NULL;
DrawIndexedPrimitive_Prototype DrawIndexedPrimitive_Pointer = NULL;
HRESULT WINAPI Direct3DCreate9_VMTable (VOID);
HRESULT WINAPI CreateDevice_Detour (LPDIRECT3D9, UINT, D3DDEVTYPE, HWND, DWORD, D3DPRESENT_PARAMETERS*, LPDIRECT3DDEVICE9*);
HRESULT WINAPI Reset_Detour (LPDIRECT3DDEVICE9, D3DPRESENT_PARAMETERS*);
HRESULT WINAPI EndScene_Detour (LPDIRECT3DDEVICE9);
HRESULT WINAPI DrawIndexedPrimitive_Detour(LPDIRECT3DDEVICE9, D3DPRIMITIVETYPE, INT, UINT, UINT, UINT, UINT);
DWORD WINAPI VirtualMethodTableRepatchingLoopToCounterExtensionRepatching(LPVOID);
PDWORD Direct3D_VMTable = NULL;
BOOL WINAPI DllMain(HINSTANCE hinstModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hinstModule);
if(Direct3DCreate9_VMTable() == D3D_OK)
return TRUE;
}
return FALSE;
}
HRESULT WINAPI Direct3DCreate9_VMTable(VOID)
{
LPDIRECT3D9 Direct3D_Object = Direct3DCreate9(D3D_SDK_VERSION);
if(Direct3D_Object == NULL)
return D3DERR_INVALIDCALL;
Direct3D_VMTable = (PDWORD)*(PDWORD)Direct3D_Object;
Direct3D_Object->Release();
DWORD dwProtect;
if(VirtualProtect(&Direct3D_VMTable[16], sizeof(DWORD), PAGE_READWRITE, &dwProtect) != 0)
{
*(PDWORD)&CreateDevice_Pointer = Direct3D_VMTable[16];
*(PDWORD)&Direct3D_VMTable[16] = (DWORD)CreateDevice_Detour;
if(VirtualProtect(&Direct3D_VMTable[16], sizeof(DWORD), dwProtect, &dwProtect) == 0)
return D3DERR_INVALIDCALL;
}
else
return D3DERR_INVALIDCALL;
return D3D_OK;
}
HRESULT GenerateTexture(IDirect3DDevice9 *pD3Ddev, IDirect3DTexture9 **ppD3Dtex, DWORD colour32)
{
if( FAILED(pD3Ddev->CreateTexture(8, 8, 1, 0, D3DFMT_A4R4G4B4, D3DPOOL_MANAGED, ppD3Dtex, NULL)) )
return E_FAIL;
WORD colour16 = ((WORD)((colour32>>28)&0xF)<<12)
|(WORD)(((colour32>>20)&0xF)<|(WORD)(((colour32>>12)&0xF)<<4)
|(WORD)(((colour32>>4)&0xF)<<0);
D3DLOCKED_RECT d3dlr;
(*ppD3Dtex)->LockRect(0, &d3dlr, 0, 0);
WORD *pDst16 = (WORD*)d3dlr.pBits;
for(int xy=0; xy < 8*8; xy++)
*pDst16++ = colour16;
(*ppD3Dtex)->UnlockRect(0);
return S_OK;
}
HRESULT WINAPI CreateDevice_Detour(LPDIRECT3D9 Direct3D_Object, UINT Adapter, D3DDEVTYPE DeviceType, HWND FocusWindow,
DWORD BehaviorFlags, D3DPRESENT_PARAMETERS* PresentationParameters,
LPDIRECT3DDEVICE9* Returned_Device_Interface)
{
HRESULT Returned_Result = CreateDevice_Pointer(Direct3D_Object, Adapter, DeviceType, FocusWindow, BehaviorFlags,
PresentationParameters, Returned_Device_Interface);
DWORD dwProtect;
if(VirtualProtect(&Direct3D_VMTable[16], sizeof(DWORD), PAGE_READWRITE, &dwProtect) != 0)
{
*(PDWORD)&Direct3D_VMTable[16] = *(PDWORD)&CreateDevice_Pointer;
CreateDevice_Pointer = NULL;
if(VirtualProtect(&Direct3D_VMTable[16], sizeof(DWORD), dwProtect, &dwProtect) == 0)
return D3DERR_INVALIDCALL;
}
else
return D3DERR_INVALIDCALL;
if(Returned_Result == D3D_OK)
{
Direct3D_VMTable = (PDWORD)*(PDWORD)*Returned_Device_Interface;
*(PDWORD)&Reset_Pointer = (DWORD)Direct3D_VMTable[16];
*(PDWORD)&EndScene_Pointer = (DWORD)Direct3D_VMTable[42];
*(PDWORD)&DrawIndexedPrimitive_Pointer = (DWORD)Direct3D_VMTable[82];
if(CreateThread(NULL, 0, VirtualMethodTableRepatchingLoopToCounterExtensionRepatching, NULL, 0, NULL) == NULL)
return D3DERR_INVALIDCALL;
}
return Returned_Result;
}
HRESULT WINAPI Reset_Detour(LPDIRECT3DDEVICE9 Device_Interface, D3DPRESENT_PARAMETERS* PresentationParameters)
{
return Reset_Pointer(Device_Interface, PresentationParameters);
}
HRESULT WINAPI EndScene_Detour(LPDIRECT3DDEVICE9 Device_Interface)
{
Device_Interface->GetViewport(&g_ViewPort);
ScreenCenterX = (float)g_ViewPort.Width / 2;
ScreenCenterY = (float)g_ViewPort.Height / 2;
GenerateTexture(Device_Interface, &Red, D3DCOLOR_ARGB (255,255,0 ,0 ));
GenerateTexture(Device_Interface, &Yellow, D3DCOLOR_ARGB (255,255,255,0 ));
GenerateTexture(Device_Interface, &Green, D3DCOLOR_ARGB (255,0 ,255,0 ));
GenerateTexture(Device_Interface, &Blue, D3DCOLOR_ARGB (255,0 ,0 ,255));
if (Xhair)
{
D3DRECT rec2 = {ScreenCenterX-8, ScreenCenterY, ScreenCenterX+8, ScreenCenterY+1};
D3DRECT rec3 = {ScreenCenterX, ScreenCenterY-8, ScreenCenterX+1, ScreenCenterY+8};
Device_Interface->Clear(1, &rec2, D3DCLEAR_TARGET,colRed, 0, 0);
Device_Interface->Clear(1, &rec3, D3DCLEAR_TARGET,colRed, 0, 0);
}
if(GetAsyncKeyState(VK_F1)&1){Xhair=!Xhair;}
if(GetAsyncKeyState(VK_F2)&1){Chams=!Chams;}
return EndScene_Pointer(Device_Interface);
}
HRESULT WINAPI DrawIndexedPrimitive_Detour(LPDIRECT3DDEVICE9 Device_Interface, D3DPRIMITIVETYPE Type, INT BaseIndex,
UINT MinIndex, UINT NumVertices, UINT StartIndex, UINT PrimitiveCount)
{
LPDIRECT3DVERTEXBUFFER9 Stream_Data;
UINT Offset = 0;
UINT Stride = 0;
if(Device_Interface->GetStreamSource(0, &Stream_Data, &Offset, &Stride) == D3D_OK)
Stream_Data->Release();
texnum=(NumVertices*100000)+PrimitiveCount;
if (Chams)
{
if(m_Stride==64 &&
texnum==38100636||texnum==8600144||//Head
texnum==160502262||texnum==173701916||texnum==233202809||texnum==155102162||texnum==243202958||texnum==113501506||texnum==102201072)//Body
{
Device_Interface->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
Device_Interface->SetRenderState(D3DRS_ZFUNC,D3DCMP_NEVER);
Device_Interface->SetTexture(0,Pink);
DrawIndexedPrimitive_Pointer(Device_Interface, Type, BaseIndex, MinIndex, NumVertices, StartIndex, PrimitiveCount);
Device_Interface->SetRenderState(D3DRS_ZENABLE, D3DZB_TRUE);
Device_Interface->SetRenderState(D3DRS_ZFUNC,D3DCMP_LESSEQUAL);
Device_Interface->SetTexture(0,Orange);
}
}
return DrawIndexedPrimitive_Pointer(Device_Interface, Type, BaseIndex, MinIndex, NumVertices, StartIndex, PrimitiveCount);
}
DWORD WINAPI VirtualMethodTableRepatchingLoopToCounterExtensionRepatching(LPVOID Param)
{
UNREFERENCED_PARAMETER(Param);
while(1)
{
Sleep(100);
*(PDWORD)&Direct3D_VMTable[42] = (DWORD)EndScene_Detour;
*(PDWORD)&Direct3D_VMTable[82] = (DWORD)DrawIndexedPrimitive_Detour;
*(PDWORD)&Direct3D_VMTable[16] = (DWORD)Reset_Detour;
}
return 1;
}
apa SC ini menjadi menu juga dalam 1 C++ dengan D3D
mohon bantuan nya dengan sangat OM
dan maaf ane bener2 awam
abenkCB- C4~ Member
- Jumlah posting : 11
Reputation : 1000
Join date : 07.05.11
Re: ZENIX HACK D3D
abenkCB wrote:ridhotherock wrote:Pada void zenixMenu::BuildMenu bro bisa matikan code sbb :
- Code:
DrawBox(x,y, w, h, BACKCOLOR, BORDERCOLOR, pDevice);
Jangan lupa includekan DirectX 9.0 SDK (Summer 2004)nya bro.
Direct udah ada and kalau test di D3Dtest SC M.zenix ke buid sukses, nah ane ada SC kaya gini Om ridho
Cek SC copz ane
#include
#include
#pragma comment(lib, "d3d9.lib")
#include
#pragma comment(lib, "d3dx9.lib")
float ScreenCenterX = 0.0f;
float ScreenCenterY = 0.0f;
bool Xhair;
bool Chams;
int texnum;
int m_Stride;
LPDIRECT3DTEXTURE9 Red,Yellow,Green,Blue,Purple,Pink,Orange,Black,White;
D3DCOLOR colRed = D3DCOLOR_XRGB(255, 0, 0);
D3DVIEWPORT9 g_ViewPort;
typedef
HRESULT (WINAPI* CreateDevice_Prototype) (LPDIRECT3D9, UINT,
D3DDEVTYPE, HWND, DWORD, D3DPRESENT_PARAMETERS*, LPDIRECT3DDEVICE9*);
typedef HRESULT (WINAPI* Reset_Prototype) (LPDIRECT3DDEVICE9, D3DPRESENT_PARAMETERS*);
typedef HRESULT (WINAPI* EndScene_Prototype) (LPDIRECT3DDEVICE9);
typedef HRESULT (WINAPI* DrawIndexedPrimitive_Prototype)(LPDIRECT3DDEVICE9, D3DPRIMITIVETYPE, INT, UINT, UINT, UINT, UINT);
CreateDevice_Prototype CreateDevice_Pointer = NULL;
Reset_Prototype Reset_Pointer = NULL;
EndScene_Prototype EndScene_Pointer = NULL;
DrawIndexedPrimitive_Prototype DrawIndexedPrimitive_Pointer = NULL;
HRESULT WINAPI Direct3DCreate9_VMTable (VOID);
HRESULT WINAPI CreateDevice_Detour (LPDIRECT3D9, UINT, D3DDEVTYPE, HWND, DWORD, D3DPRESENT_PARAMETERS*, LPDIRECT3DDEVICE9*);
HRESULT WINAPI Reset_Detour (LPDIRECT3DDEVICE9, D3DPRESENT_PARAMETERS*);
HRESULT WINAPI EndScene_Detour (LPDIRECT3DDEVICE9);
HRESULT WINAPI DrawIndexedPrimitive_Detour(LPDIRECT3DDEVICE9, D3DPRIMITIVETYPE, INT, UINT, UINT, UINT, UINT);
DWORD WINAPI VirtualMethodTableRepatchingLoopToCounterExtensionRepatching(LPVOID);
PDWORD Direct3D_VMTable = NULL;
BOOL WINAPI DllMain(HINSTANCE hinstModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hinstModule);
if(Direct3DCreate9_VMTable() == D3D_OK)
return TRUE;
}
return FALSE;
}
HRESULT WINAPI Direct3DCreate9_VMTable(VOID)
{
LPDIRECT3D9 Direct3D_Object = Direct3DCreate9(D3D_SDK_VERSION);
if(Direct3D_Object == NULL)
return D3DERR_INVALIDCALL;
Direct3D_VMTable = (PDWORD)*(PDWORD)Direct3D_Object;
Direct3D_Object->Release();
DWORD dwProtect;
if(VirtualProtect(&Direct3D_VMTable[16], sizeof(DWORD), PAGE_READWRITE, &dwProtect) != 0)
{
*(PDWORD)&CreateDevice_Pointer = Direct3D_VMTable[16];
*(PDWORD)&Direct3D_VMTable[16] = (DWORD)CreateDevice_Detour;
if(VirtualProtect(&Direct3D_VMTable[16], sizeof(DWORD), dwProtect, &dwProtect) == 0)
return D3DERR_INVALIDCALL;
}
else
return D3DERR_INVALIDCALL;
return D3D_OK;
}
HRESULT GenerateTexture(IDirect3DDevice9 *pD3Ddev, IDirect3DTexture9 **ppD3Dtex, DWORD colour32)
{
if( FAILED(pD3Ddev->CreateTexture(8, 8, 1, 0, D3DFMT_A4R4G4B4, D3DPOOL_MANAGED, ppD3Dtex, NULL)) )
return E_FAIL;
WORD colour16 = ((WORD)((colour32>>28)&0xF)<<12)
|(WORD)(((colour32>>20)&0xF)<
|(WORD)(((colour32>>12)&0xF)<<4)
|(WORD)(((colour32>>4)&0xF)<<0);
D3DLOCKED_RECT d3dlr;
(*ppD3Dtex)->LockRect(0, &d3dlr, 0, 0);
WORD *pDst16 = (WORD*)d3dlr.pBits;
for(int xy=0; xy < 8*8; xy++)
*pDst16++ = colour16;
(*ppD3Dtex)->UnlockRect(0);
return S_OK;
}
HRESULT WINAPI CreateDevice_Detour(LPDIRECT3D9 Direct3D_Object, UINT Adapter, D3DDEVTYPE DeviceType, HWND FocusWindow,
DWORD BehaviorFlags, D3DPRESENT_PARAMETERS* PresentationParameters,
LPDIRECT3DDEVICE9* Returned_Device_Interface)
{
HRESULT Returned_Result = CreateDevice_Pointer(Direct3D_Object, Adapter, DeviceType, FocusWindow, BehaviorFlags,
PresentationParameters, Returned_Device_Interface);
DWORD dwProtect;
if(VirtualProtect(&Direct3D_VMTable[16], sizeof(DWORD), PAGE_READWRITE, &dwProtect) != 0)
{
*(PDWORD)&Direct3D_VMTable[16] = *(PDWORD)&CreateDevice_Pointer;
CreateDevice_Pointer = NULL;
if(VirtualProtect(&Direct3D_VMTable[16], sizeof(DWORD), dwProtect, &dwProtect) == 0)
return D3DERR_INVALIDCALL;
}
else
return D3DERR_INVALIDCALL;
if(Returned_Result == D3D_OK)
{
Direct3D_VMTable = (PDWORD)*(PDWORD)*Returned_Device_Interface;
*(PDWORD)&Reset_Pointer = (DWORD)Direct3D_VMTable[16];
*(PDWORD)&EndScene_Pointer = (DWORD)Direct3D_VMTable[42];
*(PDWORD)&DrawIndexedPrimitive_Pointer = (DWORD)Direct3D_VMTable[82];
if(CreateThread(NULL, 0, VirtualMethodTableRepatchingLoopToCounterExtensionRepatching, NULL, 0, NULL) == NULL)
return D3DERR_INVALIDCALL;
}
return Returned_Result;
}
HRESULT WINAPI Reset_Detour(LPDIRECT3DDEVICE9 Device_Interface, D3DPRESENT_PARAMETERS* PresentationParameters)
{
return Reset_Pointer(Device_Interface, PresentationParameters);
}
HRESULT WINAPI EndScene_Detour(LPDIRECT3DDEVICE9 Device_Interface)
{
Device_Interface->GetViewport(&g_ViewPort);
ScreenCenterX = (float)g_ViewPort.Width / 2;
ScreenCenterY = (float)g_ViewPort.Height / 2;
GenerateTexture(Device_Interface, &Red, D3DCOLOR_ARGB (255,255,0 ,0 ));
GenerateTexture(Device_Interface, &Yellow, D3DCOLOR_ARGB (255,255,255,0 ));
GenerateTexture(Device_Interface, &Green, D3DCOLOR_ARGB (255,0 ,255,0 ));
GenerateTexture(Device_Interface, &Blue, D3DCOLOR_ARGB (255,0 ,0 ,255));
if (Xhair)
{
D3DRECT rec2 = {ScreenCenterX-8, ScreenCenterY, ScreenCenterX+8, ScreenCenterY+1};
D3DRECT rec3 = {ScreenCenterX, ScreenCenterY-8, ScreenCenterX+1, ScreenCenterY+8};
Device_Interface->Clear(1, &rec2, D3DCLEAR_TARGET,colRed, 0, 0);
Device_Interface->Clear(1, &rec3, D3DCLEAR_TARGET,colRed, 0, 0);
}
if(GetAsyncKeyState(VK_F1)&1){Xhair=!Xhair;}
if(GetAsyncKeyState(VK_F2)&1){Chams=!Chams;}
return EndScene_Pointer(Device_Interface);
}
HRESULT WINAPI DrawIndexedPrimitive_Detour(LPDIRECT3DDEVICE9 Device_Interface, D3DPRIMITIVETYPE Type, INT BaseIndex,
UINT MinIndex, UINT NumVertices, UINT StartIndex, UINT PrimitiveCount)
{
LPDIRECT3DVERTEXBUFFER9 Stream_Data;
UINT Offset = 0;
UINT Stride = 0;
if(Device_Interface->GetStreamSource(0, &Stream_Data, &Offset, &Stride) == D3D_OK)
Stream_Data->Release();
texnum=(NumVertices*100000)+PrimitiveCount;
if (Chams)
{
if(m_Stride==64 &&
texnum==38100636||texnum==8600144||//Head
texnum==160502262||texnum==173701916||texnum==233202809||texnum==155102162||texnum==243202958||texnum==113501506||texnum==102201072)//Body
{
Device_Interface->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
Device_Interface->SetRenderState(D3DRS_ZFUNC,D3DCMP_NEVER);
Device_Interface->SetTexture(0,Pink);
DrawIndexedPrimitive_Pointer(Device_Interface, Type, BaseIndex, MinIndex, NumVertices, StartIndex, PrimitiveCount);
Device_Interface->SetRenderState(D3DRS_ZENABLE, D3DZB_TRUE);
Device_Interface->SetRenderState(D3DRS_ZFUNC,D3DCMP_LESSEQUAL);
Device_Interface->SetTexture(0,Orange);
}
}
return DrawIndexedPrimitive_Pointer(Device_Interface, Type, BaseIndex, MinIndex, NumVertices, StartIndex, PrimitiveCount);
}
DWORD WINAPI VirtualMethodTableRepatchingLoopToCounterExtensionRepatching(LPVOID Param)
{
UNREFERENCED_PARAMETER(Param);
while(1)
{
Sleep(100);
*(PDWORD)&Direct3D_VMTable[42] = (DWORD)EndScene_Detour;
*(PDWORD)&Direct3D_VMTable[82] = (DWORD)DrawIndexedPrimitive_Detour;
*(PDWORD)&Direct3D_VMTable[16] = (DWORD)Reset_Detour;
}
return 1;
}
apa SC ini menjadi menu juga dalam 1 C++ dengan D3D
mohon bantuan nya dengan sangat OM
dan maaf ane bener2 awam
klo menu seperti ini gan..
- Spoiler:
- {
if(GetAsyncKeyState(VK_INSERT)&1)show=(!show);
//Memunculkan Menu HACK (INSERT)
if(!show) {
DrawBox(0,0, w, 20, BACKCOLOR, BORDERCOLOR, pDevice);
PrintText(menuname, 5, 2, TITLECOL, pFont);
return;
}
DrawBox(x,y, w, h, BACKCOLOR,
BORDERCOLOR, pDevice); // Sesuaikan dengan Base Menu HACK
PrintText(menuname, x+10, y+2, TITLECOL, pFont);
CreateItem(1,"Ammo", &hack1);
CreateItem(2,"Recoil",
&hack2);
CreateItem(3,"Wallhack", &hack3);
CreateItem(4,"Chams", &hack4);
CreateItem(5,"Apa aja
deh", &hack5);
RenderMenu();
}
jangan pernah berhenti berusaha.. untuk mencapai sebuah kesuksesan... [You must be registered and logged in to see this image.]
Re: ZENIX HACK D3D
Om Ridho Kan Saya Udah Succes Koq Pass DI Buka DLLnya Malah Ga Aktif Di pencet insert juga ga bisa...???
mohon pencerahannya om ridho !!!
mohon pencerahannya om ridho !!!
rizkyhp- C4~ Member
- Jumlah posting : 10
Reputation : 1000
Join date : 30.05.11
Re: ZENIX HACK D3D
KALAU UDAH SUCCES AMBIL DLL-NYA DMNA OM ????
rizkyhp- C4~ Member
- Jumlah posting : 10
Reputation : 1000
Join date : 30.05.11
Re: ZENIX HACK D3D
Iya Ngambil Dllnya Dimana Coba Buat Videonya Ajah
anjnkgila- C4~ Member
- Jumlah posting : 27
Reputation : 1000
Join date : 10.05.11
Re: ZENIX HACK D3D
anjnkgila wrote:Iya Ngambil Dllnya Dimana Coba Buat Videonya Ajah
dll nya dimydocumen
Re: ZENIX HACK D3D
TAPI GA BISA DI PAKAI SAYA SUDAH SUCCES KOQ GA BSA HOTKEYNYA INSERT GA KLUAR D3D MENUNYA ... ???
rizkyhp- C4~ Member
- Jumlah posting : 10
Reputation : 1000
Join date : 30.05.11
Re: ZENIX HACK D3D
rizkyhp wrote:TAPI GA BISA DI PAKAI SAYA SUDAH SUCCES KOQ GA BSA HOTKEYNYA INSERT GA KLUAR D3D MENUNYA ... ???
instal vcredisk OM
Re: ZENIX HACK D3D
Sama OM Gw Gx Bisa Juga Padahal Udah Succes Dah Ada Dllnya Pass gw pake
Masuk PB tapi gx ada D3d menunya
Masuk PB tapi gx ada D3d menunya
anjnkgila- C4~ Member
- Jumlah posting : 27
Reputation : 1000
Join date : 10.05.11
Re: ZENIX HACK D3D
Om Ridho / Agoenk-Jr Klo pake VC++ 2008 bisa gk....???
Coozz BT Truss
Coozz BT Truss
ThreeHacker™- C4~ Member
- Jumlah posting : 15
Reputation : 1000
Join date : 15.05.11
Re: ZENIX HACK D3D
ThreHacker™ wrote:Om Ridho / Agoenk-Jr Klo pake VC++ 2008 bisa gk....???
Coozz BT Truss
Edit dikit biar work OM
Re: ZENIX HACK D3D
Functions.h(9): fatal error C1014
bagaimana untuk memperbaiki kesalahan?
bagaimana untuk memperbaiki kesalahan?
BloodFOX- C4~ Member
- Jumlah posting : 6
Reputation : 1000
Join date : 22.06.11
Re: ZENIX HACK D3D
salam kenal om.... saya mau nanya untuk penempatan hasil OFS di mana ...... mohon pencerahan
fahrie009- C4~ Member
- Jumlah posting : 1
Reputation : 1000
Join date : 20.04.12
Re: ZENIX HACK D3D
INstal vc redisk OM
emreasy- C4~ Member
- Jumlah posting : 1
Reputation : 1000
Join date : 09.05.12
:: C++
Halaman 1 dari 1
Permissions in this forum:
Anda tidak dapat menjawab topik