Jump to content

Another HelpOP [ Configurable ]


ign

Recommended Posts

# Code Below

command /helpop [<text>]:
    trigger:
        if arg-1 is set:
            send "&aA message has been sent to online staff!" to player
            loop all players: 
                if loop-player has permission "staff":
                    send "&b[HelpOP] &7%player% &8» &f%arg-1%" to loop-player

  • I can breathe!

image.jpeg.da6e9ee446cf561d297d7bcc6a704e6d.jpeg

 

Link to comment
Share on other sites

3 hours ago, Wynandus said:

Atleast add an cooldown, otherwise players can spam staff members their chat.

Not sure if this works, but I think it works

command /helpop [<text>]:
    trigger:
        if arg-1 is set:
            if {cooldown::%UUID of player%} is not set:
                send "&aA message has been sent to online staff!" to player
                set {cooldown::%UUID of player%} to true
                wait 600 seconds
                delete {cooldown::%UUID of player%}
                loop all players: 
                    if loop-player has permission "staff":
                        send "&b[HelpOP] &7%player% &8» &f%arg-1%" to loop-player
            else:
                send "&cYou're sending helpop requests too fast!"
        else:
            send "&c/helpop <text>"

Link to comment
Share on other sites

1 minute ago, Motionq said:

Not sure if this works, but I think it works

command /helpop [<text>]:
    trigger:
        if arg-1 is set:
            if {cooldown::%UUID of player%} is not set:
                send "&aA message has been sent to online staff!" to player
                set {cooldown::%UUID of player%} to true
                wait 600 seconds
                delete {cooldown::%UUID of player%}
                loop all players: 
                    if loop-player has permission "staff":
                        send "&b[HelpOP] &7%player% &8» &f%arg-1%" to loop-player
            else:
                send "&cYou're sending helpop requests too fast!"
        else:
            send "&c/helpop <text>"

well you did the wait 600 seconds in the middle of the skript so that means the first half will only run in the begin and the rest after 600 seconds. Just use my helpop skript that i send

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...