public static void WritePointerFloat(int PID, int Pointer, int[] Offset, float Value)
{
checked
{
try
{
Process Proc = Process.GetProcessById(PID);
if (Proc.Id != 0)
{
int Handle = OpenProcess(PROCESS_ALL_ACCESS, 0, Proc.Id);
if (Handle != 0)
{
int Bytes = 0;
foreach (int i in Offset)
{
ReadProcessMemoryInteger(Handle, Pointer, ref Pointer, 4, ref Bytes);
Pointer += i;
}
WriteProcessMemoryFloat(Handle, Pointer, ref Value, 4, ref Bytes);
}
CloseHandle(Handle);
}
}
catch
{ }
}