Hello guys I toke this Skript from the internet and modified it my self, I just wanted to add a variable, in this case money, to the player's scoreboard.
I'm new to Skript so I ask u guys how can I make this work
[doublepost=1537441970,1537441821][/doublepost]Its all messed up:
I hope you guys understood what I had in mind
[doublepost=1537444982][/doublepost]the addon Skript Im using are:
Skript
SkQuery
SkRayFall
I'm new to Skript so I ask u guys how can I make this work
code_language.skript:
on join:
wait 3 ticks
wipe player sidebar
set name of sidebar of player to " "
set score "&f&m--------------" in sidebar of player to 15
set score "&7Name: &f%player%" in sidebar of player to 14
set score "" in sidebar of player to 13
set score "&7Money: &f%player's money%" in sidebar of player to 12
set score " " in sidebar of player to 11
set score " " in sidebar of player to 10
set score " " in sidebar of player to 9
set score " " in sidebar of player to 8
set score "&fItqly.g-s.nu" in sidebar of player to 7
while player is online:
set name of sidebar of player to "&f&lServer"
wait 2.5 tick
set name of sidebar of player to "&a&lS&f&lerver"
wait 2.5 tick
set name of sidebar of player to "&2&lS&a&le&f&lrver"
wait 2.5 tick
set name of sidebar of player to "&a&lS&2&le&a&lr&f&lver"
wait 2.5 tick
set name of sidebar of player to "&f&lS&a&le&2&lr&a&lv&f&ler"
wait 2.5 tick
set name of sidebar of player to "&f&lSe&a&lr&2&lv&a&le&f&lr"
wait 2.5 tick
set name of sidebar of player to "&f&lSer&a&lv&2&le&a&lr"
wait 2.5 tick
set name of sidebar of player to "&f&lServ&a&le&2&lr"
wait 2.5 tick
set name of sidebar of player to "&f&lServe&a&lr"
wait 2.5 tick
set name of sidebar of player to "&f&lServer"
wait 2.5 tick
set name of sidebar of player to "&f&lServer"
wait 2.5 tick
set name of sidebar of player to "&f&lServe&a&lr"
wait 2.5 tick
set name of sidebar of player to "&f&lServ&a&le&2&lr"
wait 2.5 tick
set name of sidebar of player to "&f&lSer&a&lv&2&le&a&lr"
wait 2.5 tick
set name of sidebar of player to "&f&lSe&a&lr&2&lv&a&le&f&lr"
wait 2.5 tick
set name of sidebar of player to "&f&lS&a&le&2&lr&a&lv&f&ler"
wait 2.5 tick
set name of sidebar of player to "&a&lS&2&le&a&lr&f&lver"
wait 2.5 tick
set name of sidebar of player to "&2&lS&a&le&f&lrver"
wait 2.5 tick
set name of sidebar of player to "&a&lS&f&lerver"
wait 2.5 tick
set name of sidebar of player to "&f&lServer"
wait 2.5 tick
command /Money <Text> [<Player>] <Text>:
trigger:
if arg 1 is not set:
player has permission "command.money":
send "&7Money: &f%player's money%" to player
else:
send "&7You don't have the permission." to player
if arg 1 is "give":
player has permission "command.money.*":
if arg 2 is not set:
send "&7Specify a player" to player
if arg 2 is set:
if arg 3 is not set:
send "&7Specify the amount" to player
if arg 3 is set:
add %arg 3% to the %arg 2%'s balance
if arg 1 is "take":
player has permission "command.money.*":
if arg 2 is not set:
send "&7Specify the player" to player
if arg 2 is set:
if arg 3 is not set:
send "&7Specify the amount" to player
if arg 3 is set:
remove %arg 3% from %arg 2%'s balance
else:
send "&7Usage: /&aMoney &7[&aGive&7/&aTake&7] [&aPlayer&7] [&aAmount&7]" to player
I hope you guys understood what I had in mind
[doublepost=1537444982][/doublepost]the addon Skript Im using are:
Skript
SkQuery
SkRayFall