(SOLVED) Making scoreboards?

Discussion in 'Skript' started by Redblock6, Jul 8, 2019.

Thread Status:
Not open for further replies.
  1. Hello,
    I was wondering how I would make a scoreboard when a staff member types a command? That scoreboard will also be seen by everybody in a world (event).

    Thanks,
    Redblock6
     
    • Like Like x 1
  2. Code (Text):


    command /togglescoreboard [<text>]:
        aliases: scoreboard
        permission: command.togglescoreboard
        trigger:
            if {scoreboard} is not set:
                set {scoreboard} to true
                message "&aScoreboard enabled!"
            else:
                delete {scoreboard}
                message "&cScoreboard disabled."


    every second:
        loop all players:
            wipe loop-player's sidebar
            if {scoreboard} is set:
                set name of sidebar  of loop-player to "Scoreboard"
                set score "&7&m---------------" in sidebar of loop-player to 2
                set score "&6&lEvent Board" in sidebar of loop-player to 1
                set score "&7&m---------------&r" in sidebar of loop-player to 0
     
    • Informative Informative x 2
  3. http://prntscr.com/ocd92z
     
    • Informative Informative x 1
  4. Code (YAML):
    command /togglescoreboard [<text>]:
        aliases
    : scoreboard
        permission
    : command.togglescoreboard
        trigger
    :
            if arg 1 is "on"
    :
               set {scoreboard} to true
                message "&aScoreboard enabled!"
            else if arg 1 is "off"
    :
               set {scoreboard} to false
                message "&cScoreboard disabled."


    every second
    :
        if {scoreboard} is true
    :
            loop all players
    :
               wipe loop-player's sidebar
                set name of sidebar of loop-player to "Scoreboard"
                set score "&7&m---------------" in sidebar of loop-player to 2
                set score "&6&lEvent Board" in sidebar of loop-player to 1
                set score "&7&m---------------&r" in sidebar of loop-player to 0
        else if {scoreboard} is false
    :
            loop all players
    :
               delete loop-player's sidebar
     
    this is 100 working!
     
    #4 R3back, Jul 9, 2019
    Last edited: Jul 9, 2019
    • Winner Winner x 1
  5. No it's not. You even have indentation errors.
    Parser doesn't have every addon, test it on your own server with skRayFall
     
    • Informative Informative x 1
  6. I did that but there was a error:
    http://prntscr.com/oco4oh
     
    • Informative Informative x 1
  7. My Skript is 100 workable only you can need Skript and Skquery to use ,You Only need replace the space tabs ,but my plugin is 100 workly on my server
     
    #8 R3back, Jul 9, 2019
    Last edited: Jul 9, 2019
  8. I did that, but now its mixed in with another scoreboard. How would I make a scoreboard right when a player switches to the world called "event"?
     
  9. Code (YAML):

    every second
    :
            loop all players
    :
                   if "%loop-player's world%" is "event":
                         wipe loop-player's sidebar
                         set name of sidebar of loop-player to "Scoreboard"
                         set score "&7&m---------------" in sidebar of loop-player to 2
                         set score "&6&lEvent Board" in sidebar of loop-player to 1
                         set score "&7&m---------------&r" in sidebar of loop-player 0
       
    If you have tab errors put again the tab spaces ,I'm writing in Mobile.
    Or if you want to that the scoreboard appear when a player change of world replace "every a second:" for "On Teleport:"
     
    #10 R3back, Jul 10, 2019
    Last edited: Jul 10, 2019
  10. I recommend to use Skore addon, it is best for scoreboards (much better than everything else I tried and I have tried 6 different scoreboard systems so far)
     
    • Agree Agree x 1
  11. Hey there,
    I did this, and I added some more lines of the scoreboard and it is working perfectly, but I was wondering how would I do spaces in between lines?

    Here is my scorebaord code:
    Code (Text):
    every second:
            loop all players:
                    if "%loop-player's world%" is "event":
                            wipe loop-player's sidebar
                            set name of sidebar of loop-player to "&b&lEVENT WORLD"
                            set score "&f" in sidebar of loop-player to 8
                            set score "&fCurrent events being hosted:" in sidebar of loop-player to 7
                            set score "&cLook in chat" in sidebar of loop-player to 6
                            set score "&f" in sidebar of loop-player to 5
                            set score "&fGet back to &6&lKITPVP &fusing:" in sidebar of loop-player to 4
                            set score "&a/warp season2" in sidebar of loop-player to 3
                            set score "&f" in sidebar of loop-player to 2
                            set score "&emcredblock.mcph.co" in sidebar of loop-player to 1
     
  12. add other line between the lines that you want like this:
    Code (YAML):
    set score "&e      " in sidebar of loop-player to 1
     
  13. make lines unique, like &f&f &f &f&r etc, because same lines cannot be shown, but again don't use that addon, use Skore
    also you can use loop all players in world "event":
     
  14. Im already using Skore
     
  15. well the syntax seems to be of different addon
     
  16. I tried both of those but the scoreboard still shows up like this:
    http://prntscr.com/oepeng

    My code:
    Code (Text):
    every second:
            loop all players:
                    if "%loop-player's world%" is "event":
                            wipe loop-player's sidebar
                            set name of sidebar of loop-player to "&b&lEVENT WORLD"
                            set score "&e&l      " in sidebar of loop-player to 11
                            set score "&fOur manual events:" in sidebar of loop-player to 10
                            set score "&a&lSLIME KINGS BATTLE" in sidebar of loop-player to 9
                            set score "&c&lSIMON SAYS" in sidebar of loop-player to 8
                            set score "&a&lTRUE &fOR &c&lFALSE" in sidebar of loop-player to 7
                            set score "&6&lHORSE RACING" in sidebar of loop-player to 6
                            set score "&e&l      " in sidebar of loop-player to 5
                            set score "&fGet back to &6&lKITPVP &fusing:" in sidebar of loop-player to 4
                            set score "&a/warp season2" in sidebar of loop-player to 3
                            set score "&e&l      " in sidebar of loop-player to 2
                            set score "&emcredblock.mcph.co" in sidebar of loop-player to 1
     
  17. well the lines still aren't unique, look at "&e&l " parts
     
  18. ?
     
  19. you need to make the string unique, not only ID, so if you have one &e&l, have other line as &b&l for example
     
Thread Status:
Not open for further replies.