The online racing simulator
Cars on track? C#
(2 posts, started )
Cars on track? C#
Is there any way to see how many cars are on the track?
Instead of adding or subtracting from a variable each time a player enters track/pits.

Any ideas would be appreciated (its not for cruise insim)

edit: I was thinking at something like substracting the amount of players with PlayerID != 0 from Connections.Count ? hmm
I think you mean Players.Count, but still this wouldn't be accurate as when i player goes in pits, he will still have a player id. What you can do is to store X and Y and check

Players.Count which Player.X and Player.Y != 0

Cars on track? C#
(2 posts, started )
FGED GREDG RDFGDR GSFDG