Jump to content

Toggle


DevLer

Recommended Posts

Guys, so i want to make a dupe server.

So ive got all the scripts right (dupe and 10sec random item giver)...

But only one... and i dont know how to make it.

it is a toggle command

if you type /toggle it stops/starts the 10 sec timer!

here are the other scripts:

dupe:

command /dupe:
    trigger:
        set {_item} to player's tool
        give {_item} to player
        stop

command /dupe2:
    trigger:
        set {_item} to player's tool
        give {_item} to player
        give {_item} to player
        stop

command /dupe3:
    trigger:
        set {_item} to player's tool
        give {_item} to player
        give {_item} to player
        give {_item} to player
        stop

command /dupe4:
    trigger:
        set {_item} to player's tool
        give {_item} to player
        give {_item} to player
        give {_item} to player
        give {_item} to player
        stop

 

heres the 10 sec one:

every 10 seconds:
    loop all players:
        give loop-player 1 of random items out of all items

 

 

can somebody help or tell me the script?

Link to comment
Share on other sites

2 minutes ago, DevLer said:

Guys, so i want to make a dupe server.

So ive got all the scripts right (dupe and 10sec random item giver)...

But only one... and i dont know how to make it.

it is a toggle command

if you type /toggle it stops/starts the 10 sec timer!

here are the other scripts:

dupe:

command /dupe:
    trigger:
        set {_item} to player's tool
        give {_item} to player
        stop

command /dupe2:
    trigger:
        set {_item} to player's tool
        give {_item} to player
        give {_item} to player
        stop

command /dupe3:
    trigger:
        set {_item} to player's tool
        give {_item} to player
        give {_item} to player
        give {_item} to player
        stop

command /dupe4:
    trigger:
        set {_item} to player's tool
        give {_item} to player
        give {_item} to player
        give {_item} to player
        give {_item} to player
        stop

 

heres the 10 sec one:

every 10 seconds:
    loop all players:
        give loop-player 1 of random items out of all items

 

 

can somebody help or tell me the script?

command /toggle:
 trigger:
  player has permission "toggle.use":
   if {rdmtimer} is set:
    delete {rdmtimer}
    send "Turned off"
   else:
    set {rdmtimer} to true
    send "Turned on"
  else:
   send "no perms"



every 10 seconds:
 if {rdmtimer} is set:
  loop all players:
   give loop-player 1 of random items out of all items

 

tumblr_lqahoaPLkC1ql1l0v.gif

Feel free to add me on discord if you:

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with plugins

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with skripts

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need to vent about something

tumblr_lqahoaPLkC1ql1l0v.gif

>[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]<

Link to comment
Share on other sites

  • 4 weeks later...
9 hours ago, Car1oz said:

How do you make it so people without op can use /togge?

command /toggle:
 trigger:
   if {rdmtimer} is set:
    delete {rdmtimer}
    send "Turned off"
   else:
    set {rdmtimer} to true
    send "Turned on"
  else:
   send "no perms"



every 10 seconds:
 if {rdmtimer} is set:
  loop all players:
   give loop-player 1 of random items out of all items

 

imgonline-com-ua-resize-CNNkL1drx5M-removebg-preview.png.d6a8ae8b5eb862005fb056c21f934200.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...