Raised This Month: $51 Target: $400
 12% 

[TF2] Sourcebans Previous Ban Notice (COMMISSION)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
prom3th3an
SourceMod Donor
Join Date: Jun 2010
Old 08-29-2010 , 11:02   [TF2] Sourcebans Previous Ban Notice (COMMISSION)
Reply With Quote #1

Ok, Im after a plugin that will query our local Sourcebans installation (using the database already defined in our database.cfg file) when a player connects, I want it to check (using the STEAM ID of the player connecting) if the player has a previous ban. For each previous ban matching that steam ID, I want a message to be sent to admins on the server in the following format:

"<PLAYERNAME> (<STEAMID>) has a previous ban for <REASON> which lasted X <minutes/hours/days/months/years>"


Reply here or PM me if interested. This is a really simple plugin (Connect to DB, On player connect query the steam ID, If number results >0 then loop a message to all the admins on the server.)
prom3th3an is offline
Death [GER]
Senior Member
Join Date: Mar 2010
Old 08-30-2010 , 06:45   Re: [TF2] Sourcebans Previous Ban Notice (COMMISSION)
Reply With Quote #2

Do you really want it to send a message for EVERY ban? Imagine a player with 5 bans joining, then one with 3 and one with like 6 that would be 14 Messages

Well i could make it after my current project =)

I would prefer a join message like this:
Code:
<Playername> (<SteamID> was already banned <X Times>
This would we less annoyin and still usefull.. maybe make a command like 'sm_listbans <User>' to see details?
Death [GER] is offline
prom3th3an
SourceMod Donor
Join Date: Jun 2010
Old 08-30-2010 , 07:23   Re: [TF2] Sourcebans Previous Ban Notice (COMMISSION)
Reply With Quote #3

Quote:
Originally Posted by Death [GER] View Post
Do you really want it to send a message for EVERY ban? Imagine a player with 5 bans joining, then one with 3 and one with like 6 that would be 14 Messages

Well i could make it after my current project =)

I would prefer a join message like this:
Code:
<Playername> (<SteamID> was already banned <X Times>
This would we less annoyin and still usefull.. maybe make a command like 'sm_listbans <User>' to see details?

Perhaps "<PlayerName> has <COUNT> previous bans, type sm_listbans <Playername> to see a full list"

The full list would then echo out my format above?
prom3th3an is offline
Death [GER]
Senior Member
Join Date: Mar 2010
Old 08-30-2010 , 08:38   Re: [TF2] Sourcebans Previous Ban Notice (COMMISSION)
Reply With Quote #4

Yes something like that.. but as i said im currently working on something else for someone and will then maybe do yours. Whats the commission btw?
Death [GER] is offline
Mosalar
Senior Member
Join Date: Jul 2004
Location: Tampa Fl
Old 08-30-2010 , 09:22   Re: [TF2] Sourcebans Previous Ban Notice (COMMISSION)
Reply With Quote #5

@Death [GER]

I know alot of admins that would love a plugin like this. I would appreciate you releasing it for general use. Adding wildcards to let ops customize their messages would be icing on the cake(even if the cake is a lie). Something like:
{STEAM}
{PLAYERNAME}
{BANAMOUNT)
(BANTIME)
{BANREASON}
Mosalar is offline
Death [GER]
Senior Member
Join Date: Mar 2010
Old 08-30-2010 , 12:03   Re: [TF2] Sourcebans Previous Ban Notice (COMMISSION)
Reply With Quote #6

Well if thats true then i may think about doing it.. But well im still working on some projects before..
Death [GER] is offline
prom3th3an
SourceMod Donor
Join Date: Jun 2010
Old 08-31-2010 , 06:59   Re: [TF2] Sourcebans Previous Ban Notice (COMMISSION)
Reply With Quote #7

Quote:
Originally Posted by Death [GER] View Post
Well if thats true then i may think about doing it.. But well im still working on some projects before..
Im ok with it being released publicly, after I get a copy and can test it
prom3th3an is offline
psychonic

BAFFLED
Join Date: May 2008
Old 08-31-2010 , 08:43   Re: [TF2] Sourcebans Previous Ban Notice (COMMISSION)
Reply With Quote #8

I made a simple version of this that I will post once tested.

Upon a player joining, admins are alerted with a message akin to "Warning: Player "Name Here" has X previous SB bans on record" if X > 0.

Admins, at any time, including after the message has printed, can type a command to list the bans for any player currently in the server. Output goes to console in a format like:
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
psychonic is offline
Death [GER]
Senior Member
Join Date: Mar 2010
Old 08-31-2010 , 09:25   Re: [TF2] Sourcebans Previous Ban Notice (COMMISSION)
Reply With Quote #9

So then release it =)

*bit less work for me*
Death [GER] is offline
psychonic

BAFFLED
Join Date: May 2008
Old 08-31-2010 , 09:52   Re: [TF2] Sourcebans Previous Ban Notice (COMMISSION)
Reply With Quote #10

Quote:
Originally Posted by Death [GER] View Post
So then release it =)
Quote:
Originally Posted by psychonic View Post
...that I will post once tested.
psychonic is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:47.


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