sv_iridescence

Untitled

Mar 28th, 2022 (edited)
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.03 KB | None | 0 0
  1. //Example:
  2.  
  3. /*
  4. Make a new func, and call it whatever, this will be your toggle func, call *the toggle in ur menu*, not the main function.
  5. Create a variable inside the func, i like to keep mine related to the toggle, since im doing an example lets say the variable is
  6. "self.examplevar"
  7. you also need to make a notify variable to tell it when to stop, lets call this same_string_as_notify.
  8.  
  9. follow the example under and you'll probably understand it.
  10. Thread the actual func you want to call and at the top of the func add:
  11. self endon("same_string_as_notify")
  12. */
  13.  
  14.  
  15. lagToggle()
  16. {
  17.     if(!self.fakelag)
  18.     {
  19.         self.fakelag = true; //Our custom variable acts as a way to tell the game we have toggled.
  20.         self iPrintln("Fake Lag: ^5ON" ); //Just killfeed text...
  21.         self thread fakeLag(); //Actual function call
  22.     }
  23.     else
  24.     {
  25.         self.fakelag = false;
  26.         self notify("stoplag"); //This correlates to the "self endon("stoplag") inside of fakeLag();
  27.         self iPrintln("Fake Lag: ^5OFF");
  28.     }
  29. }
Add Comment
Please, Sign In to add comment