Advertisement
Mister_Stefan

Pitch On Key

Aug 26th, 2020
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. UI.AddLabel("kheyPha's pitch key setting thing");
  2. UI.AddLabel("-------------------------------------");
  3.  
  4. UI.AddDropdown("Safe mode [Requiers off to work]", ["Off", "On"]);
  5.  
  6. UI.AddLabel("-------------------------------------");
  7. UI.AddHotkey("Pitch key:");
  8. UI.AddDropdown("If active", ["Off", "Down", "Emotion", "Zero", "Up", "Fake up", "Fake down"]);
  9. UI.AddDropdown("If not active", ["Off", "Down", "Emotion", "Zero", "Up", "Fake up", "Fake down"]);
  10.  
  11. UI.AddLabel("-------------------------------------");
  12. UI.AddSliderInt("x", 0, 1920); // I have to make these better, no time rn
  13. UI.AddSliderInt("y", 0, 1080);
  14.  
  15.  
  16. function Untrust()
  17. {
  18.     UnTrigs = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Safe mode [Requiers off to work]");
  19.    
  20.     UI.SetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions", UnTrigs);
  21.     TrustedMode = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Safe mode [Requiers off to work]")
  22.    
  23.     if ( TrustedMode == 0 )
  24.     {
  25.         xcoord = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "x");
  26.         ycoord = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "y");
  27.        
  28.         aTrigs = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "If active");
  29.         anTrigs = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "If not active");
  30.    
  31.         if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Pitch key:"))
  32.         {    
  33.             UI.SetValue("Anti-aim", "Extra", "Pitch", aTrigs);
  34.             rcolor = 0;
  35.             gcolor = 255;
  36.         }
  37.    
  38.         else if (!UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Pitch key:"))
  39.         {
  40.             UI.SetValue("Anti-aim", "Extra", "Pitch", anTrigs);
  41.             gcolor = 0;
  42.             rcolor = 255;
  43.         }
  44.    
  45.         Render.FilledRect( xcoord, ycoord, 60, 60, [ rcolor, gcolor, 0, 255 ] );
  46.     }
  47.    
  48.     else
  49.     {
  50.         return;
  51.     }
  52. }
  53.  
  54. Cheat.RegisterCallback("Draw", "Untrust");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement