Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    R3d_L1n3's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    137
    Reputation
    10
    Thanks
    208
    Quote Originally Posted by Flengo View Post
    Here's a horrible example I found online and made a little neater. Its so you just get the idea of what to do please don't use this

    Code:
    void DoTelekill(int TeleKill)
    {
    	DWORD posptr, posy;
    	GetPlayerByIndex = (lpGetPlayerByIndex)PlayerByIndex;
    	unsigned long ulThis = *(unsigned long *)ClientInfoMgr;
    	GetLocalPlayer = (lpGetLocalPlayer)LocalPlayer;
    
    
    	posptr = (DWORD)GetModuleHandle("ClientFX.fxd");
    	posptr += ADDR_CLIENTFX;
    
    
    	memcpy(&posy,(void *)posptr, 4);
    
    
    	for(int i = 0; i < 16; i++) 
    	{
    		PlayerInfo *pPlayer = GetPlayerByIndex(ulThis, i, 0);
    		PlayerInfo *pLocal = GetLocalPlayer(ulThis);
    
    
    		if(pPlayer != 0 && pPlayer->obj != 0 && pPlayer->IsDead == 0) 
    		{
    			if(TeleKill) 
    			{
    				if(pPlayer->Team != pLocal->Team) 
    				{
    					*(float *)(posy + 0xC8) = (pPlayer->obj->origin.x + 100.0f);
    					*(float *)(posy + 0xCC) = (pPlayer->obj->origin.y + 100.0f);
    					*(float *)(posy + 0xD0) = (pPlayer->obj->origin.z);
    				}
    			}
    		}
    	}
    }

    But u know its working right ?

  2. #17
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Ontario, Canada
    Posts
    15,691
    Reputation
    3319
    Thanks
    11,105
    My Mood
    Happy
    Quote Originally Posted by R3d_L1n3 View Post
    But u know its working right ?
    Yeah I know it works. But there's just some unneeded things in there, plus its leeched around everywhere.

    Just trying to give better guidelines than him leeching from the start.


    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.
     
     
    VM | PM

    Publicist Since 04.04.2015
    Middleman Since Unknown - Unknown
    Global Moderator Since 08.01.2013
    Donator Since 05.29.2013

    Minion+ Since 04.18.2013

    District 187 Minion Since 04.04.2013
    Steam Minion Since 02.26.2013
    WarRock Minion Since 02.19.2013
    A.V.A Minion Since 02.13.2013
    DayZ Minion Since 01.21.2013
    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  3. #18
    cobi45's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    THE United States of America
    Posts
    101
    Reputation
    10
    Thanks
    61
    My Mood
    Breezy
    Addies for GetLocalPlayer and GetPlayerByIndex:

    #define ADDR_GETLOCALPLAYER 0x372CC400 //CShell.dll[0x37100000] + 0x001CC400

    #define ADDR_GETPLAYERBYINDEX 0x372CBA10 //CShell.dll[0x37100000] + 0x001CBA10

    hopefully that will help a little bit ^

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Ihelger how does PX work
    By ash111 in forum WarRock Discussions
    Replies: 19
    Last Post: 01-13-2010, 02:32 PM
  2. How does Hackshield Work?
    By Mouzie in forum Combat Arms Discussions
    Replies: 6
    Last Post: 01-12-2010, 08:09 PM
  3. how does wallhack work?
    By billythekid1 in forum WarRock Discussions
    Replies: 5
    Last Post: 10-15-2009, 01:03 PM
  4. How does this work?
    By Jakeoff10 in forum Combat Arms Hacks & Cheats
    Replies: 1
    Last Post: 12-22-2008, 08:51 AM
  5. OGKeys - How does it work?
    By foxhound in forum WarRock - International Hacks
    Replies: 5
    Last Post: 07-05-2008, 12:54 AM