
Originally Posted by
Hell_Demon
Try the following:
Code:
#include <windows.h>
#include <stdio.h>
DWORD dwPlayerPtr;
void TheHacks() //Hack Thread
{
while(*dwPlayerPtr == 0)
{
Sleep(1000);
}
while(1)
{
*(int*)(dwPlayerPtr+0x2C) = 60; // 60 is an int ^^
Sleep(50);
}
}
BOOL WINAPI DllMain(HINSTANCE module, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
dwPlayerPtr = /***/(DWORD*)0xCCB670; // ?
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)TheHacks, NULL, NULL, NULL); //create the new Thread
}
return TRUE;
}
haven't checked for errors and typed in a reply.
I'm a noob and all, so I have no idea what this means, but these are the errors that Dev c++ kicked back to me.
In function `void TheHacks()':
invalid type argument of `unary *'
In function `BOOL DllMain(HINSTANCE__*, DWORD, void*)':
WarRock.cpp invalid conversion from `DWORD*' to `DWORD'
[Warning] passing NULL used for non-pointer converting 2 of `void* CreateThread(_SECURITY_ATTRIBUTES*, DWORD, DWORD (*)(void*), void*, DWORD, DWORD*)'
[Warning] passing NULL used for non-pointer converting 5 of `void* CreateThread(_SECURITY_ATTRIBUTES*, DWORD, DWORD (*)(void*), void*, DWORD, DWORD*)'
This may help you guys out, or maybe i'm just getting errors because I have no clue what i'm doing and shouldn't be trying to compile someone elses code.