20.03.2010, 10:08
I wouldn`t use OnPlayerUpdate for such stuff (see OnPlayerUpdate explanations @ wiki - it hasn`t much to do with what you said).
It works when you kickall players because then OnPlayerDisconnect gets executed before you actually restart the server.
As I said, throw the stuff that causes spawning at the proper locations in OnGameModeInit as well (just adjust it a little - you ll probably need to loop through all connected players) and you`ll see it will work
-
It works when you kickall players because then OnPlayerDisconnect gets executed before you actually restart the server.
As I said, throw the stuff that causes spawning at the proper locations in OnGameModeInit as well (just adjust it a little - you ll probably need to loop through all connected players) and you`ll see it will work
![Wink](images/smilies/wink.png)