Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gui_set = gui.SetValue;
- local gui_get = gui.GetValue;
- local LeftKey = 0;
- local BackKey = 0;
- local RightKey = 0;
- local rage_ref = gui.Reference( "RAGE", "MAIN","Anti-Aim Main" );
- local AntiAimleft = gui.Keybox( rage_ref, "Anti-Aim_left", "Anti-Aim left", 0 );
- local AntiAimRight = gui.Keybox( rage_ref, "Anti-Aim_Right", "Anti-Aim Right", 0 );
- local AntiAimBack = gui.Keybox( rage_ref, "Anti-Aim_Back", "Anti-AiBack", 0 );
- local function main()
- if AntiAimleft:GetValue()~=0 then
- if input.IsButtonPressed(AntiAimleft:GetValue()) then
- LeftKey = LeftKey + 1;
- BackKey = 0;
- RightKey = 0;
- end
- end
- if AntiAimBack:GetValue()~=0 then
- if input.IsButtonPressed(AntiAimBack:GetValue()) then
- BackKey = BackKey + 1;
- LeftKey = 0;
- RightKey = 0;
- end
- end
- if AntiAimRight:GetValue()~=0 then
- if input.IsButtonPressed(AntiAimRight:GetValue()) then
- RightKey = RightKey + 1;
- LeftKey = 0;
- BackKey = 0;
- end
- end
- end
- function CountCheck()
- if ( LeftKey == 1 ) then
- BackKey = 0;
- RightKey = 0;
- elseif ( BackKey == 1 ) then
- LeftKey = 0;
- RightKey = 0;
- elseif ( RightKey == 1 ) then
- LeftKey = 0;
- BackKey = 0;
- elseif ( LeftKey == 2 ) then
- LeftKey = 0;
- BackKey = 0;
- RightKey = 0;
- elseif ( BackKey == 2 ) then
- LeftKey = 0;
- BackKey = 0;
- RightKey = 0;
- elseif ( RightKey == 2 ) then
- LeftKey = 0;
- BackKey = 0;
- RightKey = 0;
- end
- end
- function SetLeft()
- gui_set("rbot_antiaim_stand_real_add", -90);
- gui_set("rbot_antiaim_move_real_add", -90);
- gui_set("rbot_antiaim_stand_fake_add", 90);
- gui_set("rbot_antiaim_move_fake_add", 90);
- gui_set("rbot_antiaim_autodir", false);
- end
- function SetBackWard()
- gui_set("rbot_antiaim_stand_real_add", 0);
- gui_set("rbot_antiaim_move_real_add", 0);
- gui_set("rbot_antiaim_stand_fake_add", 180);
- gui_set("rbot_antiaim_move_fake_add", 180);
- gui_set("rbot_antiaim_autodir", false);
- end
- function SetRight()
- gui_set("rbot_antiaim_stand_real_add", 90);
- gui_set("rbot_antiaim_move_real_add", 90);
- gui_set("rbot_antiaim_stand_fake_add", -90);
- gui_set("rbot_antiaim_move_fake_add", -90);
- gui_set("rbot_antiaim_autodir", false);
- end
- function SetAuto()
- gui_set("rbot_antiaim_stand_real_add", 0);
- gui_set("rbot_antiaim_move_real_add", 0);
- gui_set("rbot_antiaim_stand_fake_add", -180);
- gui_set("rbot_antiaim_move_fake_add", -180);
- gui_set("rbot_antiaim_autodir", true);
- end
- function draw_indicator()
- local w,h = draw.GetScreenSize();
- if ( LeftKey == 1 ) then
- SetLeft();
- draw.Color(255,255,255,255);
- draw.Text(50,(h/2), "<--Left" );
- elseif ( BackKey == 1 ) then
- SetBackWard();
- draw.Color(255,255,255,255);
- draw.Text(50,(h/2), "^Back^" );
- elseif ( RightKey == 1 ) then
- SetRight();
- draw.Color(255,255,255,255);
- draw.Text(50,(h/2), "Right-->" );
- elseif ((LeftKey == 0) and (BackKey == 0) and (RightKey == 0)) then
- SetAuto();
- draw.Color(255,255,255,255);
- draw.Text(50,(h/2), "<-Auto->" );
- end
- end
- callbacks.Register( "Draw", "main", main);
- callbacks.Register( "Draw", "CountCheck", CountCheck);
- callbacks.Register( "Draw", "SetLeft", SetLeft);
- callbacks.Register( "Draw", "SetBackWard", SetBackWard);
- callbacks.Register( "Draw", "SetRight", SetRight);
- callbacks.Register( "Draw", "SetAuto", SetAuto);
- callbacks.Register( "Draw", "draw_indicator", draw_indicator);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement