Suppress message

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

MomoHD

Member
Nov 23, 2019
18
0
1
26
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
 
Code:
on skript load:
    while true:
        wait 1 hour
        add 1 to {_a}
        if mod({_a},2) is 0:
            broadcast "The Airdrop has landed"
        else:
            broadcast "The Airdrop will land in one hour"
requires a server restart to get it working
 
Status
Not open for further replies.