How to get information about the team that owns the capture zone

Hello! Can someone explain how to get information about which team owns the capture zone?
I want to be able to reward the team that owns the capture zone, but I don’t know how to implement it, because both teams are rewarded.
Or, for example, if I want to change the color of the marker depending on which team owns the zone, how do I get this information, the team index or something?!