Exclamation(Source Code Included)Game Crashes after I inject my hack

Posts 1–5 of 5 · Page 1 of 1
Nevermind Fixed It (Please Close This Thread)
Hello,
Its me again and now for some reason when i am getting ready to release my very first hack the dang game updates and now when i inject my hack and i go into a game it crashes. Anyone no why

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

//-------------------Define Hacks----------------------//

#define Playerpointer 0xD45310
#define Serverpointer 0xC41938
#define OFS_Z 0x102D8
#define NFD_Player_OffSet 0x103A8
#define OFS_NORECOIL1 0x1C
#define OFS_NORECOIL2 0x20
#define OFS_NORECOIL3 0x24
#define Speed 0xA65CAC
#define No_Spread 0x000000
#define Extra_Ammo_1 0xBC78CC
#define Extra_Ammo_2 0xBC78CD

//------------------End Define Adddies-----------------//

//--------------------------Define HackThread--------------------------//

DWORD *ingame= (DWORD*)Playerpointer;
DWORD *outgame= (DWORD*)Serverpointer;

//--------------------------End Define HackThread--------------------------//

//--------------------------Start Hacks--------------------------//

void PlayerHacks() // Start PlayerHacks
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0){

//No Recoil
{*(float*)(dwPlayerPtr+OFS_NORECOIL1) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL2) = 0;
*(float*)(dwPlayerPtr+OFS_NORECOIL3) = 0;}

//End No Recoil

//Speed x2
{if(GetAsyncKeyState(VK_NUMPAD1) &1<< 0xF){
*(float*)(Speed) = 200.0f;}}

//Speed x3
{if(GetAsyncKeyState(VK_NUMPAD2) &1<< 0xF){
*(float*)(Speed) = 300.0f;}}

//Speed x5
{if(GetAsyncKeyState(VK_NUMPAD3) &1<< 0xF){
*(float*)(Speed) = 500.0f;}}

//Speed Normal
{if(GetAsyncKeyState(VK_NUMPAD0) &1<< 0xF){
*(float*)(Speed) = 100.0f;}}

//Extra Ammo A
{*(int*)(Extra_Ammo_1) = 1;}

//Extra Ammo S
{*(int*)(Extra_Ammo_2) = 1;}

//No Spread
{*(float*) No_Spread = 0;}
//End No Recoil

//Superjump

{if(GetAsyncKeyState(VK_CONTROL) &1){
*(float*)(dwPlayerPtr+OFS_Z) = 1000;}}

//End Superjump

// No Fall Damage

{*(float*)(dwPlayerPtr+NFD_Player_OffSet) = -20000;}

//End No Fall Damage

}} //End PlayerHacks

void ServerHacks() // Start ServerHacks
{
DWORD dwSrvrPtr=*(DWORD*)Serverpointer;
if(dwSrvrPtr!=0){

}} //End ServerHacks

//--------------------------End Hacks--------------------------//

//-------------------------HackThread--------------------------//

void Hacks(){
for(;{
PlayerHacks();
ServerHacks();
Sleep(20);}}

//--------------------------End HackThread--------------------------//

//--------------------------End--------------------------//

BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res){
switch(DWORD_GRUND){
case 1:
ShellExecuteA(NULL,"Open","http://www.sealteamvi.*********/",NULL,NULL,1);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Hacks , 0, 0, 0);
break;
case 2:
break;}
return TRUE;}

//--------------------------End--------------------------//
//credits go to [Tutorial] WarRock NoMenu Hack [Date = 2 sept 2010] - Gamerz Needs - For All Your Gaming Needs! for helping me find a good base.
First, post in two topics is completely useless.
For your problem, maybe your addies are not up-to-date
Quote Originally Posted by joguizi View Post
First, post in two topics is completely useless.
For your problem, maybe your addies are not up-to-date
yeah i just figure it out but i didnt want to double post but how do i get someone to close this
You just have to wait...
But, I can see that almost everything in your hack is given by who made the basic source, don't release a hack that you just took a basic source.
Improves it and made it your own hack.
If you don't know how just learn C++.
Don't forget to add the credits for the base if you release a hack.
Quote Originally Posted by joguizi View Post
You just have to wait...
But, I can see that almost everything in your hack is given by who made the basic source, don't release a hack that you just took a basic source.
Improves it and made it your own hack.
If you don't know how just learn C++.
Don't forget to add the credits for the base if you release a hack.
actually i decided to make my own base seems to work a lot better and just released my hack just waiting for it to get aproved.
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

Need help?