Results 1 to 3 of 3
  1. #1
    258456's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    ghjghj
    Posts
    1,222
    Reputation
    18
    Thanks
    300
    My Mood
    Relaxed

    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;
    }

  2. #2
    258456's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    ghjghj
    Posts
    1,222
    Reputation
    18
    Thanks
    300
    My Mood
    Relaxed
    Nevermind i fixed it... Sorry for thread Hassan, please delete this.

  3. #3
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    /Closed on Request.

Similar Threads

  1. NEW Hack Don't work for me !!!
    By Soldat315 in forum CrossFire Help
    Replies: 11
    Last Post: 04-07-2010, 07:02 PM
  2. New Hacks Are Not Working After Two Days
    By rookz1 in forum Combat Arms Hacks & Cheats
    Replies: 3
    Last Post: 01-10-2009, 06:36 AM
  3. New Hack Doesn't work!
    By Fasdius2 in forum Combat Arms Hacks & Cheats
    Replies: 6
    Last Post: 01-07-2009, 08:22 AM
  4. New Hack doesn't work help!
    By Remorse in forum Combat Arms Hacks & Cheats
    Replies: 29
    Last Post: 01-06-2009, 06:41 PM
  5. New Hack in C++ working after 7/27 update
    By profilik in forum WarRock - International Hacks
    Replies: 30
    Last Post: 07-28-2007, 06:19 AM