04.12.2012, 12:33
Quote:
I think he means that he wants a command that will save every file when he shut down his server.
|
If this is what you need, then make a cutom function OnPlayerLogout and inside put the part that saves the data in OnPlayerDisconnect.
pawn Код:
public OnGameModeExit( )
{
for( new i; i != MAX_PLAYERS; i ++ ) OnPlayerDisconnect( i, 1 );
return 1;
}
OnPlayerLogout( playerid )
{
// saving part
return 1;
}