Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Example:
- /*
- Make a new func, and call it whatever, this will be your toggle func, call *the toggle in ur menu*, not the main function.
- 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
- "self.examplevar"
- you also need to make a notify variable to tell it when to stop, lets call this same_string_as_notify.
- follow the example under and you'll probably understand it.
- Thread the actual func you want to call and at the top of the func add:
- self endon("same_string_as_notify")
- */
- lagToggle()
- {
- if(!self.fakelag)
- {
- self.fakelag = true; //Our custom variable acts as a way to tell the game we have toggled.
- self iPrintln("Fake Lag: ^5ON" ); //Just killfeed text...
- self thread fakeLag(); //Actual function call
- }
- else
- {
- self.fakelag = false;
- self notify("stoplag"); //This correlates to the "self endon("stoplag") inside of fakeLag();
- self iPrintln("Fake Lag: ^5OFF");
- }
- }
Add Comment
Please, Sign In to add comment