I have created multiplayer shooter game but when I leave the game with alt f4 weapons don't desappear and Stay in its place How Can Solve this problem

I have created multiplayer shooter game but when I leave the game with alt f4 weapons don’t desappear and Stay in its place How Can Solve this problem

It’s not an easy solve, and you can solve it in multiple ways…

  1. You can modify user register files, however this should NOT be done.
  2. You can override the default behaviour for the WM_CLOSE message. This will require C++.