Advertisement
Guest User

Untitled

a guest
Dec 9th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 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 standingmanual = gui.Checkbox( rage_ref, "Enable", "Include Standing", false)
  9. local standing = standingmanual:GetValue()
  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. local rifk7_font = draw.CreateFont("Verdana", 20, 700)
  14. local damage_font = draw.CreateFont("Verdana", 15, 700)
  15.  
  16. local arrow_font = draw.CreateFont("Marlett", 45, 700)
  17. local normal = draw.CreateFont("Arial")
  18.  
  19. local function main()
  20.  
  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 = 1;
  57. BackKey = 0;
  58. RightKey = 0;
  59. elseif ( BackKey == 2 ) then
  60. LeftKey = 0;
  61. BackKey = 1;
  62. RightKey = 0;
  63. elseif ( RightKey == 2 ) then
  64. LeftKey = 0;
  65. BackKey = 0;
  66. RightKey = 1;
  67. end
  68. end
  69.  
  70. function SetLeft()
  71. gui_set("rbot_antiaim_edge_real_add", -90);
  72. gui_set("rbot_antiaim_move_real_add", -90);
  73. gui_set("rbot_antiaim_autodir", false);
  74.  
  75. if standing then
  76. gui_set("rbot_antiaim_stand_real_add", -90);
  77. end
  78. end
  79.  
  80. function SetBackWard()
  81. gui_set("rbot_antiaim_edge_real_add", 0);
  82. gui_set("rbot_antiaim_move_real_add", 0);
  83. gui_set("rbot_antiaim_autodir", false);
  84. if standing then
  85. gui_set("rbot_antiaim_stand_real_add", 0);
  86. end
  87. end
  88.  
  89. function SetRight()
  90. gui_set("rbot_antiaim_edge_real_add", 90);
  91. gui_set("rbot_antiaim_move_real_add", 90);
  92. gui_set("rbot_antiaim_autodir", false);
  93. if standing then
  94. gui_set("rbot_antiaim_stand_real_add", 90);
  95. end
  96. end
  97.  
  98. function draw_indicator()
  99.  
  100. local active = check_indicator:GetValue()
  101.  
  102. if active then
  103.  
  104.  
  105. local w, h = draw.GetScreenSize();
  106. draw.SetFont(rifk7_font)
  107. if (LeftKey == 1) then
  108. SetLeft();
  109. draw.Color(129, 255, 254, 255);
  110. draw.Text(15, h - 560, "MANUAL");
  111. draw.TextShadow(15, h - 560, "MANUAL");
  112. draw.SetFont(arrow_font)
  113. draw.Text( w/2 - 100, h/2 - 21, "3");
  114. draw.TextShadow( w/2 - 100, h/2 - 21, "3");
  115. draw.SetFont(rifk7_font)
  116. elseif (BackKey == 1) then
  117. SetBackWard();
  118. draw.Color(129, 255, 254, 255);
  119. draw.Text(15, h - 560, "MANUAL");
  120. draw.TextShadow(15, h - 560, "MANUAL");
  121. draw.SetFont(arrow_font)
  122. draw.Text( w/2 - 21, h/2 + 60, "6");
  123. draw.TextShadow( w/2 - 21, h/2 + 60, "6");
  124. draw.SetFont(rifk7_font)
  125. elseif (RightKey == 1) then
  126. SetRight();
  127. draw.Color(129, 255, 254, 255);
  128. draw.Text(15, h - 560, "MANUAL");
  129. draw.TextShadow(15, h - 560, "MANUAL");
  130. draw.SetFont(arrow_font)
  131. draw.Text( w/2 + 60, h/2 - 21, "4");
  132. draw.TextShadow( w/2 + 60, h/2 - 21, "4");
  133. draw.SetFont(rifk7_font)
  134. end
  135. draw.SetFont(normal)
  136. end
  137. end
  138.  
  139. callbacks.Register( "Draw", "main", main);
  140. callbacks.Register( "Draw", "CountCheck", CountCheck);
  141. callbacks.Register( "Draw", "SetLeft", SetLeft);
  142. callbacks.Register( "Draw", "SetBackWard", SetBackWard);
  143. callbacks.Register( "Draw", "SetRight", SetRight);
  144. callbacks.Register( "Draw", "draw_indicator", draw_indicator);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement