Advertisement
ZernaxLeDozo

Untitled

Nov 18th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 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.  
  7. local rage_ref = gui.Reference( "RAGE", "MAIN","Anti-Aim Main" );
  8. local AntiAimleft = gui.Keybox( rage_ref, "Anti-Aim_left", "Anti-Aim left", 0 );
  9. local AntiAimRight = gui.Keybox( rage_ref, "Anti-Aim_Right", "Anti-Aim Right", 0 );
  10. local AntiAimBack = gui.Keybox( rage_ref, "Anti-Aim_Back", "Anti-AiBack", 0 );
  11. local function main()
  12. if AntiAimleft:GetValue()~=0 then
  13. if input.IsButtonPressed(AntiAimleft:GetValue()) then
  14. LeftKey = LeftKey + 1;
  15. BackKey = 0;
  16. RightKey = 0;
  17. end
  18. end
  19. if AntiAimBack:GetValue()~=0 then
  20. if input.IsButtonPressed(AntiAimBack:GetValue()) then
  21. BackKey = BackKey + 1;
  22. LeftKey = 0;
  23. RightKey = 0;
  24.  
  25. end
  26. end
  27. if AntiAimRight:GetValue()~=0 then
  28. if input.IsButtonPressed(AntiAimRight:GetValue()) then
  29. RightKey = RightKey + 1;
  30. LeftKey = 0;
  31. BackKey = 0;
  32. end
  33. end
  34.  
  35. end
  36.  
  37. function CountCheck()
  38. if ( LeftKey == 1 ) then
  39. BackKey = 0;
  40. RightKey = 0;
  41. elseif ( BackKey == 1 ) then
  42. LeftKey = 0;
  43. RightKey = 0;
  44. elseif ( RightKey == 1 ) then
  45. LeftKey = 0;
  46. BackKey = 0;
  47. elseif ( LeftKey == 2 ) then
  48. LeftKey = 0;
  49. BackKey = 0;
  50. RightKey = 0;
  51. elseif ( BackKey == 2 ) then
  52. LeftKey = 0;
  53. BackKey = 0;
  54. RightKey = 0;
  55. elseif ( RightKey == 2 ) then
  56. LeftKey = 0;
  57. BackKey = 0;
  58. RightKey = 0;
  59. end
  60. end
  61.  
  62. function SetLeft()
  63. gui_set("rbot_antiaim_stand_real_add", -90);
  64. gui_set("rbot_antiaim_move_real_add", -90);
  65. gui_set("rbot_antiaim_stand_fake_add", 90);
  66. gui_set("rbot_antiaim_move_fake_add", 90);
  67. gui_set("rbot_antiaim_autodir", false);
  68. end
  69.  
  70. function SetBackWard()
  71. gui_set("rbot_antiaim_stand_real_add", 0);
  72. gui_set("rbot_antiaim_move_real_add", 0);
  73. gui_set("rbot_antiaim_stand_fake_add", 180);
  74. gui_set("rbot_antiaim_move_fake_add", 180);
  75. gui_set("rbot_antiaim_autodir", false);
  76. end
  77.  
  78. function SetRight()
  79. gui_set("rbot_antiaim_stand_real_add", 90);
  80. gui_set("rbot_antiaim_move_real_add", 90);
  81. gui_set("rbot_antiaim_stand_fake_add", -90);
  82. gui_set("rbot_antiaim_move_fake_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_stand_fake_add", -180);
  90. gui_set("rbot_antiaim_move_fake_add", -180);
  91. gui_set("rbot_antiaim_autodir", true);
  92. end
  93.  
  94. function draw_indicator()
  95. local w,h = draw.GetScreenSize();
  96.  
  97. if ( LeftKey == 1 ) then
  98. SetLeft();
  99. draw.Color(255,255,255,255);
  100. draw.Text(50,(h/2), "<--Left" );
  101. elseif ( BackKey == 1 ) then
  102. SetBackWard();
  103. draw.Color(255,255,255,255);
  104. draw.Text(50,(h/2), "^Back^" );
  105. elseif ( RightKey == 1 ) then
  106. SetRight();
  107. draw.Color(255,255,255,255);
  108. draw.Text(50,(h/2), "Right-->" );
  109. elseif ((LeftKey == 0) and (BackKey == 0) and (RightKey == 0)) then
  110. SetAuto();
  111. draw.Color(255,255,255,255);
  112. draw.Text(50,(h/2), "<-Auto->" );
  113. end
  114. end
  115.  
  116. callbacks.Register( "Draw", "main", main);
  117. callbacks.Register( "Draw", "CountCheck", CountCheck);
  118. callbacks.Register( "Draw", "SetLeft", SetLeft);
  119. callbacks.Register( "Draw", "SetBackWard", SetBackWard);
  120. callbacks.Register( "Draw", "SetRight", SetRight);
  121. callbacks.Register( "Draw", "SetAuto", SetAuto);
  122. callbacks.Register( "Draw", "draw_indicator", draw_indicator);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement