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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Please post the code here, do not in a external page
options:
P: &7&l[&4&lTwo&c&lHit&7&l] &8»
command /twohit [<text>] [<offlineplayer>]:
trigger:
if arg-1 is "setspawn":
if player has permission "twohit.admin":
set {twohit.spawn} to location of player
send "{@P} &7Du hast den &9Spawn von &4Two&cHit &7gesetzt!" to player
if arg-1 is "setlobby":
if player has permission "twohit.admin":
set {twohit.lobby} to location of player
send "{@P} &7Du hast die &9Lobby von &4Two&cHit &7gesetzt!" to player
if arg-1 is "ressetingstats"
if arg-2 is not set:
set {TwoHit.Deaths.%player%} to 0
set {TwoHit.Kills.%player%} to 0
set {TwoHit.Killstreak.%player%} to 0
send "{@P} &7Du hast &aerfolgreich &7deine Stats ressetet!" to player
if arg-2 is set:
if player has permission "twohit.admin":
set {TwoHit.Deaths.%arg-2%} to 0
set {TwoHit.Kills.%arg-2%} to 0
set {TwoHit.Killstreak.%arg-2%} to 0
send "{@P} &7Du hast &aerfolgreich &7die Stats von &e%arg-2% &7ressetet!" to player
if arg-1 is "statsresetfrage":
open chest 3 rows named "&8» &c&lStatsreset" to player
wait 1 tick
format slot 5 of player with iron chestplate named "&8» &c&lStatsreset" with lore "&8» &7Willst du wirklich || &7deine Stats resseten?" to unstealable
format slot 13 of player with dye:10 named "&8» &a&lResseten" with lore "&8» &7Linksklick zum &cresseten" to close then run [execute player command "twohit ressetingstats"]
format slot 14 of player with dye:10 named "&8» &a&lResseten" with lore "&8» &7Linksklick zum &cresseten" to close then run [execute player command "twohit ressetingstats"]
format slot 15 of player with dye:1 named "&8» &c&lAbbrechen" with lore "&8» &7Linksklick zum &cabbrechen" to close
format slot 16 of player with dye:1 named "&8» &c&lAbbrechen" with lore "&8» &7Linksklick zum &cabbrechen" to close
if arg-1 is "stats":
if arg-2 is not set:
open chest with 3 rows named "&8» &9&lStats" to player
wait 1 tick
format slot 13 of player with iron sword named "&8» &eKills" with lore "&7%{TwoHit.Deaths.%player%}%" to be unstealable
format slot 15 of player with tallgrass named "&8» &cStatsreset" with lore "&7Resette deine Stats" to close then run [execute player command "twohit statsresetfrage"]
format slot 17 of player with gold chestplate named "&8» &bTode" with lore "&7%{TwoHit.Deaths.%player%}%" to be unstealable
if arg-2 is set:
open chest with 3 rows named "&8» &9&lStats" to player
wait 1 tick
format slot 14 of player with iron sword named "&8» &eKills" with lore "&7%{TwoHit.Deaths.%arg-2%}%" to be unstealable
format slot 16 of player with gold chestplate named "&8» &bTode" with lore "&7%{TwoHit.Deaths.%arg-2%}%" to be unstealable
if arg-1 is "join":
if {joined.%player%} is true:
send "{@P} &7Du bist bereits in &4Two&cHit" to player
stop trigger
if {joined.%player%} is false:
teleport player to {twohit.spawn}
give player wooden sword named "&4Two&cHitter" of sharpness ####################
send "{@P} &7Willkommen in &4Two&cHit" to player
if arg-1 is not set:
if player has permission "twohit.admin":
send "&7----===&4&lTwo&c&lHit&7===----" to player
send "{@P} &f/ffa join" to player
send "{@P} &f/ffa stats [Spieler]" to player
send "{@P} &f/ffa setspawn" to player
send "{@P} &f/ffa setlobby" to player
send "&7----===&4&lTwo&c&lHit&7===----" to player
else:
send "&7----===&4&lTwo&c&lHit&7===----" to player
send "{@P} &f/ffa join" to player
send "{@P} &f/ffa stats [Spieler]" to player
send "&7----===&4&lTwo&c&lHit&7===----" to player
if arg-1 is "help":
if player has permission "twohit.admin":
send "&7----===&4&lTwo&c&lHit&7===----" to player
send "{@P} &f/ffa join" to player
send "{@P} &f/ffa stats [Spieler]" to player
send "{@P} &f/ffa setspawn" to player
send "{@P} &f/ffa setlobby" to player
send "&7----===&4&lTwo&c&lHit&7===----" to player
else:
send "&7----===&4&lTwo&c&lHit&7===----" to player
send "{@P} &f/ffa join" to player
send "{@P} &f/ffa stats [Spieler]" to player
send "&7----===&4&lTwo&c&lHit&7===----" to player
on join:
set join message to "&7"
set {online.players} to number of all players
set {joined.%player%} to false
teleport player to {twohit.lobby}
set {TwoHit.Killstreak.%player%} to 0
on join:
clear players inventory
wait 1 second
on quit:
set quit message to "&7"
remove 1 from {online.players}
on damage:
damage cause is fall:
cancel the event
Every 1 seconds:
loop all players:
if {joined.%loop-player%} is true:
set action bar of loop-player to "&8● &7Teams &cverboten! &8●"
stop
else:
send player title "&7" with subtile "&9/ffa" to player
stop trigger
on death:
if {TwoHit.Killstreak.%attacker%} is "5":
broadcast "{@P} &e%attacker% &7hat einen &4 5er Killstreak!"
if {TwoHit.Killstreak.%attacker%} is "10":
broadcast "{@P} &e%attacker% &7hat einen &4 10er Killstreak!"
if {TwoHit.Killstreak.%attacker%} is "15":
broadcast "{@P} &e%attacker% &7hat einen &4 15er Killstreak!"
if {TwoHit.Killstreak.%attacker%} is "20":
broadcast "{@P} &e%attacker% &7hat einen &4 10er Killstreak!"
if {TwoHit.Killstreak.%attacker%} is "25":
broadcast "{@P} &e%attacker% &7hat einen &4 25er Killstreak!"
if {TwoHit.Killstreak.%attacker%} is "50":
broadcast "{@P} &e%attacker% &7hat einen &450er Killstreak!"
if {TwoHit.Killstreak.%attacker%} is "75":
broadcast "{@P} &e%attacker% &7hat einen &475er Killstreak!"
if {TwoHit.Killstreak.%attacker%} is "76":
kick the attacker due to "&cVerdacht auf Hacking"
set leave message to ""
on death:
loop drops:
clear drops
victim is a player:
add 1 to {TwoHit.Deaths.%victim%}
set [TwoHit.Killstreak.%victim%} to 0
attacker is a player:
add 1 to {TwoHit.Kills.%attacker%}
add 1 to {TwoHit.Killstreak.%attacker%}
set the death message to "&7"
give attacker ender pearl
heal attacker by 20 hearts
on respawn:
every 2 seconds:
loop all players:
if {TwoHit.Kills.%loop-player%} is not set:
set {TwoHit.Kills.%loop-player%} to 0
if {TwoHit.Deaths.%loop-player%} is not set:
set {TwoHit.Deaths.%loop-player%} to 0
if {TwoHit.Killstreak.%loop-player%} is not set:
set {TwoHit.Killstreak.%loop-player%} to 0
on weather change to rain or thunder:
cancel event
on hunger metre change:
cancel event
on break:
if player has permission "twohit.admin":
stop
else:
cancel event
on place:
if player has permission "twohit.admin":
stop
else:
cancel event
on drop:
if player has permission "twohit.admin":
stop
else:
cancel event
on join:
set tab header to "%nl% &7&l[&4&lTwo&c&lHit&7&l] %nl%" and footer to "%nl% &7Onlinespieler: &6%{online.players}% %nl%" for player
on join:
if player has permission "tag.admin":
set player's tag to "&8[&4Admin&8] &4"
stop
if player has permission "tag.dev":
set player's tag to "&8[&bDev&8] &b"
stop
if player has permission "tag.srmod":
set player's tag to "&8[&cSrMod&8] &c"
stop
if player has permission "tag.mod":
set player's tag to "&8[&2Mod&8] &2"
stop
if player has permission "tag.sup":
set player's tag to "&8[&aSup&8] &a"
stop
if player has permission "tag.builder":
set player's tag to "&8[&eBuilder&8] &e"
stop
if player has permission "tag.youtuber":
set player's tag to "&8[&5YTer&8] &5"
stop
if player has permission "tag.premium":
set player's tag to "&8[&6Premium&8]"
stop
if player has permission "tag.spieler":
set player's tag to "&8[&7Spieler&8]"
stop
every 30 ticks:
loop all players:
wipe loop-player's sidebar
set name of sidebar of loop-player to "&7-=&4&lTwo&c&lHit&7=-"
set score "&7 " in sidebar of loop-player to 10
set score "&fDeine Kills: " in sidebar of loop-player to 9
set score "&8➟ &7%{TwoHit.Kills.%loop-player%}%" in sidebar of loop-player to 8
set score "&7 " in sidebar of loop-player to 7
set score "&fDeine Tode" in sidebar of loop-player to 6
set score "&8➟ &7%{TwoHit.Deaths.%loop-player%}%" in sidebar of loop-player to 5
set score "&7 " in sidebar of loop-player to 4
set score "&fDein Killstreak:" in sidebar of loop-player to 3
set score "&8➟ &7%{TwoHit.Killstreak.%loop-player%}%" in sidebar of loop-player to 2
set score "&7 " in sidebar of loop-player to 1
InsertHow i do this?
[CODE=SKRIPT]your code inside of the "code" and to close this, put [/ CODE] without space
[21:56:03 ERROR]: indentation error: expected 8 spaces, but found 2 tabs (TwoHit.sk, line 132: add 1 to {TwoHit.Deaths.%victim%}')
[21:56:03 ERROR]: indentation error: expected 8 spaces, but found 2 tabs (TwoHit.sk, line 133: set [TwoHit.Killstreak.%victim%} to 0')
[21:56:03 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (TwoHit.sk, line 131: victim is a player:')
[21:56:03 ERROR]: indentation error: expected 8 spaces, but found 2 tabs (TwoHit.sk, line 135: add 1 to {TwoHit.Kills.%attacker%}')
[21:56:03 ERROR]: indentation error: expected 8 spaces, but found 2 tabs (TwoHit.sk, line 136: add 1 to {TwoHit.Killstreak.%attacker%}')
[21:56:03 ERROR]: indentation error: expected 8 spaces, but found 2 tabs (TwoHit.sk, line 137: set the death message to "&7"')
[21:56:03 ERROR]: indentation error: expected 8 spaces, but found 2 tabs (TwoHit.sk, line 138: give attacker ender pearl')
[21:56:03 ERROR]: indentation error: expected 8 spaces, but found 2 tabs (TwoHit.sk, line 139: heal attacker by 20 hearts')
Use tabs, dont spaces.Yes i have it
[doublepost=1556135792,1556135690][/doublepost]This ist the ERROR
Code:[21:56:03 ERROR]: indentation error: expected 8 spaces, but found 2 tabs (TwoHit.sk, line 132: add 1 to {TwoHit.Deaths.%victim%}') [21:56:03 ERROR]: indentation error: expected 8 spaces, but found 2 tabs (TwoHit.sk, line 133: set [TwoHit.Killstreak.%victim%} to 0') [21:56:03 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (TwoHit.sk, line 131: victim is a player:') [21:56:03 ERROR]: indentation error: expected 8 spaces, but found 2 tabs (TwoHit.sk, line 135: add 1 to {TwoHit.Kills.%attacker%}') [21:56:03 ERROR]: indentation error: expected 8 spaces, but found 2 tabs (TwoHit.sk, line 136: add 1 to {TwoHit.Killstreak.%attacker%}') [21:56:03 ERROR]: indentation error: expected 8 spaces, but found 2 tabs (TwoHit.sk, line 137: set the death message to "&7"') [21:56:03 ERROR]: indentation error: expected 8 spaces, but found 2 tabs (TwoHit.sk, line 138: give attacker ender pearl') [21:56:03 ERROR]: indentation error: expected 8 spaces, but found 2 tabs (TwoHit.sk, line 139: heal attacker by 20 hearts')
Replace all spaces from the error code to TABNo where i press the key in the code
You make skripts with notepad++ or Sublime, right?I can not do that, can you do that?