Code:
int i = GetClosestPlayer();
pPlayerManager = *(PlayerMgr **)Addr_PlayerMgr;
GetPlayerByIndex = (lpGetPlayerByIndex)Addr_PlayerByIndex;
unsigned long ulThis = *(unsigned long *)Addr_ClientInfoMgr;
GetLocalPlayer = (lpGetLocalPlayer)ADDR_LOCALPLAYER;
cPlayerInfo* pLocal = GetLocalPlayer(ulThis);
if(i != -1) {
cPlayerInfo* pPlayer = GetPlayerByIndex(ulThis,i,0);
D3DXVECTOR3 Position;
GetAngleToTarget((MyGetObjectMaxPos((int *)pPlayer->obj)), (MyGetObjectMaxPos((int *)pLocal->obj)), Position);
pPlayerManager->Yaw = DegToRad(Position[YAW]);
pPlayerManager->Pitch = DegToRad(Position[PITCH] + Bone);
Figure out the rest.