AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [ANY] Ban Disconnected Players [UPDATED 1/3/17] (https://forums.alliedmods.net/showthread.php?t=273653)

headline 10-23-2015 22:23

[ANY] Ban Disconnected Players [UPDATED 1/3/17]
 
1 Attachment(s)
[ANY] Ban Disconnected Players


Introduction:
I rewrote this plugin due to the creator of the old one mad_hamster no longer supporting it. This plugin shares the same idea as the old one, but is now supported and has bug fixes. I also added a command called sm_listdisconnected to see the last 10 people who left your server printed to your console!

Also, with this plugin there is no limit to the amount of players that is saved due to it supporting ADT arrays. As long as your server doesn't restart often, you can go back pretty far. Refer to the screenshot below to see me scrolling through ~200 disconnected players.

Instructions:
  • Install the plugin by moving the .smx file into your /plugins/ folder
  • Load the plugin
  • Type sm_admin or sm_bandisconnected
  • Click on the "Ban disconnected player" option and view all disconnected clients
  • Enjoy!

ConVars:
  • hl_bandisconnected_max <value> (A limit for the amount of disconnected players stored, default value is 100)

SourceMod Version 1.7+ Is Required!

headline 10-23-2015 22:24

Re: [ANY] Ban Disconnected Players
 
Changelog
PHP Code:

/* Changeslog
    1.0
        - Initial Release
    1.1
        - Fixed Invalid Client Issue
    1.2
        - Fixed reason issue where it'd fail sm_addban
    1.3
        - Implemented asherkin's suggestion
    1.4
        - Fixed list order issue
    1.5
        - Created ConVar to limit array size
        - Cleaned up lots of weird problems
        - Now using more OO methods
        - Fixed where newer Steam D's were being
        truncated.
    2.0
        - Fixed issue where player's weren't getting banned
        - Added chat message when there were no disconnected players
    2.0.1
        - Added shortcut to bandisconnected menu
*/ 


Tiger50 10-24-2015 02:48

Re: [ANY] Ban Disconnected Players
 
@ Headline22

Thanks for the plugin

Ive added this to 5 of my linux l4d2 servers and will report back today when I have tested it

Again many thanks

Tiger50 10-24-2015 05:47

Re: [ANY] Ban Disconnected Players
 
@ Headline22

I tried the plugin and could not get it to work
When I tried to manually load the plugin it says cannot load in multi-player game (I was in survival game)
When I typed sm_admin I just get the normal admin menu
When I type sm_bandisconnected nothing

AeroAcrobat 10-24-2015 06:11

Re: [ANY] Ban Disconnected Players
 
Very nice!
I'm still using "Too Late To Ban" (1.0.0a) by Shenton. AFAIK I haven't encountered any problems with it.
Looking forward to try your updated version out.

GoRiLliAz 10-24-2015 06:49

Re: [ANY] Ban Disconnected Players
 
Hi I have some erreur compil with git 5716

Quote:

//// hl_bandisconnected.sp
//
// hl_bandisconnected.sp(26) : warning 234: symbol "FCVAR_PLUGIN" is marked as d
eprecated: No logic using this flag ever existed in a released game. It only eve
r appeared in the first hl2sdk.
//
//
// hl_bandisconnected.sp(142) : error 180: function return type differs from pro
totype. expected 'void', but got 'int'
//
// 1 Error.
//
// Compilation Time: 0,2 sec

Tiger50 10-24-2015 11:04

Re: [ANY] Ban Disconnected Players
 
I just tried Too late to ban (https://forums.alliedmods.net/showth...70222?p=870222) on my linux servers comes back with the same error

sm_addban failed

:(

headline 10-24-2015 14:17

Re: [ANY] Ban Disconnected Players
 
Quote:

Originally Posted by GoRiLliAz (Post 2356127)
Hi I have some erreur compil with git 5716

Okay, I fixed all of those errors and it now compiles on forums. Let me know if that fixes any issues for you guys

GoRiLliAz 10-24-2015 19:59

Re: [ANY] Ban Disconnected Players
 
It's good now its compiles thx


I test tomorrow on my server

headline 10-24-2015 20:00

Re: [ANY] Ban Disconnected Players
 
Quote:

Originally Posted by GoRiLliAz (Post 2356300)
It's good now its compiles thx


I test tomorrow on my server

Great! Let me know how it goes!


All times are GMT -4. The time now is 11:41.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.