Results 1 to 3 of 3
  1. #1
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,404
    My Mood
    In Love

    Disconnect into 2nd game

    Code:
    	if(*(BYTE *)0x37843B2C == 1)
    	{
    		IsIngameFix = false;
    		Create = false;
    		BoxESP(pDevice);
    		ConsoleHacks(pDevice);
    		MemoryHacks(pDevice);
    		if(GetAsyncKeyState(VK_DELETE)<0)
    		{
    			if(cItem.telekill)
    			{
    				TeleKill();
    			}
    		}
    	}else{
    		if(!IsIngameFix)
    		{
    		Memoria( (PBYTE)ADDR_SBULLLETS, (PBYTE)"\x0F\x94\xC0", 3 );
    		Memoria( (PBYTE)ADDR_WEAPON_RANGE1, (PBYTE)"\x8B\x80\xC8\x02\x00\x00", 6 ); 
    		Memoria( (PBYTE)ADDR_WEAPON_RANGE2, (PBYTE)"\x8B\x80\xC8\x02\x00\x00", 6 ); 
    		IsIngameFix = true;
    		}
    		Create = false;
    	}
    This is my code, Why the fk do I d/c. I'm pretty sure that the memory hacks get turned off when you leave the game.

    Can someone explain exactly what I did wrong? O.o
    (Superbullets and WeaponRange2 is the only memory hacks)
    No I do not make game hacks anymore, please stop asking.


    Been MPGH Minion: 6 July 2011 - 1 August 2012

  2. #2
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,863
    Reputation
    425
    Thanks
    8,598
    Gordon'

    Code:
    typedef bool (*IsConnected_t)(void);
    
    bool isIngame()
    {
    	DWORD* dwLTBase = (DWORD*)LTClient;
    	IsConnected_t pConnected = *(IsConnected_t*)(*dwLTBase + 0x8C);
    
    	return pConnected();
    }
    Code:
    if(isIngame())
    {
                    BoxESP(pDevice);
    		ConsoleHacks(pDevice);
    		MemoryHacks(pDevice);
    		if(GetAsyncKeyState(VK_DELETE)<0)
    		{
    			if(cItem.telekill)
    			{
    				TeleKill();
    			}
    		}
    } else {
                   Memoria( (PBYTE)ADDR_SBULLLETS, (PBYTE)"\x0F\x94\xC0", 3 );
    		Memoria( (PBYTE)ADDR_WEAPON_RANGE1, (PBYTE)"\x8B\x80\xC8\x02\x00\x00", 6 ); 
    		Memoria( (PBYTE)ADDR_WEAPON_RANGE2, (PBYTE)"\x8B\x80\xC8\x02\x00\x00", 6 );

  3. #3
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,404
    My Mood
    In Love
    Quote Originally Posted by ᴺᴼᴼᴮ View Post
    Gordon'

    Code:
    typedef bool (*IsConnected_t)(void);
    
    bool isIngame()
    {
    	DWORD* dwLTBase = (DWORD*)LTClient;
    	IsConnected_t pConnected = *(IsConnected_t*)(*dwLTBase + 0x8C);
    
    	return pConnected();
    }
    Code:
    if(isIngame())
    {
                    BoxESP(pDevice);
    		ConsoleHacks(pDevice);
    		MemoryHacks(pDevice);
    		if(GetAsyncKeyState(VK_DELETE)<0)
    		{
    			if(cItem.telekill)
    			{
    				TeleKill();
    			}
    		}
    } else {
                   Memoria( (PBYTE)ADDR_SBULLLETS, (PBYTE)"\x0F\x94\xC0", 3 );
    		Memoria( (PBYTE)ADDR_WEAPON_RANGE1, (PBYTE)"\x8B\x80\xC8\x02\x00\x00", 6 ); 
    		Memoria( (PBYTE)ADDR_WEAPON_RANGE2, (PBYTE)"\x8B\x80\xC8\x02\x00\x00", 6 );
    That's what I did the first time, but it works now
    No I do not make game hacks anymore, please stop asking.


    Been MPGH Minion: 6 July 2011 - 1 August 2012