OnGameModeExit + saving player data
#2

If you have a command, something like /gmx that actually restarts your server, then simply add a timer to it. After the time defined in the timer runs out, it will trigger the OnGameModeExit function but it will give the gamemode time to actually save the details of the players. To illustrate:

Код:
foreach (new A : Player)
{
        OnPlayerUpdateStats(A);
}
SetTimer("OnGameModeExit", 10000, false);
Pozdro z Lancaster
Reply


Messages In This Thread
OnGameModeExit + saving player data - by Riddick94 - 20.01.2014, 18:48
Re: OnGameModeExit + saving player data - by Rifa4life - 20.01.2014, 23:10
Re: OnGameModeExit + saving player data - by Brandon_More - 21.01.2014, 00:15

Forum Jump:


Users browsing this thread: 1 Guest(s)