1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Suppress message

Discussion in 'Skript' started by MomoHD, May 17, 2020.

Thread Status:
Not open for further replies.
  1. MomoHD

    MomoHD Member

    Joined:
    Nov 23, 2019
    Messages:
    18
    Likes Received:
    0
    Hello, I am currently doing an airdrop script and have a small problem.

    Every 2 hours I get the message: "The Airdrop has landed" and every hour before that I get the message: "The Airdrop will land in one hour".

    Now I have done it like this

    every 2 hours:
    broadcast "The Airdrop has landed"

    every 1 hour:
    broadcast "The Airdrop will land in one hour"

    My problem is that the message "The Airdrop will land in one hour" also comes when the Airdrop has landed because the message comes every 1 hour. I wanted to ask if I can make it possible that the message only comes in the half of 2 hours and not when the airdrop has landed
     
  2. Killerz1243

    Killerz1243 Active Member

    Joined:
    Oct 31, 2019
    Messages:
    78
    Likes Received:
    7
    Code (Text):
    1. on skript load:
    2.     while true:
    3.         wait 1 hour
    4.         add 1 to {_a}
    5.         if mod({_a},2) is 0:
    6.             broadcast "The Airdrop has landed"
    7.         else:
    8.             broadcast "The Airdrop will land in one hour"
    requires a server restart to get it working
     
Thread Status:
Not open for further replies.

Share This Page

Loading...