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 out 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 27, 2017.

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

    Adrihun Member

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

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    Code (Skript):
    1. command /<command> [<text>] [<text>]:
    2.     permission: skript.op
    3.     trigger:
    4.         add arg-1 to {announcer::*}
    5.                        
    6. every 3 minutes:
    7.     set {_announce} to a random element of {announcer::*}
    8.     broadcast "%{_announce}%"
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    Easy men, look:
    Code (Skript):
    1. variables:
    2.     {announcements::1} = "Welcome to my server!"
    3.     {announcements::2} = "&bAlso supports chat colors!"
    4.     {announcements::3} = "Wtf man!"
    5.     {announcements::4} = "It works nice!"
    6.  
    7. every 1 minutes:
    8.     loop {announcements::*}:
    9.         set {_n} to {_n}+1
    10.         broadcast "%{announcements::%{_n}%}%"
    11.         if {_n} is 5:
    12.             set {_n} to 0
    13.         exit loop
     
    • Agree Agree x 1
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    #4 ShaneBee, Feb 27, 2017
    Last edited by a moderator: Feb 27, 2017
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    Meh, it's possible
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    just add:
    Code (Skript):
    1.     {announcements::1} = "Welcome to my server!"
    2.     {announcements::2} = "&bAlso supports chat colors!"
    3.     {announcements::3} = "Wtf man!"
    4.     {announcements::4} = "It works nice!"
    5.     {announcements::5} = "Example 2!"
    6.  
    I mean: The variable " {announcements::x}" + 1
     
  7. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    in "Options"
    --- Double Post Merged, Feb 27, 2017, Original Post Date: Feb 27, 2017 ---
    Tell @djmanbr, i don't did that code :l
     
Thread Status:
Not open for further replies.

Share This Page

Loading...