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.

scoreboard help

Discussion in 'Skript' started by lordgamadon, Apr 10, 2020.

Thread Status:
Not open for further replies.
  1. lordgamadon

    lordgamadon New Member

    Joined:
    Apr 4, 2020
    Messages:
    8
    Likes Received:
    0
    https://gyazo.com/d33843fdd26726e596c2d0ff645dcf0b

    please help
    then you are a sk legend!!!



    Code (Text):
    1. options:
    2.     max: 60
    3.  
    4. every 3 seconds:
    5.     loop all players:
    6.         set {_prefix:%loop-player%} to "%colored loop-player's prefix%"
    7.         set {_ball} to "%loop-player's balance%"
    8.         replace all "[" with "" in {_prefix:%loop-player%}
    9.         replace all "]" with "" in {_prefix:%loop-player%}
    10.         replace all "(" with "" in {_prefix:%loop-player%}
    11.         replace all ")" with "" in {_prefix:%loop-player%}
    12.         replace all " " with "" in {_prefix:%loop-player%}
    13.         replace all "dollar" with "Kr" in {_ball}
    14.         replace all "dollars" with "Kr" in {_ball}
    15.         wipe loop-player's sidebar
    16.         set name of sidebar of loop-player to "&7&l[&c&lO&7&l]"
    17.         set score "&8&m&m----------------------" in sidebar of loop-player to 11
    18.         set score "&e&l%loop-player%:" in sidebar of loop-player to 10
    19.         set score "&a" in sidebar of loop-player to 9
    20.         set score "&6> &eOnline: &6%number of all players%&e/&6{@max}" in sidebar of loop-player to 2
    21.         set score "&a" in sidebar of loop-player to 7
    22.         set score "&6> &eBal: &6%{_ball}%" in sidebar of loop-player to 6
    23.         set score "&d" in sidebar of loop-player to 3
    24.         set score "&6> &eRank: %{_prefix:%loop-player%}%" in sidebar of loop-player to 8
    25.         set score "&d" in sidebar of loop-player to 5
    26.         set score "&6> &6Kills: %{Kills.%player%}%" in sidebar of loop-player to 3
    27.         set score "&8&m----------------------" in sidebar of loop-player to 0
    28.  
    29.  
    30. on first join:
    31.     set {Kills::%player%} to 0
    32.     set {deaths::%player%} to 0
    33.  
    34.  
    35. on death:
    36.     if attacker is a player:
    37.         add 1 to {Kills.%attacker%}
    38.         add 1 to {deaths.%victim%}
    39.  
    40. if {Kills.%player%} is not set:
    41.     set {Kills.%player%} to 0
     
  2. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    First of all, you cannot do this:

    upload_2020-4-11_18-4-27.png
    You cannot place effects or conditions without having a trigger or event to execute it. This would be the correct thing:

    Code (Skript):
    1.  
    2. on join:
    3.     if {Kills.%player%} is not set:
    4.         set {Kills.%player%} to 0
    And please make the Scoreboard neat.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...