Yes you can do this. But what would you define as someone close to you? Someone in the same split as you, someone in the same turn or straight, how about some one within 10 meters of you?.
All of these definitions have there own challenges. Let's start with the hardest, or just the most time consumeing first. Someone in the same turn or stright as you, for this one you would have to make a polygon and find if two cars are then in that same area you would also have to define each straight and turn for each track. That's alot of turns and strights.
With the split you would have to define an area as split1, split2, split3 and so on, while that's not so bad over all, it would also be unique for each track, atlest for the most part, some tracks do share split sections, so you could use that and define it across tracks. You could also do the same for the turns and straights. While that would save space overall, in memory, it would be a real bitch to program for.
Now the last one is within X meters from one user. For this you would have to find if one user is infringing on another user's area. You would have to do this with a circle around the point for the car, so that could be a bit of an issue. But over all this would be the easiest to construct.