AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   SourceBans Checker (https://forums.alliedmods.net/showthread.php?t=137033)

psychonic 09-01-2010 19:18

SourceBans Checker
 
3 Attachment(s)
As requested here:

SourceBans Checker
Simple plugin to notify admins of prior bans upon player connect.

When a player with prior bans connects, admins with the ban flag (reconfigurable with admin_overrides) will be notified with the following message:
Code:

[SBChecker] Warning: Player NameHere has X previous SB bans on record.
The sm_listsbbans command is also available to list the bans:
Code:

sm_listsbbans <#userid|name> - Lists a user's prior bans from Sourcebans
Output shows in console in the following format:
Code:

Listing bans for PlayerName
Ban Date    Banned By    Length      End Date    R  Reason
-------------------------------------------------------------------------------
2010-07-16  psychonic    60          2010-07-16  E  Douchebaggery
2010-08-01  administr...  10080      2010-08-02  R  Mic-spamming


Afronanny 09-01-2010 20:08

Re: SourceBans Checker
 
PHP Code:

    // hax against valvefail
    
if (GuessSDKVersion() == SOURCE_SDK_EPISODE2VALVE)
        
SetConVarString(g_VersionCvarVERSION); 

What?

:crab:

psychonic 09-01-2010 20:10

Re: SourceBans Checker
 
Quote:

Originally Posted by Afronanny (Post 1288534)
PHP Code:

    // hax against valvefail
    
if (GuessSDKVersion() == SOURCE_SDK_EPISODE2VALVE)
        
SetConVarString(g_VersionCvarVERSION); 

What?

:crab:

The convar value is re-set after each map change to workaround a2s_rules query issues on linux ep2v servers.

prom3th3an 09-02-2010 03:57

Re: SourceBans Checker
 
Awesome, will test it on my servers and provide feedback here.

prom3th3an 09-02-2010 04:17

Re: SourceBans Checker
 
Just tested it, works great. Highly recommended for any server.

Hollanda 09-02-2010 07:46

Re: SourceBans Checker
 
Can you show a ingame printscreen?

And will it show previous IP or SteamID bans?

psychonic 09-02-2010 07:50

Re: SourceBans Checker
 
Quote:

Originally Posted by Hollanda (Post 1288876)
Can you show a ingame printscreen?

There's not much to see other than what I mentioned on the first post. It's just text, nothing fancy.

Quote:

Originally Posted by Hollanda (Post 1288876)
And will it show previous IP or SteamID bans?

It will show all.

Groger 09-02-2010 09:09

Re: SourceBans Checker
 
works like a charm :)

Inflikted 09-02-2010 12:33

Re: SourceBans Checker
 
nice work :) thanks

Hollanda 09-02-2010 13:08

Re: SourceBans Checker
 
Plugins seems to be disconnecting players with previous bans at every round end...

psychonic 09-02-2010 13:10

Re: SourceBans Checker
 
Quote:

Originally Posted by Hollanda (Post 1289066)
Plugins seems to be disconnecting players with previous bans at every round end...

There is no logic anywhere in the plugin to kick or disconnect any players, nor is round end even hooked.

prom3th3an 09-02-2010 13:30

Re: SourceBans Checker
 
Quote:

Originally Posted by Hollanda (Post 1289066)
Plugins seems to be disconnecting players with previous bans at every round end...

I've not experianced this issue

DontWannaName 09-03-2010 01:46

Re: SourceBans Checker
 
Does it show bans that have been manually unbanned? In those cases the people have been exempt and are fine.

psychonic 09-03-2010 08:35

Re: SourceBans Checker
 
Quote:

Originally Posted by DontWannaName (Post 1289577)
Does it show bans that have been manually unbanned? In those cases the people have been exempt and are fine.

Yes, it does, but when listing bans, in the 'R' column is a U for Unbanned, rather than E for expired.

marrr 09-03-2010 18:56

Re: SourceBans Checker
 
Thanks..
btw just one request anyway u can make it so it plays a sound along with the message that is sent to the admin?

Groger 09-04-2010 06:50

Re: SourceBans Checker
 
why would you want that? thats pretty annoying..

santaclaus 09-04-2010 07:13

Re: SourceBans Checker
 
Quote:

Originally Posted by marrr (Post 1290375)
Thanks..
btw just one request anyway u can make it so it plays a sound along with the message that is sent to the admin?

ah ... no :/

prom3th3an 09-05-2010 14:48

Re: SourceBans Checker
 
Quote:

Originally Posted by marrr (Post 1290375)
Thanks..
btw just one request anyway u can make it so it plays a sound along with the message that is sent to the admin?


Umm, Hell no to the idea of playing a sound.

I like it exactly the way it is to be honest, and im sure others agree.

marrr 09-05-2010 15:10

Re: SourceBans Checker
 
Why is everyone so against playing a sound along with the message??

psychonic 09-05-2010 15:13

Re: SourceBans Checker
 
The addition of playing a sound would be optional if I were going to bother adding it; I'm not.

DontWannaName 09-05-2010 18:11

Re: SourceBans Checker
 
It wouldnt be hard to add it yourself marr, psy gave a basic plugin with features and its up to you to add to it.

cozmicshredder 09-07-2010 12:28

Re: SourceBans Checker
 
Nice job psychonic!

Thank You!

superbunny 10-20-2010 21:40

Re: SourceBans Checker
 
Thanks Psychonic.

seems to work very well on one of our 10 vs 10 servers, i shale report in any probs i find

