Advertisement
tima18

вх кс го

Jul 13th, 2019
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.84 KB | None | 0 0
  1. 2.Начинаем
  2. Объявим переменные:
  3. private static Memory mem; //Расскажу позже
  4. private static int bClient;
  5. public static int oLocalPlayer = 0x00AA66B8;
  6. public static int oEntityList = 0x04AC91B4;
  7. public static int oTeamNum = 0xF0;
  8. public static int oGlowIndex = 0x0000A320;
  9. public static int oGlowObject = 0x04FE3A5C;
  10. public static int oDormant = 0x000000E9;
  11. public static int oHealth = 0x000000FC;
  12. private static int A = 210;
  13. public int ToInt32 { get; }
  14. 2. Линии
  15. private static int adresss;
  16. private struct GlowLunes
  17. {
  18. public float r;
  19. public float g;
  20. public float b;
  21. public float a;
  22. public bool rwo;
  23. public bool rwuo;
  24. }
  25. 3.Пишем это в Main() запись в консоль, все остальное тоже прописываем. что будет дальше пишем туда же
  26. while (!GetDll()) { }
  27. Console.ForegroundColor = ConsoleColor.Yellow; //цвет
  28. Console.WriteLine("\nlol. GG FOR U");
  29. Console.WriteLine("Updated for 01.03.2017");
  30. Console.ForegroundColor = ConsoleColor.Red; //Цвет в консоли
  31. Console.WriteLine("EASY WIN ver.2.0");//Запись
  32. 4.Цвет Команды
  33. while (true)
  34. {
  35. GlowLunes myTeam = new GlowLunes() //wow
  36. {
  37. r = 0,
  38. g = 255,
  39. b = 0,
  40. a = A,
  41.  
  42. rwo = true,
  43. rwuo = false
  44. };
  45. 5.Цвет Врагов
  46. GlowLunes enemyTeam = new GlowLunes()
  47. {
  48. r = 255 ,
  49. g = 0 ,
  50. b = 0,
  51. a = A,
  52.  
  53. rwo = true,
  54. rwuo = false
  55. };
  56. 6.Отрисовка
  57. adresss = bClient + oLocalPlayer;
  58. int LocalPlayer = mem.Read<int>(adresss);
  59.  
  60. adresss = LocalPlayer + oTeamNum;
  61. int PlayerTeam = mem.Read<int>(adresss);
  62.  
  63. adresss = LocalPlayer + oDormant;
  64. if (!mem.Read<bool>(adresss))
  65. {
  66. for (int i = 1; i <= 64; i++)
  67. {
  68. adresss = bClient + oEntityList + (i - 1) * 0x10;
  69. int EntityList = mem.Read<int>(adresss);
  70.  
  71. adresss = EntityList + oTeamNum;
  72. int HisTeam = mem.Read<int>(adresss);
  73.  
  74. adresss = EntityList + oDormant;
  75. if (!mem.Read<bool>(adresss) && HisTeam != 0)
  76. {
  77. adresss = EntityList + oGlowIndex;
  78. int GlowIndex = mem.Read<int>(adresss);
  79.  
  80. adresss = EntityList + oHealth;
  81. float HP = mem.Read<int>(adresss) / 100f;
  82.  
  83. // if (PlayerTeam != HisTeam) //Если хочешь чтобы рисовало ХП то убери коммент
  84. // DrawGlow(GlowIndex, HP);
  85. // else
  86. DrawGlow(GlowIndex, myTeam);
  87. }
  88. }
  89. }
  90. }
  91. }
  92. 7.Получаем процесс csgo
  93. private static bool GetDll()
  94. {
  95. try
  96. {
  97. Process csgo = Process.GetProcessesByName("csgo")[0];
  98. mem = new Memory("csgo");
  99. foreach (ProcessModule module in csgo.Modules)
  100.  
  101. {
  102. if (module.ModuleName == "client.dll")
  103. bClient = (int)module.BaseAddress;
  104. }
  105. return true;
  106. }
  107. catch
  108. {
  109. Console.WriteLine("CSGO dont started");//Если кс не запущена пишет такое
  110. return false;
  111. }
  112. }
  113. 8.Запись в память игры
  114. private static void DrawGlow(int pGlowIn, GlowLunes col) //ezcompile
  115. {
  116. adresss = bClient + oGlowObject;
  117. int GlowObject = mem.Read<int>(adresss);
  118. mem.Write((GlowObject + (pGlowIn * 0x38) + 8), col.r);
  119. mem.Write((GlowObject + (pGlowIn * 0x38) + 4), col.g);
  120. mem.Write((GlowObject + (pGlowIn * 0x38) + 12), col.b);
  121. mem.Write((GlowObject + (pGlowIn * 0x38) + 0x10), col.a);
  122. mem.Write((GlowObject + (pGlowIn * 0x38) + 0x24), col.rwo);
  123. mem.Write((GlowObject + (pGlowIn * 0x38) + 0x25), col.rwuo);
  124. }
  125. //private static void DrawGlow(int pGlowIn, float hp) //Опять же, если хочешь чтобы рисовало здоровье убери коммент
  126. // {
  127. // adresss = bClient + oGlowObject;
  128. // int GlowObject = mem.Read<int> (adresss);
  129. // mem.Write((GlowObject + (pGlowIn * 0x38) + 4), 1 - hp);
  130. // mem.Write((GlowObject + (pGlowIn * 0x38) + 8), hp);
  131. // mem.Write((GlowObject + (pGlowIn * 0x38) + 12), 0);
  132. // mem.Write((GlowObject + (pGlowIn * 0x38) + 0x10), A / 100f);
  133. // mem.Write((GlowObject + (pGlowIn * 0x38) + 0x24), true);
  134. // mem.Write((GlowObject + (pGlowIn * 0x38) + 0x25), true);
  135. }
  136. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement