Hey guys, is there anyway to disconnect client from server by the way of closing connection to them, so client will just see that there is a server experiencing some troubles | Auto disconnect in N seconds ?
Is this possible to realise at the sourcepython level ?
Close network connection to client
-
- Junior Member
- Posts: 20
- Joined: Tue Mar 03, 2020 6:39 am
- L'In20Cible
- Project Leader
- Posts: 1536
- Joined: Sat Jul 14, 2012 9:29 pm
- Location: Québec
Re: Close network connection to client
Tetragromaton wrote:Hey guys, is there anyway to disconnect client from server by the way of closing connection to them, so client will just see that there is a server experiencing some troubles | Auto disconnect in N seconds ?
Is this possible to realise at the sourcepython level ?
I don't think there is an easy way to do that. You could probably achieve something like that with a lot of hooking into the networking stuff, but it doesn't worth the effort in my opinion. Why is simply kicking the player not an option?
- Hymns For Disco
- Member
- Posts: 32
- Joined: Wed Nov 22, 2017 7:18 am
- Contact:
Re: Close network connection to client
If running a linux server, you could try use the iptables command to block the client's address.
This is probably the cleanest way to artificially force a connection drop.
This is probably the cleanest way to artificially force a connection drop.
Return to “General Discussion”
Who is online
Users browsing this forum: No registered users and 46 guests