Advertisement
Guest User

Manual AA

a guest
Jan 21st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.56 KB | None | 0 0
  1. local gui_set = gui.SetValue;
  2. local gui_get = gui.GetValue;
  3. local LeftKey = 0;
  4. local BackKey = 0;
  5. local RightKey = 0;
  6. local rage_ref = gui.Reference("RAGE", "MAIN", "Anti-Aim Main");
  7. local check_indicator = gui.Checkbox( rage_ref, "Enable", "Manual AA", false)
  8. local AntiAimleft = gui.Keybox(rage_ref, "Anti-Aim_left", "Left Keybind", 0);
  9. local AntiAimRight = gui.Keybox(rage_ref, "Anti-Aim_Right", "Right Keybind", 0);
  10. local AntiAimBack = gui.Keybox(rage_ref, "Anti-Aim_Back", "Back Keybind", 0);
  11.  
  12. local rifk7_font = draw.CreateFont("Verdana", 20, 700)
  13. local damage_font = draw.CreateFont("Verdana", 15, 700)
  14.  
  15. local arrow_font = draw.CreateFont("Marlett", 45, 700)
  16. local normal = draw.CreateFont("Arial")
  17.  
  18. local function main()
  19. if AntiAimleft:GetValue() ~= 0 then
  20. if input.IsButtonPressed(AntiAimleft:GetValue()) then
  21. LeftKey = LeftKey + 1;
  22. BackKey = 0;
  23. RightKey = 0;
  24. end
  25. end
  26. if AntiAimBack:GetValue() ~= 0 then
  27. if input.IsButtonPressed(AntiAimBack:GetValue()) then
  28. BackKey = BackKey + 1;
  29. LeftKey = 0;
  30. RightKey = 0;
  31. end
  32. end
  33. if AntiAimRight:GetValue() ~= 0 then
  34. if input.IsButtonPressed(AntiAimRight:GetValue()) then
  35. RightKey = RightKey + 1;
  36. LeftKey = 0;
  37. BackKey = 0;
  38. end
  39. end
  40. end
  41.  
  42.  
  43. function CountCheck()
  44. if ( LeftKey == 1 ) then
  45. BackKey = 0;
  46. RightKey = 0;
  47. elseif ( BackKey == 1 ) then
  48. LeftKey = 0;
  49. RightKey = 0;
  50. elseif ( RightKey == 1 ) then
  51. LeftKey = 0;
  52. BackKey = 0;
  53. elseif ( LeftKey == 2 ) then
  54. LeftKey = 0;
  55. BackKey = 0;
  56. RightKey = 0;
  57. elseif ( BackKey == 2 ) then
  58. LeftKey = 0;
  59. BackKey = 0;
  60. RightKey = 0;
  61. elseif ( RightKey == 2 ) then
  62. LeftKey = 0;
  63. BackKey = 0;
  64. RightKey = 0;
  65. end
  66. end
  67.  
  68. function SetLeft()
  69. gui_set("rbot_antiaim_stand_real_add", -90);
  70. gui_set("rbot_antiaim_move_real_add", -90);
  71. gui_set("rbot_antiaim_autodir", false);
  72. end
  73.  
  74. function SetBackWard()
  75. gui_set("rbot_antiaim_stand_real_add", 0);
  76. gui_set("rbot_antiaim_move_real_add", 0);
  77. gui_set("rbot_antiaim_autodir", false);
  78. end
  79.  
  80. function SetRight()
  81. gui_set("rbot_antiaim_stand_real_add", 90);
  82. gui_set("rbot_antiaim_move_real_add", 90);
  83. gui_set("rbot_antiaim_autodir", false);
  84. end
  85.  
  86. function SetAuto()
  87. gui_set("rbot_antiaim_stand_real_add", 0);
  88. gui_set("rbot_antiaim_move_real_add", 0);
  89. gui_set("rbot_antiaim_autodir", true);
  90. end
  91.  
  92. function draw_indicator()
  93.  
  94. local active = check_indicator:GetValue()
  95.  
  96. if active then
  97.  
  98.  
  99. local w, h = draw.GetScreenSize();
  100. draw.SetFont(rifk7_font)
  101. if (LeftKey == 1) then
  102. SetLeft();
  103. draw.Color(129, 255, 254, 255);
  104. draw.Text(15, h - 560, "MANUAL");
  105. draw.TextShadow(15, h - 560, "MANUAL");
  106. draw.SetFont(arrow_font)
  107. draw.Text( w/2 - 100, h/2 - 21, "3");
  108. draw.TextShadow( w/2 - 100, h/2 - 21, "3");
  109. draw.SetFont(rifk7_font)
  110. elseif (BackKey == 1) then
  111. SetBackWard();
  112. draw.Color(129, 255, 254, 255);
  113. draw.Text(15, h - 560, "MANUAL");
  114. draw.TextShadow(15, h - 560, "MANUAL");
  115. draw.SetFont(arrow_font)
  116. draw.Text( w/2 - 21, h/2 + 60, "6");
  117. draw.TextShadow( w/2 - 21, h/2 + 60, "6");
  118. draw.SetFont(rifk7_font)
  119. elseif (RightKey == 1) then
  120. SetRight();
  121. draw.Color(129, 255, 254, 255);
  122. draw.Text(15, h - 560, "MANUAL");
  123. draw.TextShadow(15, h - 560, "MANUAL");
  124. draw.SetFont(arrow_font)
  125. draw.Text( w/2 + 60, h/2 - 21, "4");
  126. draw.TextShadow( w/2 + 60, h/2 - 21, "4");
  127. draw.SetFont(rifk7_font)
  128. elseif ((LeftKey == 0) and (BackKey == 0) and (RightKey == 0)) then
  129. SetAuto();
  130. draw.Color(107, 244, 65, 255);
  131. draw.Text(15, h - 560, "AUTO");
  132. draw.TextShadow(15, h - 560, "AUTO");
  133. end
  134. draw.SetFont(normal)
  135. end
  136. end
  137.  
  138. callbacks.Register( "Draw", "main", main);
  139. callbacks.Register( "Draw", "CountCheck", CountCheck);
  140. callbacks.Register( "Draw", "SetLeft", SetLeft);
  141. callbacks.Register( "Draw", "SetBackWard", SetBackWard);
  142. callbacks.Register( "Draw", "SetRight", SetRight);
  143. callbacks.Register( "Draw", "SetAuto", SetAuto);
  144. callbacks.Register( "Draw", "draw_indicator", draw_indicator);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement