Problem / Frage !

09/20/2010 18:39 Mcmy#1
Hallo,

ich hab jetzt Source kopiert und die addies rein gemacht!
Wie gehts jetzt weiter?

Hab ich hier ein Fehler oder sonst was?

Quote:
#include <stdio.h>
#include <windows.h>
#define OFS_NORECOIL1 0x0000001c
#define OFS_NORECOIL2 0x00000020
#define OFS_NORECOIL3 0x00000024
#define ADR_NOSPREAD 0x8AB4C4
#define ADR_SCOPE 0x007CFE84
#define ADR_PLAYERPTR 0x00A69C88
#define ADR_SERVERPOINTER 0x00964A40

DWORD *ingame= (DWORD*)ADR_PLAYERPTR ;
DWORD *megame= (DWORD*)ADR_SERVERPOINTER ;


void NoRecoil ()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPTR;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL3) = 0;
}
}

void NoSpread ()
{
*(int*)ADR_NOSPREAD = 0;
}


void Scope ()
{
if(GetAsyncKeyState(VK_RBUTTON))
{
*(int*)(ADR_SCOPE) = (int)1;
}
else
{
*(int*)(ADR_SCOPE) = (int)5;
}
}


void HackThread()
{
for(;;)
{
if(*ingame)
{
NoRecoil ();
NoSpread ();
Scope ();

}
if(*megame)
{

}
Sleep(20);
}
}


BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:

ShellExecuteA(NULL,"Open","http://*************",NULL,NULL,1);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0);
break;
case 2:
break;
}
return TRUE;
}
09/20/2010 18:59 scenebase#2
Quote:
Originally Posted by Mcmy View Post
Hallo,

ich hab jetzt Source kopiert und die addies rein gemacht!
Wie gehts jetzt weiter?

Hab ich hier ein Fehler oder sonst was?
Lern erst mal die Sprache, bevor du dir da irgendwas zusammen kopierst wovon du keine Ahnung hast.
09/20/2010 19:00 Mcmy#3
Dauert zu lange.
Mit Copy&Past gehts auch ^^. Dadurch lerne ich es ja auch :D.
Ich brauche Hilfe und keine Ratschläge.
09/20/2010 21:02 Madd Eye#4
:facepalm: <- no more
09/21/2010 15:17 MrSm!th#5
Quote:
Originally Posted by Mcmy View Post
Dauert zu lange.
Mit Copy&Past gehts auch ^^. Dadurch lerne ich es ja auch :D.
Ich brauche Hilfe und keine Ratschläge.
tse...dann wirst du in dieser section auch keine hilfe bekommen.

wenn du copypasten willst, mach das mit autoit, aber nicht mit c++, da wirst du eh failen, wenn du die sprache nicht kannst!

#closed