Advertisement
Guest User

Untitled

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