Quote:
but this methode crash and making partyprogramm too on 32bit system :D
I do not have a good detour, virtually hack does not work on 32-bit systems. And if there is another ways to speedhack?, Me wondering with structs, the figure runs fast, but when the keys are in the works as mieszją S, S acts as the W, A acts as a D, D acts as A;/ /Quote:
not if you got a good detour ;)
if (CH_SpeedHack==1)
{
g_pBase->pLocal->PlayerSpeed = 96;
}
if (CH_SpeedHack==2)
{
g_pBase->pLocal->PlayerSpeed = 96 * 2;
}
if (CH_SpeedHack==3)
{
g_pBase->pLocal->PlayerSpeed = 96 * 3;
}
if (CH_SpeedHack==4)
{
g_pBase->pLocal->PlayerSpeed = 96 * 5;
}
if (CH_SpeedHack==5)
{
g_pBase->pLocal->PlayerSpeed = 96 * 10;
}
Ye xD but is bit different working with structs :PQuote:
I do not have a good detour, virtually hack does not work on 32-bit systems. And if there is another ways to speedhack?, Me wondering with structs, the figure runs fast, but when the keys are in the works as mieszją S, S acts as the W, A acts as a D, D acts as A;/ /
This is my source:
Code:if (CH_SpeedHack==1) { g_pBase->pLocal->PlayerSpeed = 96; } if (CH_SpeedHack==2) { g_pBase->pLocal->PlayerSpeed = 96 * 2; } if (CH_SpeedHack==3) { g_pBase->pLocal->PlayerSpeed = 96 * 3; } if (CH_SpeedHack==4) { g_pBase->pLocal->PlayerSpeed = 96 * 5; } if (CH_SpeedHack==5) { g_pBase->pLocal->PlayerSpeed = 96 * 10; }
Quote:
I do not have a good detour, virtually hack does not work on 32-bit systems. And if there is another ways to speedhack?, Me wondering with structs, the figure runs fast, but when the keys are in the works as mieszją S, S acts as the W, A acts as a D, D acts as A;/ /
This is my source:
Code:if (CH_SpeedHack==1) { g_pBase->pLocal->PlayerSpeed = 96; } if (CH_SpeedHack==2) { g_pBase->pLocal->PlayerSpeed = 96 * 2; } if (CH_SpeedHack==3) { g_pBase->pLocal->PlayerSpeed = 96 * 3; } if (CH_SpeedHack==4) { g_pBase->pLocal->PlayerSpeed = 96 * 5; } if (CH_SpeedHack==5) { g_pBase->pLocal->PlayerSpeed = 96 * 10; }
What N4N033 said ;) and btw the source you're using should be right even though it can be made another simple way and you need to change a sign..Quote:
Ye xD but is bit different working with structs :P
Hmmm about which character are you talking about? The structures have rather good, do not know if this is the full code for the speed of the structuresQuote:
What N4N033 said ;) and btw the source you're using should be right even though it can be made another simple way and you need to change a sign..
If it's going backwards have you thought of how to make it go forward?
Tip: You're missing a sign just before the value ;)
if([B]GetScreenCoordFromWorld[/B](pDevice, g_vView, g_pPlayer)
Nothing say it's MaxyLopez93 source but i know it cos i know this exact source from now 1 year & half and i know that it's his made.Quote:
Ich sehe das nichts, was auf MaxyLopez93 zurückweist .. Außerdem sind solche Beiträge voll unnötig, sonst müsste man das bei 9/10 Codes die hier veröffentlicht werden machen ..
int checkhack (void)
{
char szLink[256]="";
char szReponse[256]="";
sprintf(szLink,"http://yoursite/Check1.php");
if ( URLgetpage(szLink,szReponse,256) == 0 ) return (0);
if ( strcmp(szReponse,"Offline") == 0 )
{
ExitProcessSurvive=1;
if ( strcmp(szReponse,"Online") == 0 )
{
}
}
}
int checkhack (void)
{
char szLink[256]="";
char szReponse[256]="";
sprintf(szLink,"http://yoursite/Check2.php");
if ( URLgetpage(szLink,szReponse,256) == 0 ) return (0);
if ( strcmp(szReponse,"Offline") == 0 )
{
ExitProcessSurvive=2;
if ( strcmp(szReponse,"Online") == 0 )
{
}
}
}
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason==DLL_PROCESS_ATTACH)
{
//YourThread...
}
else if (ExitProcessSurvive == 1)
{
MessageBoxA(GetActiveWindow(),"Frenz >> Hack Detected, Need an Update. ","<Error>",MB_OK);
ExitProcess(0);
}else if (ExitProcessSurvive == 2)
{
MessageBoxA(GetActiveWindow(),"Frenz >> Hack Expired ","<Error>",MB_OK);
ExitProcess(0);
}
return FALSE;
}
These Hooks:Quote:
#Request detour
if( memcmp((void *)VTable[17], (void *)"\x8B\xFF", 2) == 0 )
{
pPresent = (oPresent) memorydetour((DWORD)myPresent, (DWORD)VTable[17]);
}
if( memcmp((void *)VTable[44], (void *)"\x8B\xFF", 2) == 0 )
{
pSetTransform = (oSetTransform)memorydetour((DWORD)nSetTransform,( DWORD)VTable[44]);
}
Kicking me.
if( memcmp((void *)VTable[17], (void *)"\x8B\xFF", 2) == 0 )
{
pPresent = (oPresent) memorydetour((DWORD)myPresent, (DWORD)VTable[17]);
}
if( memcmp((void *)VTable[44], (void *)"\x8B\xFF", 2) == 0 )
{
pSetTransform = (oSetTransform)memorydetour((DWORD)nSetTransform,(DWORD)VTable[44]);
}
DWORD MEMhotpatch(DWORD dwAddress, DWORD dwFunction)
{
BYTE OriginalBytes[] = { 0x90, 0x90, 0x90, 0x90, 0x90, 0x8b, 0xff};
BYTE NewBytes[] = { 0xe9, 0x00, 0x00, 0x00, 0x00, 0xeb, 0xf9};
dwAddress -= 5;
if (memcmp((void *)dwAddress,(void *)OriginalBytes, 7) != 0)
{
return 0;
}
*(DWORD*)(&NewBytes[1]) = (dwFunction - dwAddress) - 5;
WriteMemory((void *)dwAddress, (void *)NewBytes, 7);
return (dwAddress + 7);
}
VMTInitialize(17,myPresent); VMTInitialize(44,mySetTransformations);
Quote:
i got no menu with this MemPatch thing.
#define ADR_DEVICEPOINTER 0x00A53440
#define OFS_DEVICEPOINTER 0x002B930
HRESULT __stdcall nPresent ( LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion );
typedef HRESULT ( APIENTRY* Present_t )( LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion );
Present_t pPresent;
HRESULT __stdcall nReset ( LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters );
typedef HRESULT ( APIENTRY* Reset_t ) ( LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters );
Reset_t pReset;
HRESULT _stdcall nPresent(LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
_asm PUSHAD;
//Your Code Here :D
_asm POPAD;
return pPresent(pDevice,pSourceRect, pDestRect,hDestWindowOverride,pDirtyRegion);
}
HRESULT __stdcall nReset (LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters )
{
_asm PUSHAD;
pFont->OnLostDevice();
HRESULT hRet = pReset(pDevice, pPresentationParameters);
pFont->OnResetDevice();
_asm POPAD;
return hRet;
}
DWORD WarRockDevice (int index)
{
if (!ADR_DEVICEPOINTER) return 0;
DWORD dwDevicePointer = *(DWORD*)ADR_DEVICEPOINTER;
if(!dwDevicePointer) return 0;
DWORD dwDeviceAddress = *(DWORD*)(dwDevicePointer + OFS_DEVICEPOINTER);
if(!dwDeviceAddress) return 0;
dwDeviceAddress = *(DWORD*)dwDeviceAddress;
if(!dwDeviceAddress) return 0;
return dwDeviceAddress + (4*index);
}
#define InitializeDevice(name, index)\
DWORD dw##name##1 = WarRockDevice (index);\
if(*(DWORD*)dw##name##1 != (DWORD)&n##name && dw##name##1 != NULL)\
{\
p##name = (name##_t) *(DWORD*)dw##name##1;\
*(DWORD*)dw##name##1 = (DWORD)&n##name;\
}
int __stdcall DeviceHook(void)
{
bool Ready = false;
while( true )
{
Ready = WarRockDevice(0) > 0;
if( Ready )
{
InitializeDevice(Reset,16);
InitializeDevice(Present,17);
}
Sleep(300);
}
}
You need an Bypass for thisQuote:
Try this one :DCode:#define ADR_DEVICEPOINTER 0x00A53440 #define OFS_DEVICEPOINTER 0x002B930 HRESULT __stdcall nPresent ( LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion ); typedef HRESULT ( APIENTRY* Present_t )( LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion ); Present_t pPresent; HRESULT __stdcall nReset ( LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters ); typedef HRESULT ( APIENTRY* Reset_t ) ( LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters ); Reset_t pReset; HRESULT _stdcall nPresent(LPDIRECT3DDEVICE9 pDevice,CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion) { _asm PUSHAD; //Your Code Here :D _asm POPAD; return pPresent(pDevice,pSourceRect, pDestRect,hDestWindowOverride,pDirtyRegion); } HRESULT __stdcall nReset (LPDIRECT3DDEVICE9 pDevice, D3DPRESENT_PARAMETERS* pPresentationParameters ) { _asm PUSHAD; pFont->OnLostDevice(); HRESULT hRet = pReset(pDevice, pPresentationParameters); pFont->OnResetDevice(); _asm POPAD; return hRet; } DWORD WarRockDevice (int index) { if (!ADR_DEVICEPOINTER) return 0; DWORD dwDevicePointer = *(DWORD*)ADR_DEVICEPOINTER; if(!dwDevicePointer) return 0; DWORD dwDeviceAddress = *(DWORD*)(dwDevicePointer + OFS_DEVICEPOINTER); if(!dwDeviceAddress) return 0; dwDeviceAddress = *(DWORD*)dwDeviceAddress; if(!dwDeviceAddress) return 0; return dwDeviceAddress + (4*index); } #define InitializeDevice(name, index)\ DWORD dw##name##1 = WarRockDevice (index);\ if(*(DWORD*)dw##name##1 != (DWORD)&n##name && dw##name##1 != NULL)\ {\ p##name = (name##_t) *(DWORD*)dw##name##1;\ *(DWORD*)dw##name##1 = (DWORD)&n##name;\ } int __stdcall DeviceHook(void) { bool Ready = false; while( true ) { Ready = WarRockDevice(0) > 0; if( Ready ) { InitializeDevice(Reset,16); InitializeDevice(Present,17); } Sleep(300); } }