Learning to Code

Posts 1–6 of 6 · Page 1 of 1
Learning to Code
Hi guys, i just wanna ask if there is something wrong with this code or am i missing something?
I tried to use this code below to learn how to code my own hack but when i tried it, gameguard detected it.
I don't want you guys to spoon feed me, so please try to help me in a way that i will learn something.
Thank you.


Code:
#include <windows.h>
#include <stdio.h>

//Addys//

#define Addr_Playerpointer 0x00A903E8
#define Addr_Serverpointer 0x00A8F390
#define Ofs_nfd 0x00102E8

//Defines//
DWORD *ingame= (DWORD*)Addr_Playerpointer;
DWORD *outgame= (DWORD*)Addr_Serverpointer;

void nfd () //NFD
{
DWORD dwPlayerPtr = *(DWORD*)Addr_Playerpointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+Ofs_nfd) = -20000;
}
}


//Hacktread//

void HackThread() 
{
for(;; ) 
{
if(*ingame) //All ingame Hacks like superjump,nfd,scoop etc.//
{
nfd();
}

if(*outgame)//All outgame hacks like Prmeium,supermaster etc.
{
Sleep(200); 
}
}
}


BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread , 0, 0, 0); 
break;
}
return TRUE;
}
Wrong section.
Quote Originally Posted by Jhem View Post
Wrong section.
Sorry if i'm in the wrong section. Can you tell me why GG detected it? Any help will be appreciated. Thank you.

Quote Originally Posted by emiedumalasa View Post
change the build solution configurations to release instead of debug.......
I changed it from debug into release, but still GG detected it. Any idea? Thanks for the help.

Quote Originally Posted by WhiteHat PH View Post
There is no wrong with your source code ....
If there is no wrong with my code, can you tell me why GG detected it? Any help will be appreciated, Thank you.
change the build solution configurations to release instead of debug.......
There is no wrong with your source code ....
I just Solved the problem. changing some variable names did the trick. Please move my thread to the right section.
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us