ign Posted June 10, 2019 Share Posted June 10, 2019 # 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! Link to comment Share on other sites More sharing options...
Wynandus Posted June 10, 2019 Share Posted June 10, 2019 (edited) Atleast add an cooldown, otherwise players can spam staff members their chat. Edited June 10, 2019 by Wynandus 1 Link to comment Share on other sites More sharing options...
ign Posted June 10, 2019 Author Share Posted June 10, 2019 41 minutes ago, Wynandus said: Atleast add an cooldown, otherwise players can spam staff members their chat. Nah, you can if you want I can breathe! Link to comment Share on other sites More sharing options...
Motionq Posted June 11, 2019 Share Posted June 11, 2019 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 More sharing options...
Wynandus Posted June 11, 2019 Share Posted June 11, 2019 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now