18.05.2014, 05:11
If you're not going on detail, it means this is just another snippet. There's many newbies around forums who couldn't understand this one. It's better if you're trying to detail every part of your code. Also, looping always when a player joins is unnecessary. You could increase and decrease the count under OnPlayerConnect and OnPlayerDisconnect which makes things easier as well as on performance wise.
A loop while loading only could be used in case if player has joined before the script got executed.
A loop while loading only could be used in case if player has joined before the script got executed.