Entity Win

Hello there, I am attempting to make a simple gamemode, but I am having trouble doing this small part of it. I want to know how to make it so that if this certain team goes into a certain part of the map with the entity tied to it, then they get a point.

Ty in advance :smiley:

CTF?

psuedocode:

if a player is in a part of the map(ents.InSphere or something like that)
check if he has the flag, or whatever ent attatched to him
if he does, give his team(ply:Team()) a point
else
end
end