i've found a huge page of addresses in GTA San Andreas: Memory Addresses (SA - GTAModding)
It says that the X coordinate of the player isCPed+0x14) +0x30
and the Y coordinate of the player is: (CPed+0x14) +0x34
and the Z coordinate of the player is: (CPed+0x14) +0x38
and CPed is: 0xB6F5F0
and the X,Y,Z are DWORDs.
i've created a dll file which tries the following:
Code:
DWORD* X = (DWORD*)(0xB6F5F0 + 0x14) + 0x30;
DWORD* Y = (DWORD*)(0xB6F5F0 + 0x14) + 0x34;
DWORD* Z = (DWORD*)(0xB6F5F0 + 0x14) + 0x38;