private static void FindLocalPlayerOffset(int clientDll, long clientDllSize) { byte[] pattern = { 0x8D, 0x34, 0x85, 0x00, 0x00, 0x00, 0x00, 0x89, 0x15, 0x00, 0x00, 0x00, 0x00, 0x8B , 0x41, 0x08, 0x8B, 0x48, 0x04, 0x83, 0xF9, 0xFF }; string mask = SignatureScan.MaskFromPattern(pattern); var adress = SignatureScan.FindAddress(pattern, 3, mask, clientDll, clientDllSize); var localplayer = SignatureScan.ReadInt(adress); adress = SignatureScan.FindAddress(pattern, 18, mask, clientDll, clientDllSize); var val2 = SignatureScan.ReadByte(adress); localplayer += val2; localplayer -= clientDll; signatures.dwLocalPlayer = localplayer; }