Is there a way to run a function when the client closes the MotD window ?
I know that its possible to run a function when the client selects a team, but that is too late.
Why I need this:
I am showing a video in the MotD window when a client connects to the server.
But as soon as they click "ok", I would like to stop the video (So the video doesnt continue to run in the background).
I have tried to implement it with
jquery visibility api from mathiasbynens and it works on a desktop browser (the video is paused when the tab is changed), but its not working with the ingame browser.
So I thought of loading a blank page in the motd when the users clicks on ok.
Is there another way to stop playing the video once the client clicks on ok (closes the motd window)?
__________________