pfnClientDisconnect not called if client drops during connection
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
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.
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.
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.