Advertisement
Guest User

indicators v1

a guest
Dec 1st, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. UI.AddCheckbox("Draw indicators");
  2. UI.AddSliderInt("Indicator offset", 1, 100);
  3. function drawFunction(){
  4.     var shouldDraw = UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Draw indicators");
  5.     if (shouldDraw) {
  6.        
  7.         var screen_size = Global.GetScreenSize();
  8.         var x = screen_size[0] / 92
  9.         var y = screen_size[1] - (UI.GetValue("Misc", "JAVASCRIPT", "Script Items","Indicator offset") * 10)
  10.         var keybindArray = [
  11.            
  12.         ];
  13.        
  14.         if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
  15.             keybindArray.push("DUCK")
  16.         }
  17.         if (UI.IsHotkeyActive("Rage", "General", "General", "Safe point override")) {
  18.             keybindArray.push("SP")
  19.         }
  20.         if (UI.IsHotkeyActive("Rage", "Pistol", "Damage", "Minimum damage (on key)")) {
  21.             keybindArray.push("DMG")
  22.         }
  23.         if (UI.IsHotkeyActive("Rage", "Pistol", "Pistol config", "Hitbox override")) {
  24.             keybindArray.push("FB")
  25.         }
  26.         if (UI.IsHotkeyActive("Rage", "Exploits", "Double Tap")) {
  27.             keybindArray.push("DT")
  28.         }
  29.    
  30.         var text_size = 4
  31.        
  32.         for (var i=0;i < keybindArray.length;i++) {
  33.             //Global.Print("STD:" + keybindArray[i][0])
  34.             var textHeight = text_size*5.5
  35.             var y_add = (textHeight * i)
  36.             var clr = [124,195,13,255]
  37.             if (keybindArray[i] == "DMG") {
  38.                 clr = [255,255,255,255]
  39.             }
  40.             if (keybindArray[i] == "SP") {
  41.                 clr = [124,195,13,255]
  42.             }
  43.             if (keybindArray[i] == "FB") {
  44.                 clr = [124,195,13,255]
  45.             }
  46.              if (keybindArray[i] == "DUCK") {
  47.                 clr = [255,255,255,255]
  48.             }
  49.             if (keybindArray[i] == "DT") {
  50.                 clr = [124,195,13,255]
  51.             }
  52.      
  53.             Render.String( x, y - y_add, 0, keybindArray[i], clr,text_size);
  54.         }
  55.     }
  56. }
  57. Global.RegisterCallback("Draw","drawFunction")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement