1. Hello.

    My question is how to display window (frame) with some content to player when he is trying to exit the game (logout), wait until he press some button "exit" on that window, and only then really exit the game?

    I am trying to work out PLAYER_LOGOUT event, but it seems not to be appropriate for such task.

    Do you have any ideas?

    I don't think that there is an event for this, it's normally triggered by an API call. Perhaps you could hook the Logout() function?