Advertisement
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 ReadWriteMemory;
- namespace WindowsFormsApplication11
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- ProcessMemory mem = new ProcessMemory("AssaultCube");
- if (mem.CheckProcess())
- {
- mem.StartProcess();
- int AmmoPointer = 0x0222E668;
- int AmmoOffset = 0x0;
- int AmmoToFill = 100;
- mem.WriteInt(AmmoPointer + AmmoOffset, AmmoToFill);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement