Code:
void LogPlayerPos(void)
{
DWORD dwPlayerPointer = *(DWORD*) ADR_PLAYERPTR;
if(dwPlayerPointer !=0)
{
char posx[999];
char posy[999];
char posz[999];
sprintf(posx, "Pos X: %.0f ",g_pBase->local->pos1);
sprintf(posy, "Pos Y: %.0f", g_pBase->local->pos2);
sprintf(posz, "Pos Z: %.0f", g_pBase->local->pos3);
RECT PlayerX, PlayerY, PlayerZ;
SetRect(&PlayerX, 100, 150, 100, 150);
SetRect(&PlayerY, 150, 200, 150, 200);
SetRect(&PlayerZ, 300, 350, 300, 350);
pFont->DrawTextA(NULL, posx, -1, &PlayerX, DT_NOCLIP | DT_CENTER, D3DCOLOR_ARGB(255, 255,0, 0));
pFont->DrawTextA(NULL, posy, -1, &PlayerY, DT_NOCLIP | DT_CENTER, D3DCOLOR_ARGB(255, 255, 0, 0));
pFont->DrawTextA(NULL, posz, -1, &PlayerZ, DT_NOCLIP | DT_CENTER, D3DCOLOR_ARGB(255, 255, 0, 0));
}
}
Present:
LogPlayerPos();