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

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved a

Discussion in 'Skript' started by Adrihun, Feb 24, 2017.

Thread Status:
Not open for further replies.
  1. Adrihun

    Adrihun Member

    Joined:
    Feb 1, 2017
    Messages:
    368
    Likes Received:
    6
    a
     
    #1 Adrihun, Feb 25, 2017
    Last edited: Mar 26, 2017
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Try this

    Code (Skript):
    1. command /shout [<text>]:
    2.     permission: shout.player
    3.     permission message: &cError: No Permission
    4.     trigger:
    5.         if arg-1 is not set:
    6.             send "&cError: Wrong usage"
    7.             stop
    8.         else:
    9.             difference between {_waited.%player%} and now is less than 7 days:
    10.                 set {shout.%player%.lastused} to now
    11.                 broadcast "&9%player% -> &7%colored arg 1%"
    12.                 loop all players:
    13.                     play raw sound "random.click" at loop-player with pitch 0.5 volume 10
    14.                     wait 2 ticks
    15.                     play raw sound "random.click" at loop-player with pitch 0.5 volume 10
    16.                     wait 2 ticks
    17.                     play raw sound "random.click" at loop-player with pitch 0.5 volume 10
    18.                     wait 2 ticks
    19.                     play raw sound "random.click" at loop-player with pitch 0.5 volume 10
    20.                     wait 2 ticks
    21.                     play raw sound "random.click" at loop-player with pitch 0.5 volume 10
    22.                     wait 2 ticks
    23.                     play raw sound "random.click" at loop-player with pitch 0.5 volume 10
    24.                     wait 2 ticks
    25.                     play raw sound "random.click" at loop-player with pitch 0.5 volume 10
    26.                     wait 2 ticks
    27.                     play raw sound "random.click" at loop-player with pitch 0.5 volume 10
    28.                     wait 2 ticks
    29.                     play raw sound "random.click" at loop-player with pitch 0.5 volume 10
    30.                     wait 2 ticks
    31.                     play raw sound "random.click" at loop-player with pitch 0.5 volume 10
    32.                     wait 2 ticks
    33.                     send loop-player title " " with subtitle "%colored arg 1%" for 5 seconds
    34.                     wait 2 ticks
    35.                     play raw sound "random.orb" at loop-player with pitch 0.5 volume 10
    36.                     stop
    37.             else:
    38.                 message "&cError: You can only shout once a week."
    39.                 stop
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
Thread Status:
Not open for further replies.
Loading...