Guest User

assaultcube trainer

a guest
Jan 23rd, 2021
3,356
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.05 KB | None | 1 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using Memory;
  11.  
  12. namespace trainerforassaultcube
  13. {
  14.     public partial class Form1 : Form
  15.     {
  16.         Mem meme = new Mem();
  17.  
  18.         // "ac_client.exe"+0010F4F4 + 13C
  19.  
  20.         string ammoAddress = "ac_client.exe+0x0010F4F4,13C";
  21.         public Form1()
  22.         {
  23.             InitializeComponent();
  24.         }
  25.  
  26.         private void Form1_Load(object sender, EventArgs e)
  27.         {
  28.             int PID = meme.GetProcIdFromName("ac_client");
  29.             if (PID > 0)
  30.             {
  31.                 meme.OpenProcess(PID);
  32.                 timer1.Start();
  33.             }
  34.         }
  35.  
  36.         private void timer1_Tick(object sender, EventArgs e)
  37.         {
  38.             if (checkBox1.Checked)
  39.             {
  40.                 meme.WriteMemory(ammoAddress, "int", "9999999");
  41.                
  42.             }
  43.            
  44.         }
  45.     }
  46. }
  47.  
Advertisement
Add Comment
Please, Sign In to add comment