Example #1
0
        public PwClient(IntPtr descript)
        {
            this.Descrypt = descript;
            Int32 processID;

            WinApi.GetWindowThreadProcessId(descript, out processID);
            ProcessID = processID;
            handle    = WinApi.OpenProcess(WinApi.ProcessAccessFlags.All, false, ProcessID);
            Name      = CalcMethods.ReadString(handle, OfsPresenter.getInstance("BA")[0], OfsPresenter.getInstance("GA+Player+Name+0x0"));
            Money     = CalcMethods.ReadInt(handle, OfsPresenter.getInstance("BA")[0], OfsPresenter.getInstance("GA+Player+Money"));
        }
Example #2
0
 public static void GetCords(PwClient pw, out double x, out double y, out double z)
 {
     x = Math.Round(CalcMethods.ReadFloat(pw.Handle, OfsPresenter.getInstance("BA")[0], OfsPresenter.getInstance("GA+Player+X")), 1);
     y = Math.Round(CalcMethods.ReadFloat(pw.Handle, OfsPresenter.getInstance("BA")[0], OfsPresenter.getInstance("GA+Player+Y")), 1);
     z = Math.Round(CalcMethods.ReadFloat(pw.Handle, OfsPresenter.getInstance("BA")[0], OfsPresenter.getInstance("GA+Player+Z")), 1);
 }
Example #3
0
 public static void CheckMoney(PwClient pw)
 {
     pw.Money = CalcMethods.ReadInt(pw.Handle, OfsPresenter.getInstance("BA")[0], OfsPresenter.getInstance("GA+Player+Money"));
 }