halflife icon indicating copy to clipboard operation
halflife copied to clipboard

pfnClientDisconnect not called if client drops during connection

Open joropito opened this issue 13 years ago • 3 comments

Tested on CS but should be the same on any multiplayer mod.

If you connect to a dedicated server and during "Validate game resources", pfnClientDisconnect is not called.

This has 2 issues:

  • Within metamod/amxmodx modules you can't read that command
  • Inside the mod, connected players don't get TeamInfo and other messages so the client stays in scoreboard until other player uses the slot

joropito avatar Jun 24 '13 23:06 joropito

I think (by design) pfnClientDisconnect isn't called until after the user has spawned in, if they disconnect before then you shouldn't see a disconnect but I don't remember why.

alfred-valve avatar Jun 24 '13 23:06 alfred-valve

Right, by design, we only call disconnect if the client was active or spawned. If you are a plugin you can watch for the pfnClientPutInServer call to detech a spawn happening.

alfred-valve avatar Aug 05 '13 22:08 alfred-valve

Isn't an issue with any plugin. If you connect to an hlds server and close your client while resources is loading (connected but not spawned) then your connections keeps active in other players scoreboard.

joropito avatar Aug 05 '13 22:08 joropito