New Hack I Am Working On...[Solved]

Posts 1–3 of 3 · Page 1 of 1
New Hack I Am Working On...[Solved]
I have started to make a kind of super jump on assault cube. I have the offsets and everything i just want to know why it doesn't work. Like when i go in game i press space (which is my hotkey) then it says that assault cube has stopped working (it crashed ac_client.exe). Here is my simple code:


player.h
Code:
#ifndef PLAYER_H
#define PLAYER_H

class player;

class player
{
public:

	long ibase;
	long z;
	long x;
	long y;

	void add()
	{
		ibase = 0x004e4dbc;
		z = ibase + 0x3c;
		x = ibase + 0x34;
		y = ibase +0x38;
	}

	void superjump()
	{
       long *accessz = &z;
	   accessz = 20;

	}

};

#endif
main.cpp
Code:
#include <Windows.h>
#include <iostream>
#include "player.h"
void hack();

player *me;

void hack()
{
	
	while(true)
	{
	  
		if(GetAsyncKeyState(VK_SPACE)&1)
		{
			me->add();
			me->superjump();
		}

	}
}
BOOL APIENTRY DllMain (HINSTANCE hInst     /* Library instance handle. */ ,
                       DWORD reason        /* Reason this function is being called. */ ,
                       LPVOID reserved     /* Not used. */ )
{
    switch (reason)
    {
      case DLL_PROCESS_ATTACH:

		CreateThread(NULL, NULL,(LPTHREAD_START_ROUTINE)hack, NULL, NULL, NULL);
		  
       break;

      case DLL_PROCESS_DETACH:
        break;

      case DLL_THREAD_ATTACH:
        break;

      case DLL_THREAD_DETACH:
        break;
    }

    /* Returns TRUE on success, FALSE on failure */
    return TRUE;
}
Nevermind i fixed it... Sorry for thread Hassan, please delete this.
/Closed on Request.
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us