Does Run Once or similar exists?

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

    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.

MCDesign

Member
Aug 19, 2017
1
0
0
Dear Forum,

Im making a Battle Royale Server with Gas borders that will shrink over time.

Now i made a Skript that enables On join. But i only want that the first person joins this command triggers.
Is this possible?

If that isn't possible, is it possible to skript that the command may not run more then once at a time?

Thanks for all the help in advance,

Newbie <---
[doublepost=1503139705,1503139669][/doublepost]This is the Skript sofar:

on join:
broadcast "Gas will move in 4 Minutes"
wait 4 minutes
execute console command "/shrink 500 3"
wait 3 minutes
broadcast "Gas will move in 4 Minutes"
wait 4 minutes
execute console command "/shrink 200 2"
wait 2 minutes
broadcast "Gas will move in 3 Minutes"
wait 3 minutes
execute console command "/shrink 100 1"
wait 1 minute
broadcast "Gas will move in 2 Minutes"
wait 2 minutes
execute console command "/shrink 50 1"
wait 1 minute
broadcast "Gas will move in 1 Minute"
wait 1 minute
execute console command "/shrink 25 1"
 
dear. please use next time request help format. and code tags

and yes. there is a way. just set a variables...


code_language.skript:
on join:
    if {Bla} is not set:
         set {Bla} to true
         broadcast "GAS SINK"
 
Or simply use the appropriate event
Code:
on first join:
 
Status
Not open for further replies.