Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using Memory;
- namespace trainerforassaultcube
- {
- public partial class Form1 : Form
- {
- Mem meme = new Mem();
- // "ac_client.exe"+0010F4F4 + 13C
- string ammoAddress = "ac_client.exe+0x0010F4F4,13C";
- public Form1()
- {
- InitializeComponent();
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- int PID = meme.GetProcIdFromName("ac_client");
- if (PID > 0)
- {
- meme.OpenProcess(PID);
- timer1.Start();
- }
- }
- private void timer1_Tick(object sender, EventArgs e)
- {
- if (checkBox1.Checked)
- {
- meme.WriteMemory(ammoAddress, "int", "9999999");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment