30.05.2009, 00:45
Definitely OnPlayerConnect() is the way to go, because there is no guarantee that any players are connected at all in OnGameModeInit(). It takes time to connect after a gamemode starts, so your players may not be connected yet.
And it is better to spread out the load of the server over time, rather than to call everything at once, because PAWN is single-threaded. So, calling your function 200 times in a loop will stop anything else from happening until the loop finishes. Calling your function once every time a person connects will be much more efficient for you.
And it is better to spread out the load of the server over time, rather than to call everything at once, because PAWN is single-threaded. So, calling your function 200 times in a loop will stop anything else from happening until the loop finishes. Calling your function once every time a person connects will be much more efficient for you.
~Cueball~

