Solved a

  • 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.
code_language.skript:
command /<command> [<text>] [<text>]:
    permission: skript.op
    trigger:
        add arg-1 to {announcer::*}
                        
every 3 minutes:
    set {_announce} to a random element of {announcer::*}
    broadcast "%{_announce}%"
 
Easy men, look:
code_language.skript:
variables:
    {announcements::1} = "Welcome to my server!"
    {announcements::2} = "&bAlso supports chat colors!"
    {announcements::3} = "Wtf man!"
    {announcements::4} = "It works nice!"
 
every 1 minutes:
    loop {announcements::*}:
        set {_n} to {_n}+1
        broadcast "%{announcements::%{_n}%}%"
        if {_n} is 5:
            set {_n} to 0
        exit loop
 
thx
[doublepost=1488220017,1488219901][/doublepost]
thanks. what do i do if i want to add more announcements lol
just add:
code_language.skript:
    {announcements::1} = "Welcome to my server!"
    {announcements::2} = "&bAlso supports chat colors!"
    {announcements::3} = "Wtf man!"
    {announcements::4} = "It works nice!"
    {announcements::5} = "Example 2!"
I mean: The variable " {announcements::x}" + 1
 
where? i am a skript noob sry
in "Options"
[doublepost=1488221276,1488221241][/doublepost]
also is there a way to make it not show up in console and make it so it doesn't show the same thing 3x ?

Code (Skript):
  1. [18:41:38 INFO]: Welcome to my server!
  2. [18:42:38 INFO]: Welcome to my server!
  3. [18:43:39 INFO]: Welcome to my server!
Tell @djmanbr, i don't did that code :l
 
Status
Not open for further replies.