OPK
Opps I forgot about that.
Code:
float posiX,posiY,posiZ;
int OPKVal = 1;
void OPKSave()
{
if (GetAsyncKeyState(VK_F5)&1)
{
posiX = p_Base->pLocal->posx;
posiY = p_Base->pLocal->posy;
posiZ = p_Base->pLocal->posz
}
}
void OPK()
{
if OPKVal == 1)
{
for(int i = 4; i < 32; i++)
{
CPlayer* pPlayer = p_Base->pGlobal[i];
pPlayer->posx = posiX;
pPlayer->posy = posiY;
pPlayer->posz = posiZ;
}
}
}
@ @-=meow=- Solved?
Here: A gift for you.
Code:
struct CBase
{
CPlayer* pLocal;
CHAR xUnknown0011[504604];
CPlayer** pGlobal;
};
CBase* p_Base = (CBase*)ADR_PlayerPointer;
My CBase:
here's a Video for the outcome, sorry for low quality.
as you can see it work but the problem is, the player is being dragged back to its original position.
Code:
struct CBase
{
CPlayer* m_pLocalPlayer;;//0x0000
CHAR GlobalPtr[504604];//0x7b31c
CPlayer** m_pGlobalPlayers;//0x0000
};//size = 0x7b31c(504604)
CBase* pBase = (CBase*)ADR_PlayerPointer;
as you can see it work but the problem is, the player is being dragged back to its original position.
Problem solved! I just added a for loop.
@ @Mayion Please Close this Thread. Thank you.
@ @Mayion Please Close this Thread. Thank you.
Solved, closed.
This thread is closed for replies.

