- Joined
- Sep 10, 2007
- Messages
- 968
- Reaction score
- 815
Code:
int GetPing(MUID *uidPlayer)
{
unsigned int nObj = NULL;
int pPing = 0;
__asm {
pushad
mov eax, ZGetGameClientAddr
call eax
mov ecx, eax
push uidPlayer
call MMatchClient_FindPeerAddr
mov nObj, eax
popad
}
if(nObj != 0)
{
__asm {
pushad
mov eax, pZGame
mov ecx, dword ptr ds:[eax+0x24]
mov edx, dword ptr ds:[eax+0x28]
add eax, 0x20
add edx, ecx
mov ecx, nObj
push edx
call MMatchInfo_GetPingAddr
mov pPing, eax
popad
}
}
return pPing;
}
kk

