Advertisement
marshyman

CS:GO TriggerBot Code

Aug 22nd, 2017
841
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Diagnostics;
  7. using System.Runtime.InteropServices;
  8.  
  9. namespace sadboy_cheats_esp
  10. {
  11. class Program
  12. {
  13. public static int oLocalPlayer = 0xAA8BBC;
  14. public static int oEntityList = 0x4A85AAC;
  15. public static int oCrossHairID = 0xB294;
  16. public static int oTeam = 0xF0;
  17. public static int oHealth = 0xFC;
  18. public static int oAttack = 0x2EC7E38;
  19. public static int oEntityLoopDistance = 0x2F8C;
  20.  
  21. public static string process = "csgo";
  22. public static int bClient;
  23.  
  24. static void Main(string[] args)
  25. {
  26. VAMemory vam = new VAMemory(process);
  27.  
  28. if (GetModuleAddy())
  29. {
  30. int fAttack = bClient + oAttack;
  31.  
  32. while (true)
  33. {
  34. Console.Clear();
  35. Console.Write("Nothing..", Console.ForegroundColor = ConsoleColor.Red);
  36.  
  37. int address = bClient + oLocalPlayer;
  38. int LocalPlayer = vam.ReadInt32((IntPtr)address);
  39.  
  40. address = LocalPlayer + oTeam;
  41. int MyTeam = vam.ReadInt32((IntPtr)address);
  42.  
  43. address = LocalPlayer + oCrossHairID;
  44. int PlayerInCross = vam.readInt32((IntPtr)address);
  45.  
  46. if (PlayerInCross > 0 && PlayerInCross < 65)
  47. {
  48. address = bClient + oEntityList + (PlayerInCross - 1) * oEntityLoopDistance;
  49. int PtrToPIC = vam.ReadInt32((IntPtr)address);
  50.  
  51. address = PtrToPIC + oHealth;
  52. int PICHealth = vam.ReadInt32((IntPtr)address);
  53.  
  54. address = PtrToPIC + oTeam;
  55. int PICTeam = vam.ReadInt32((IntPtr)address);
  56.  
  57. if ((PICTeam != MyTeam) && (PICTeam > 1) && (PICHealth > 0))
  58. {
  59. Console.Clear();
  60. Console.Write("Attacking!", Console.ForegroundColor = ConsoleColor.Green);
  61. vam.WriteInt32((IntPtr)fAttack, 1);
  62. Thread.Sleep(1);
  63. vam.WriteInt32((IntPtr)fAttack, 4);
  64. }
  65. }
  66. Thread.Sleep(10);
  67. }
  68. }
  69. }
  70. }
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement