Advertisement
Tema2021

CS:GO main lua AIMWARE.net

Oct 23rd, 2022 (edited)
5,443
2
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.68 KB | None | 2 0
  1. print("Tema2021 + Verieth lua loaded ")
  2.  
  3. local clyde_script_tab = gui.Tab(gui.Reference("Settings"), "clyde_script_tab", "Clyde Script");
  4.  
  5. local keybinds = gui.Checkbox(clyde_script_tab, "keybinds", "Enable Keybinds", false);
  6. local watermark = gui.Checkbox(clyde_script_tab, "watermark", "Enable Watermark", false);
  7.  
  8. local ui_color = gui.ColorPicker(clyde_script_tab, "ui_color", "UI color", 125, 125, 230)
  9.  
  10. local aspect_ratio = gui.Slider(clyde_script_tab, "aspect_ratio", "Aspect Ratio", 0, 0, 3, 0.05)
  11.  
  12. gui.Text(clyde_script_tab, "\n\n")
  13. local checkbox_buybot = gui.Checkbox(clyde_script_tab, "Checkbox", "BuyBot Active", false)
  14. local primary_guns = gui.Combobox(clyde_script_tab, "primary", "Primary", "Off", "Scar-20 | G3SG1","AK47 | M4A1", "SSG-08", "AWP", "SG553 | AUG")
  15. local secondary_guns = gui.Combobox(clyde_script_tab, "Secondary", "Secondary", "Off", "Dual Berettas", "Deagle | Revolver", "P250","TEC-9 | CZ75-Auto" )
  16. local k_armor = gui.Checkbox(clyde_script_tab, "k_armor", "Buy Kevlar + Armor", false)
  17. local armor = gui.Checkbox(clyde_script_tab, "armor", "Buy Armor", false)
  18. local nades = gui.Checkbox(clyde_script_tab, "nades", "Buy Nades", false)
  19. local buybot_zeus = gui.Checkbox(clyde_script_tab, "zeus", "Buy Zeus", false)
  20. local defuser = gui.Checkbox(clyde_script_tab, "defuser", "Buy Defuser", false)
  21. local weapons_ = {"pistol", "revolver", "smg", "rifle", "shotgun", "scout", "autosniper", "sniper", "lmg"}
  22. local hitboxes_ = {"head", "neck", "chest", "stomach", "pelvis", "arms", "legs"}
  23. local primary_w = {"buy scar20", "buy m4a1", "buy ssg08", "buy awp", "buy aug"}
  24. local secondary_w = {"buy elite", "buy deagle", "buy p250", "buy tec9"}
  25.  
  26. --render
  27. rect = function( x, y, w, h, col )
  28. draw.Color( col[1], col[2], col[3], col[4] );
  29. draw.FilledRect(x, y, x + w, y + h)
  30. end
  31.  
  32. gradient = function( x, y, w, h, col1, col2, is_vertical )
  33. rect( x, y, w, h, col1 );
  34.  
  35. local r, g, b = col2[1], col2[2], col2[3];
  36.  
  37. if is_vertical then
  38. for i = 1, h do
  39. local a = i / h * 255;
  40. rect( x, y + i, w, 1, { r, g, b, a } );
  41. end
  42. else
  43. for i = 1, w do
  44. local a = i / w * 255;
  45. rect( x + i, y, 1, h, { r, g, b, a } );
  46. end
  47. end
  48. end
  49.  
  50. local handler_variables =
  51. {
  52. weapon_group = {pistol = {2, 3, 4, 30, 32, 36, 61, 63},
  53. sniper = {9},
  54. scout = {40},
  55. hpistol = {1, 64},
  56. smg = {17, 19, 23, 24, 26, 33, 34},
  57. rifle = {60, 7, 8, 10, 13, 16, 39},
  58. shotgun = {25, 27, 29, 35},
  59. asniper = {38, 11},
  60. lmg = {28, 14},
  61. zeus = {31}
  62. },
  63. fps = 0,
  64. ping = 0,
  65. server_ip = 0,
  66. tickrate_updated = false,
  67. tickrate = client.GetConVar("sv_maxcmdrate"),
  68. server = "",
  69. user_name = cheat.GetUserName(),
  70. local_entity,
  71. }
  72.  
  73. --script variable
  74. local color_r, color_g, color_b, color_a;
  75. local mouseX, mouseY, x, y, dx, dy, w, h = 0, 0, 128, 290, 0, 0, 60, 60;
  76. local shouldDrag = false;
  77. local font = draw.CreateFont("Verdana", 12, 12);
  78. local topbarSize = 23;
  79. local imgRGBA, imgWidth, imgHeight = common.DecodePNG( svgData );
  80. local texture = draw.CreateTexture( imgRGBA, imgWidth, imgHeight );
  81.  
  82. local function handlers()
  83. --visuals
  84. color_r, color_g, color_b, color_a = ui_color:GetValue()
  85. handler_variables.fps = 1 / globals.AbsoluteFrameTime()
  86.  
  87. --entities
  88. handler_variables.local_entity = entities.GetLocalPlayer()
  89.  
  90. --local info
  91. if handler_variables.local_entity then
  92. handler_variables.is_scoped = handler_variables.local_entity:GetPropBool("m_bIsScoped")
  93.  
  94. handler_variables.ping = entities:GetPlayerResources():GetPropInt("m_iPing", client.GetLocalPlayerIndex())
  95.  
  96. handler_variables.server_ip = engine.GetServerIP()
  97.  
  98. if handler_variables.server_ip == "loopback" then
  99. handler_variables.server = "localhost"
  100. elseif string.find(handler_variables.server_ip, "A") then
  101. handler_variables.server = "valve"
  102. else
  103. handler_variables.server = handler_variables.server_ip
  104. end
  105.  
  106. if not handler_variables.tickrate_updated then
  107. handler_variables.tickrate = client.GetConVar("sv_maxcmdrate")
  108. handler_variables.tickrate_updated = true
  109. end
  110. else
  111. handler_variables.tickrate_updated = false
  112. end
  113. end
  114.  
  115. local function getWeaponGroup()
  116. if not handler_variables.local_entity or not not handler_variables.local_entity:IsAlive() then
  117. return "shared"
  118. end
  119.  
  120. --get current weapon group
  121. local current_weapon_group = "shared"
  122.  
  123. for group_name, group_weapons in pairs(weapon_group) do
  124. for weapon_id = 1, #group_weapons, 1 do
  125.  
  126. local local_weapon_id = handler_variables.local_entity:GetWeaponID()
  127.  
  128. if local_weapon_id == group_weapons[weapon_id] then
  129. current_weapon_group = group_name
  130.  
  131. break
  132. end
  133. end
  134. end
  135.  
  136. return current_weapon_group
  137. end
  138.  
  139. local function getKeybinds()
  140. local keybinds_array = {};
  141. local i = 1;
  142.  
  143. if gui.GetValue("rbot.master") and getWeaponGroup() ~= "zeus" and
  144. (gui.GetValue("rbot.accuracy.attack.shared.fire") == '"Shift Fire"' or gui.GetValue("rbot.accuracy.attack." .. getWeaponGroup() .. ".fire") == "Shift Fire") then
  145.  
  146. keybinds_array[i] = ' On shot AA';
  147. i = i + 1;
  148. end
  149.  
  150.  
  151.  
  152.  
  153. if gui.GetValue("rbot.master") and cheat.IsFakeDucking() then
  154.  
  155. keybinds_array[i] = ' Fake Duck';
  156. i = i + 1;
  157. end
  158.  
  159. if gui.GetValue("rbot.master") and gui.GetValue("rbot.accuracy.movement.slowkey") ~= 0 and input.IsButtonDown(gui.GetValue("rbot.accuracy.movement.slowkey")) then
  160.  
  161. keybinds_array[i] = ' Slowwalk';
  162. i = i + 1;
  163. end
  164.  
  165.  
  166. if gui.GetValue("esp.master") and gui.GetValue("esp.world.thirdperson") then
  167.  
  168. keybinds_array[i] = ' Thirdperson';
  169. i = i + 1;
  170. end
  171.  
  172. if gui.GetValue("rbot.master") and getWeaponGroup() ~= "zeus" and
  173. (gui.GetValue("rbot.accuracy.attack.shared.fire") == '"Defensive Warp Fire"' or gui.GetValue("rbot.accuracy.attack." .. getWeaponGroup() .. ".fire") == '"Defensive Warp Fire"') then
  174.  
  175. keybinds_array[i] = ' Double shot';
  176. i = i + 1;
  177. end
  178.  
  179.  
  180. return keybinds_array;
  181. end
  182.  
  183. local function drawKeybinds(keybinds_array)
  184. local temp = false;
  185.  
  186. for index in pairs(keybinds_array) do
  187.  
  188. draw.SetFont(font);
  189. draw.Color(0, 0, 0, 200);
  190. draw.Text(x + 13, (y + topbarSize + 5) + (index * 15), keybinds_array[index])
  191. draw.Text(x + 89, (y + topbarSize + 5) + (index * 15), " [ 👍 ] ")
  192.  
  193. draw.SetFont(font);
  194. draw.Color(255, 255, 255, 255);
  195. draw.Text(x + 88, (y + topbarSize + 4) + (index * 15), " [ 👍 ] " )
  196. draw.Text(x + 12, (y + topbarSize + 4) + (index * 15), keybinds_array[index])
  197. end
  198. end
  199.  
  200. local function drawRectFill(r, g, b, a, x, y, w, h, texture)
  201. if (texture ~= nil) then
  202. draw.SetTexture(texture);
  203. else
  204. draw.SetTexture(texture);
  205. end
  206. draw.Color(r, g, b, a);
  207. draw.FilledRect(x, y, x + w, y + h);
  208. end
  209.  
  210. local function dragFeature()
  211. if input.IsButtonDown(1) then
  212. mouseX, mouseY = input.GetMousePos();
  213.  
  214. if shouldDrag then
  215. x = mouseX - dx;
  216. y = mouseY - dy;
  217. end
  218.  
  219. if mouseX >= x and mouseX <= x + w and mouseY >= y and mouseY <= y + h then
  220. shouldDrag = true;
  221. dx = mouseX - x;
  222. dy = mouseY - y;
  223. end
  224. else
  225. shouldDrag = false;
  226. end
  227. end
  228.  
  229. local function drawOutline(r, g, b, a, x, y, w, h, howMany)
  230. for i = 1, howMany do
  231. draw.Color(r, g, b, a);
  232. draw.OutlinedRect(x - i, y - i, x + w + i, y + h + i);
  233. end
  234. end
  235.  
  236. local function drawWindow(keybinds_array)
  237. local h2 = 5 + (#keybinds_array * 15);
  238. local h = h + (#keybinds_array * 15);
  239.  
  240. drawRectFill(color_r, color_g, color_b, color_a, x + 7, y + 21, 121, 1);
  241. drawRectFill(color_r, color_g, color_b, color_a, x + 7, y + 20, 121, 1);
  242. drawRectFill(0, 0, 0, 150, x + 7, y + 22, 121, 17);
  243.  
  244. draw.Color(0, 0, 0, 255);
  245. draw.SetFont(font);
  246. local keytext = "⚔❤ keybinds ❤⚔";
  247. local tW, _ = draw.GetTextSize(keytext);
  248.  
  249. draw.Text(x + 20, y + 26, keytext)
  250.  
  251. draw.Color(255, 255, 255, 255);
  252. draw.SetFont(font);
  253.  
  254. draw.Text(x + 20, y + 26, keytext)
  255.  
  256. draw.Color(255, 255, 255);
  257. draw.SetTexture( texture );
  258. end
  259.  
  260. local function drawWatermark()
  261. if not watermark:GetValue() then
  262. return
  263. end
  264.  
  265. local divider = ' | ';
  266. local cheatName = '❤aimware.net❤ [ v5.1 ]';
  267.  
  268.  
  269. local watermarkText = cheatName .. divider .. handler_variables.user_name .. divider .. "delay: " .. handler_variables.ping .. "ms" .. divider ..
  270. "fps: " .. string.format("%0.1f", handler_variables.fps)
  271.  
  272.  
  273. draw.SetFont(font);
  274. local w, h = draw.GetTextSize(watermarkText);
  275. local weightPadding, heightPadding = 20, 13;
  276. local watermarkWidth = weightPadding + w;
  277. local start_x, start_y = draw.GetScreenSize();
  278. start_x, start_y = start_x - watermarkWidth - 0, start_y * 0.0125;
  279.  
  280. draw.Color(0, 0, 0, 150);
  281. draw.FilledRect(start_x - 10, start_y, start_x + watermarkWidth - 20, start_y -2 + h + heightPadding );
  282.  
  283. draw.Color(0, 0, 0, 255)
  284. draw.Text(start_x + weightPadding /2+4 - 20, start_y + heightPadding / 2 - 1, watermarkText );
  285.  
  286. draw.Color(255,255,255,255);
  287. draw.Text(start_x + weightPadding / 2+4 - 20, start_y + heightPadding / 2 - 1, watermarkText );
  288.  
  289.  
  290. draw.Color(color_r, color_g, color_b, color_a, 255);
  291. draw.FilledRect(start_x - 10, start_y, start_x + watermarkWidth - 20, start_y +2);
  292. end
  293.  
  294. local aspect_ration_cache = client.GetConVar("r_aspectratio");
  295.  
  296. local function setAspectRatio()
  297. if aspect_ration_cache ~= aspect_ratio:GetValue() then
  298. client.SetConVar("r_aspectratio", aspect_ratio:GetValue())
  299. aspect_ration_cache = aspect_ratio:GetValue()
  300. end
  301. end
  302.  
  303. local function Events( event )
  304. if event:GetName() == "round_start" and checkbox_buybot:GetValue() then
  305.  
  306. local needtobuy = ""
  307. local primary = primary_guns:GetValue()
  308. local secondary = secondary_guns:GetValue()
  309.  
  310. if k_armor:GetValue() then needtobuy = "buy vesthelm;"
  311. end
  312.  
  313. if armor:GetValue() then needtobuy = "buy vest;"
  314. end
  315.  
  316. if nades:GetValue() then needtobuy = needtobuy.."buy hegrenade;buy molotov;buy smokegrenade;buy flashbang;buy flashbang;"
  317. end
  318.  
  319. if buybot_zeus:GetValue() then needtobuy = needtobuy.."buy taser;"
  320. end
  321.  
  322. if defuser:GetValue() then needtobuy = needtobuy.."buy defuser;"
  323. end
  324.  
  325. if primary > 0 then needtobuy = needtobuy..primary_w[primary]..";"
  326. end
  327.  
  328. if secondary > 0 then needtobuy = needtobuy..secondary_w[secondary]..";"
  329. end
  330.  
  331. client.Command(needtobuy, false)
  332. end
  333. end
  334. callbacks.Register( "FireGameEvent", Events)
  335.  
  336. callbacks.Register("Draw", function()
  337. handlers()
  338.  
  339. if not handler_variables.local_entity or not handler_variables.local_entity:IsAlive() then return end
  340.  
  341. if keybinds:GetValue() and #getKeybinds() > 0 then
  342. draw.SetTexture( texture );
  343.  
  344. drawWindow(getKeybinds());
  345.  
  346. drawKeybinds(getKeybinds());
  347. dragFeature();
  348. end
  349.  
  350. drawWatermark()
  351.  
  352. setAspectRatio()
  353. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement