09.01.2016, 21:52
Redefining MAX_PLAYERS is a good way to start. I reckon that a plain player loop would be faster than foreach if the server is full or nearly full all the time because there is no additional processing overhead from foreach in that case. But if your server isn't always full then foreach is probably the way to go. The poolsize loop is a viable alternative if you do not want to use foreach.