Hey guys,
I created a Skript where you can join a team. Now i want everybody in the team to get damage if someone else gets damage. So that they all share a specific amount of hearts! Can you help me?
This is what i tried. But it didnt work:
on damage of a player:
if {team.in.%player%} = "1":
loop all players:
if {team.in.%player%} = {team.in.%loop player%}:
damage loop player
I created a Skript where you can join a team. Now i want everybody in the team to get damage if someone else gets damage. So that they all share a specific amount of hearts! Can you help me?
This is what i tried. But it didnt work:
on damage of a player:
if {team.in.%player%} = "1":
loop all players:
if {team.in.%player%} = {team.in.%loop player%}:
damage loop player