VoGon 10-21-2010 03:41

Re: SourceBans Checker
 
Very good.

Will use it, we have a 3 strike rule, and this way admins don't need to go into SB every time to check players.

KyleS 11-07-2010 23:53

Re: SourceBans Checker
 
Too cool! Thanks!

deathcurse 11-11-2010 06:51

Re: SourceBans Checker
 
Awesome thank you.

Salakis. 02-18-2011 17:31

Re: SourceBans Checker
 
useful possibly, menu options for this into the admin commands menu:
content is orangebox/cstrike/addons/sourcemod/configs/adminmenu_custom.txt

Code:

"Commands"
{
    "SourceBans"
    {
        "Check bans"
        {
            "cmd"        "sm_listsbbans #1"
            "1"
                {
                    "title"      "Player:"
                    "type"        "player"
                }
        }
    }       
}


Penetal 03-19-2011 09:38

Re: SourceBans Checker
 
Hey I get an error with the plugins
Quote:

L 03/19/2011 - 14:25:40: [SM] Plugin encountered error 25: Call was aborted
L 03/19/2011 - 14:25:40: [SM] Native "SetFailState" reported: Failed to connect to SB db, [2002]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 03/19/2011 - 14:25:40: [SM] Displaying call stack trace for plugin "sbchecker.smx":
L 03/19/2011 - 14:25:40: [SM] [0] Line 51, /home/groups/alliedmodders/forums/files/3/7/5/1/4/72733.attach::OnDatabaseConnected()
The sourcebans database:
Quote:

"sourcebans"
{
"driver" "default"
"host" "localhost"
"database" "XXX"
"user" "XXX"
"pass" "XXX"
//"timeout" "0"
"port" "3306"
}
database works with sourcebans and other stuff.

psychonic 03-19-2011 09:39

Re: SourceBans Checker
 
Quote:

Originally Posted by Penetal (Post 1435778)
Hey I get an error with the plugins

The sourcebans database:


database works with sourcebans and other stuff.

Try replacing "localhost" with the path to the mysql socket file on your machine.

vadik24 04-26-2011 19:58

Re: SourceBans Checker
 
Quote:

Originally Posted by Penetal (Post 1435778)
Hey I get an error with the plugins

The sourcebans database:


database works with sourcebans and other stuff.

I have the same problem after valve updated a week ago

Penetal 04-27-2011 02:09

Re: SourceBans Checker
 
Quote:

Originally Posted by vadik24 (Post 1458596)
I have the same problem after valve updated a week ago


what psychonic said was what was wrong for me. I made a symbolic link (as the old one were destroyed) to /tmp/mysql.sock, restarted and it worked like a charm again

psychonic 04-27-2011 06:55

Re: SourceBans Checker
 
Quote:

Originally Posted by Penetal (Post 1458693)
what psychonic said was what was wrong for me. I made a symbolic link (as the old one were destroyed) to /tmp/mysql.sock, restarted and it worked like a charm again

Either way should work fine.

Arcy 05-12-2011 07:10

Re: SourceBans Checker
 
Will You support translations?

zepper 06-18-2011 10:53

Re: SourceBans Checker
 
HI
I have a problem. I banned myself for 180 min and then unbanned, and when i connect to my server i dont see any warning messages in console (i have admin flag "z") but when i type command sm_listsbbans it shows my ban, only ban time is incorrect - instead of 180 min it shows 10800

I-Fling-Poo 09-07-2011 20:42

Re: SourceBans Checker
 
Would be great to have a command that I can use to list all players currently on the server with previous bans.

Maybe sm_listsbbans with no arguments would list (in console) all players currently on the server with previous bans.

Thanks,
Poo

nightrider 09-11-2011 15:48

Re: SourceBans Checker
 
Installed, thank you psychonic.

MrBen 12-28-2011 13:06

Re: SourceBans Checker
 
Hi psychonic

I hope you had a great Christmas!

We use this plugin and it works brilliantly if one of us is on the relevant server at the time, but this is not always the case. I was therefore wondering if it would be possible to add the ability to forward the admin warning messages to IRC via the IrcRelay plugin?

I asked God-Tony if he could do this with SMAC warning messages a little while back and he very kindly did it and said it was fairly straight forward to implement. Thread here: http://forums.alliedmods.net/showthread.php?t=170351

If it is at all possible to do this I would be extremely grateful as it would be another very useful tool for those of us who find ourselves stretched trying to admin multiple servers.

Cheers
MrBen

MrBen 01-08-2012 10:34

Re: SourceBans Checker
 
Hi psychonic

Should I assume there there would be no hope of this?

Cheers
MrBen

Peace-Maker 01-09-2012 05:41

Re: SourceBans Checker
 
1 Attachment(s)
Quote:

Originally Posted by MrBen (Post 1621090)
We use this plugin and it works brilliantly if one of us is on the relevant server at the time, but this is not always the case. I was therefore wondering if it would be possible to add the ability to forward the admin warning messages to IRC via the IrcRelay plugin?

This is a straight forward copy & paste from God-Tony's code to quickly implement IRC relay features without requiring the include files to compile.

All credits to him.
Hope you don't mind psychonic:)

Larsen 01-09-2012 07:08

Re: SourceBans Checker
 
Is this going to check your own server's database or does sourcebans collate bans across servers/games?

Basically I want to know if Joe Bloe gets banned from a rival dod server will this tell me he has a ban on his ID when he joins mine?


All times are GMT -4. The time now is 10:46.

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