sbpp / sourcebans-pp

Admin, ban, and comms management system for the Source engine
https://sbpp.github.io/
Creative Commons Attribution Share Alike 4.0 International
336 stars 173 forks source link

Ban Disconnected Players #366

Open Majkovsky opened 7 years ago

Majkovsky commented 7 years ago

Hello all, I am presenting your problem in Sourcebans Version 1.6.2 Stable. Now when it gives you a page through the web panel, the player does not throw it out immediately or disconnect it. Only when it comes out of the server, then the re-entry is impossible. The kick option works well, it immediately throws the player out of the server. Does anyone know how to fix this in web files?

I'm using Sourcemod 1.8 - 6027

CrazyHackGUT commented 7 years ago

I'm tried make a small fix in my SB++ fork, and he worked on all games. I send on rcon "status", explode response by symbol "\n", and search IP/Steam in each string. And this is works :)

If the developers are interested, they can see how I did it. It is crutches (I wrote this when I had no special knowledge in the PHP), but it works. https://github.com/SB-MaterialAdmin/Web/blob/master/web_upload/includes/system-functions.php#L1417-L1484