Results 1 to 5 of 5
  1. #1
    Sixx93's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    673
    Reputation
    21
    Thanks
    250
    My Mood
    Cool

    What's wrong with my OPK?

    hi all... i'm trying to write my OPK, i already have the telekill, so i have classes and functions... when i activate the OPK, CA freezes, idk why. Can anyone help me?

    Code:
    bool Once = false;
    void cESP::DoOPK()
    {
    	DWORD dwClientFxEntry;
    	D3DXVECTOR3 MyPos;
    	
    	dwClientFxEntry		= (DWORD)GetModuleHandleA( "Clientfx.fxd" );
    	DWORD dwClass = *(DWORD*)( dwClientFxEntry + 0x66F34 );
    
    	if( dwClass == NULL )
    		return;
    	if(Once==false){
    	MyPos.x = *(float*)( dwClass + 0xC8 );
    	MyPos.y = *(float*)( dwClass + 0xCC );
    	MyPos.z = *(float*)( dwClass + 0xD0 );
    	Once=true;
    	}
    
    	GetPlayerByIndex = (lpGetPlayerByIndex)(LINDEX);
    	unsigned long ulThis = *(unsigned long*)(ULTHIS);
    	GetLocalPlayer = (lpGetLocalPlayer)(LOCAL);
    	PlayerInfo* pLocal = GetLocalPlayer(ulThis);
    	for (int i=0; i<16; i++)
    	{
    		PlayerInfo* pPlayer = GetPlayerByIndex( ulThis,i,0);
    		if(pPlayer != 0 && pPlayer->obj != 0 && pPlayer->IsDead == 0 )
    		{
    			if(pPlayer->Team != pLocal->Team)
    			{
    				while(pPlayer->IsDead ==0 && pLocal->IsDead ==0)
    				{
    					
    						Sleep(25);
    						pPlayer->obj->origin.x = MyPos.x + 74.0f;
    						pPlayer->obj->origin.y = MyPos.y;
    						pPlayer->obj->origin.z = MyPos.z;}
    				
    			}
    		}
    	}
    
    }

  2. #2
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    Hell...

    The Informations just to read, not to write...(means u can not manipulate this)
    The Internet SHOULD Be Illegal

    When you say
    "Java is a great programming language because it works on all platforms"
    it is just like
    "anal sex is great because it works on all genders"

    Are YOU a Troll?

  3. #3
    Sixx93's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    673
    Reputation
    21
    Thanks
    250
    My Mood
    Cool
    ok, so can u help me finding a way to set the enemy's cords?

  4. #4
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,843
    Reputation
    425
    Thanks
    8,616
    There's a SetObjectPos function in ILTClient.

  5. The Following User Says Thank You to NOOB For This Useful Post:

    Sixx93 (04-22-2011)

  6. #5
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    Quote Originally Posted by ᴺᴼᴼᴮ View Post
    There's a SetObjectPos function in ILTClient.
    pssssst...
    not work as easy as it listening ^^
    The Internet SHOULD Be Illegal

    When you say
    "Java is a great programming language because it works on all platforms"
    it is just like
    "anal sex is great because it works on all genders"

    Are YOU a Troll?