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.

Sending messages to loop-index

Discussion in 'Skript' started by MateoxPL, Jan 14, 2019 at 9:48 AM.

  1. M

    MateoxPL Well-Known Member

    Joined:
    Jan 27, 2018
    Messages:
    69
    Likes Received:
    0
    Hello
    as in the subject I do not know how to send a message to the loop-index and playsound at the loop-index
    here's the script:
    Code (Skript):
    1. every 1 minutes:
    2.     loop {czaspolimorfiitimer::*}:
    3.         remove 1 from {czaspolimorfiitimer::%loop-index%}
    4.         if {czaspolimorfiitimer::%loop-index%} <= 0:
    5.             send " &c&lPolimorfia&8 »&6 Twoja polimorfia &2&lZombie&6 wygasla!" to {czaspolimorfiitimer::%loop-index%::*}
    6.             play raw sound "mob.zombie.remedy" at {czaspolimorfiitimer::%loop-index%::*} with pitch 0.5 volume 1
    7.             delete {czaspolimorfiitimer::%loop-index%}
    8.             execute console command "/undisplayer %loop-index%"
    9.             clear {polimorfiamob::%loop-index%}
    10.             stop
     
  2. DieHollander_

    DieHollander_ Well-Known Member

    Joined:
    Mar 25, 2018
    Messages:
    143
    Likes Received:
    12
    Use
    Code (Skript):
    1. loop-index parsed as player
     
Loading...