XGAME

XGAME


You are not connected. Please login or register

View previous topic View next topic Go down Message [Page 1 of 1]

#1
XGame

avatar
Adminstrator
Adminstrator
Why? It's pretty easy. =]

Code:
class CPlayer
{
public:
char space0[0xC49C];
BYTE Index; //0x0xC49C
char space1[0x3D0C];
float Pitch; //0x101AC
char space2[0x18];
float Yaw; //0x101C8
char space3[0xC];
float ViewX; //0x101D8
float ViewY; //0x101DC
float ViewZ; //0x101E0
char space4[0xC];
WORD weapon; //0x101F0
char space5[0x5E];
BYTE PlayerState; //0x10250
char space6[0x98];
float NoFallDamage; //0x102EC
char space7[0x14];
float PosX; //0x10304
char space8[0x4];
float PosY; //0x1030C
char space9[0x4];
float PosZ; //0x10314
};

class CBase
{
public:
    CPlayer *PLocal; //0x0000
char _0x0004[1243056];
    CPlayer **PPlayer; //0x7C054
};//Size=0x07C058

CBase* p_Base = (CBase*)ADR_PLAYERPOINTER;

void OPK()
{
for(;;)
{
  DWORD Player = *(DWORD*)ADR_PLAYERPOINTER;
  if(Player!=0)
  {
     for(int i = 0; i < 32; i++)
                {
                    CPlayer* pPlayer = p_Base->PPlayer[i];
                    pPlayer->PosX = posiX;
                    pPlayer->PosY = posiY;
                    pPlayer->PosZ = posiZ;
                }
     }
  }
}

Good luck copy pasting. :face:

http://rpghacks.forum.net.bz

View previous topic View next topic Back to top Message [Page 1 of 1]


Permissions in this forum:
You cannot reply to topics in this forum