So im playing on 1.19.4 and i just need help with my Skript. I already have a Kill-Rewards Skript but the Players can Kill themselves with a Crossbow and Rockets and they also get the Drops from that. Could anyone help? This is my Skript so far (I'd also take help for the existing Skript lol)
on death:
victim is a player
attacker is a player
add 1 to {%attacker's uuid%::kills}
if attacker is player:
give attacker 1 scute named "&a&lKill Reward" with lore "&4Redeem your Key at Spawn"
command killcount [<offlineplayer>]:
trigger:
if arg-1 is not set:
send "Your Killcount is %{%player's uuid%::kills} ? 0%"
else:
send "%arg-1%'s Killcount is %{%arg-1's uuid%::kills} ? 0%"
command killcountreset [<offlineplayer>]:
trigger:
if arg-1 is not set:
set {%player's uuid%::kills} to 0
send "&4You reset your Killcount"
else:
set {%arg-1's uuid%::kills} to 0
send "&4You reset %arg-1%'s Killcount"
permission: killcount.reset.use
permission message: &4&lYou do not have Permissions to use that Command![/CODE]
on death:
victim is a player
attacker is a player
add 1 to {%attacker's uuid%::kills}
if attacker is player:
give attacker 1 scute named "&a&lKill Reward" with lore "&4Redeem your Key at Spawn"
command killcount [<offlineplayer>]:
trigger:
if arg-1 is not set:
send "Your Killcount is %{%player's uuid%::kills} ? 0%"
else:
send "%arg-1%'s Killcount is %{%arg-1's uuid%::kills} ? 0%"
command killcountreset [<offlineplayer>]:
trigger:
if arg-1 is not set:
set {%player's uuid%::kills} to 0
send "&4You reset your Killcount"
else:
set {%arg-1's uuid%::kills} to 0
send "&4You reset %arg-1%'s Killcount"
permission: killcount.reset.use
permission message: &4&lYou do not have Permissions to use that Command![/CODE]