Im having trouble with a KOTH, so as long as a player is in the control point, it will keep adding points until it reaches 500, I have no trouble when players are no longer capping the point, but when they go back into the point it adds all the points that the player would have gained if he was in the point but they get added only if he joins the capture point again.
Code:
on walk on white wool or lime wool or orange wool:
if {koth} is true:
if distance between player and {KOTH::Location} is less than 4:
if {capping::*} contains player:
stop
else:
add player to {capping::*}
if {limeteam::*} contains player:
while {limescore} is not 500:
if {capping::*} contains player:
set line 6 of all players' scoreboards to "&e%{limescore}%"
if {limescore} is less than or equal to 100:
broadcast "&d&lKOTH &7» &a&lLIME TEAM &7is at 100!"
if {limescore} is between 101 and 200:
broadcast "&d&lKOTH &7» &a&lLIME TEAM &7is at 200!"
if {limescore} is between 201 and 300:
broadcast "&d&lKOTH &7» &a&lLIME TEAM &7is at 300!"
if {limescore} is between 301 and 400:
broadcast "&d&lKOTH &7» &a&lLIME TEAM &7is about to win!"
wait 3 seconds
add 100 to {limescore}
pop burst colored lime fading to green at {KOTH::Location}
send title "&a&lGAME OVER" with subtitle "&a&lLime Wins!" to all players for 3 seconds
on walk on grass:
if {koth} is true:
{capping::*} contains player
message "&eYou are no longer capturing!" to player
remove player from {capping::*}