Sending messages to loop-index

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

MateoxPL

Active Member
Jan 27, 2018
116
0
0
25
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_language.skript:
every 1 minutes:
    loop {czaspolimorfiitimer::*}:
        remove 1 from {czaspolimorfiitimer::%loop-index%}
        if {czaspolimorfiitimer::%loop-index%} <= 0:
            send " &c&lPolimorfia&8 »&6 Twoja polimorfia &2&lZombie&6 wygasla!" to {czaspolimorfiitimer::%loop-index%::*}
            play raw sound "mob.zombie.remedy" at {czaspolimorfiitimer::%loop-index%::*} with pitch 0.5 volume 1
            delete {czaspolimorfiitimer::%loop-index%}
            execute console command "/undisplayer %loop-index%"
            clear {polimorfiamob::%loop-index%}
            stop
 
Status
Not open for further replies.