Thread: Script Dump

Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    Jme's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Location
    Balls Deep
    Posts
    1,214
    Reputation
    35
    Thanks
    9,758
    Quote Originally Posted by D4RKST4R115 View Post
    Hey there!! say if I wanted a ON and OFF switch so i can to enable and disable No Fatigue what should the code look like then?


    P.S i know how to enable the No Fatigue in-game I just don't know how to disable it
    Run the same code again but make it false

  2. #17
    D4RKST4R115's Avatar
    Join Date
    Aug 2014
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    Thanks for the reply, but what would I do if I wanted to put it in the same SQF. I can understand of making two different SQF's for enable and disable but how would I enable and disable on the same SQF. Im using a menu and i want to make a No Fatigue enable when I execute it, and disable when I execute it again. It doesn't need to say "No Fatigue ON" or "No Fatigue OFF" in the corner. I just want to know how to enable and disable No Fatigue within the same SQF. Any help with this?

  3. #18
    Jme's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Location
    Balls Deep
    Posts
    1,214
    Reputation
    35
    Thanks
    9,758
    Code:
    if (isNil "JME_FATIGUE_TOGGLE") then {
    	JME_FATIGUE_TOGGLE = 0;
    };
    
    if (JME_FATIGUE_TOGGLE == 0) then {
    	JME_FATIGUE_TOGGLE = 1;
    	hint "No Fatigue";
    	player enableFatigue false;
    } else {
    	JME_FATIGUE_TOGGLE = 0;
    	hint "Fatigue";
    	player enableFatigue true;
    };

  4. The Following User Says Thank You to Jme For This Useful Post:

    wirychair32 (08-23-2014)

  5. #19
    D4RKST4R115's Avatar
    Join Date
    Aug 2014
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    Ahhhhhh ok, thank you for this much appreciated

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Dump!
    By Flawless in forum Spammers Corner
    Replies: 22
    Last Post: 05-21-2017, 02:45 PM
  2. Habbohotel Scripts
    By h0ang in forum General Game Hacking
    Replies: 8
    Last Post: 05-18-2007, 05:19 AM
  3. Script Which Closes Ur Browser On Click
    By AN1MAL in forum Spammers Corner
    Replies: 4
    Last Post: 12-28-2006, 12:39 PM
  4. Replies: 1
    Last Post: 07-05-2006, 06:20 AM
  5. OMG I SO STUCK!!!(Java Script "n" html problem
    By jeremywilms in forum Programming
    Replies: 11
    Last Post: 06-15-2006, 01:23 PM