AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] SteamRep Checker (Redux) (https://forums.alliedmods.net/showthread.php?t=209791)

Dr. McKay 03-02-2013 00:03

[TF2] SteamRep Checker (Redux)
 
[TF2] SteamRep Checker (Redux)

v1.2.0

Description:
This is an (unofficial) improved version of the SteamRep Checker plugin that adds a few features and cleans up existing features.
  • Chat tagging is now accomplished by renaming the client and optionally using Simple Chat Processor (Redux) to colorize the tag.
  • The SteamTools extension is used instead of the Socket extension for HTTP requests.
  • Added ability to query Steam for a user's trade ban/probation status and deal with them accordingly (requires Steam Web API key).
  • Added optional chat message upon first player spawn stating that the server is protected by SteamRep.

Cvars:
  • steamrep_checker_version - plugin version
  • steamrep_checker_deal_method - how to deal with SteamRep reported scammers
    • 0 = Disabled
    • 1 = [SCAMMER] tag on name + chat warning to all players (requires Simple Chat Processor (Redux) for color in chat)
    • 2 = Kick (default)
    • 3 = Ban Steam ID for steamrep_checker_steamid_ban_length minutes
    • 4 = Ban IP for steamrep_checker_ip_ban_length
    • 5 = Ban Steam ID + IP
  • steamrep_checker_steamid_ban_length - length in minutes to ban Steam IDs for (0 = permanent), defaults to 0
  • steamrep_checker_ip_ban_length - length in minutes to ban IP addresses for (0 = permanent), defaults to 0
  • steamrep_checker_kick_tagged_scammers - if steamrep_checker_deal_method is set to 1, kick a tagged scammer/trade-banned/trade-probation player when the server gets full, defaults to 1
  • steamrep_checker_valve_ban_deal_method - how to deal with trade-banned players (requires steamrep_checker_steam_api_key to be set)
    • 0 = Disabled
    • 1 = [TRADE BANNED] tag on name + chat warning to all players (requires Simple Chat Processor (Redux) for color in chat)
    • 2 = Kick (default)
    • 3 = Ban Steam ID for steamrep_checker_steamid_ban_length minutes
    • 4 = Ban IP for steamrep_checker_ip_ban_length
    • 5 = Ban Steam ID + IP
  • steamrep_checker_valve_probation_deal_method - how to deal with players on trade probation (requires steamrep_checker_steam_api_key to be set)
    • 0 = Disabled
    • 1 = [TRADE PROBATION] tag on name + chat warning to all players (requires Simple Chat Processor (Redux) for color in chat) (default)
    • 2 = Kick
    • 3 = Ban Steam ID for steamrep_checker_steamid_ban_length minutes
    • 4 = Ban IP for steamrep_checker_ip_ban_length
    • 5 = Ban Steam ID + IP
  • steamrep_checker_steam_api_key - API key used to query trade ban/probation status, obtained from http://steamcommunity.com/dev
  • steamrep_checker_send_ip - enable to send the IP address of connecting players to steamrep.com, this is used to block known scammer IPs and for other SteamRep internal scammer investigations, defaults to 0
  • steamrep_checker_untrusted_tags - enter any community tags that you don't trust here, defaults to empty
  • steamrep_checker_spawn_message - enable to display a "protected by SteamRep" message on every player's first spawn, defaults to 1
  • steamrep_checker_log_level - level of logging
    • 0 = Errors only
    • 1 = Info + errors (default)
    • 2 = Info, errors, and debug
  • steamrep_checker_auto_update - enables automatic updating (has no effect if Updater is not installed), defaults to 1

Plugin creates and loads cfg/sourcemod/plugin.steamrep_checker.cfg

Overrides:
SkipSR - Anyone with access to this override will not be checked for SteamRep scammer status, Valve trade ban status, or Valve trade probation status. Defaults to root (z), but can be overridden in admin_overrides.cfg.

Requirements:
Requires the SteamTools extension and Simple Chat Processor (Redux) if you wish to utilize the chat-tag coloring feature.

Installation:
Install any requirements, put steamrep_checker.smx into /addons/sourcemod/plugins, and reboot your server or type "sm plugins load steamrep_checker" into your console or rcon.

Auto Update:
Install Updater. The plugin will be auto-updated according to your Updater settings. It'll work without Updater.

Changelog:
  • v1.2.0 (1/6/14)
    • Added support for SourceBans 1.5/2.0 plugin
    • Switched from deprecated CCC_OnTagApplied forward to CCC_OnColor
  • v1.1.0 (3/2/13)
    • Removed optional Custom Chat Colors dependency
    • Updated scammer tagging to rename the client
    • Added optional Simple Chat Processor (Redux) dependecy for scammer tag coloring
    • Added blocking of tags applied by Custom Chat Colors for tagged scammers
  • v1.0.0 (3/2/13)
    • Initial release

Download Plugin (steamrep_checker.smx)
View Source (steamrep_checker.sp)

Dr. McKay 03-02-2013 00:08

Re: [TF2] SteamRep Checker (Redux)
 
~Reserved~

Mr. Man 03-02-2013 01:34

Re: [TF2] SteamRep Checker (Redux)
 
Good work! I'll be migrating to this solution from the original and provide some feedback if needed.

Fearts 03-02-2013 01:42

Re: [TF2] SteamRep Checker (Redux)
 
I suggest that it also changes the players name. That way if they decide not to type we can still tell if they talk over the mic.

Nice work on the remake.

Mr. Man 03-02-2013 01:44

Re: [TF2] SteamRep Checker (Redux)
 
Quote:

Originally Posted by Fearts (Post 1904856)
I suggest that it also changes the players name. That way if they decide not to type we can still tell if they talk over the mic.

Nice work on the remake.

Was going to suggest this as well. Up until about 2 weeks ago, I wasn't aware of the fact that player names can be force-changed.

Dr. McKay 03-02-2013 01:59

Re: [TF2] SteamRep Checker (Redux)
 
Quote:

Originally Posted by Fearts (Post 1904856)
I suggest that it also changes the players name. That way if they decide not to type we can still tell if they talk over the mic.

Nice work on the remake.

If I'm going to go this route (changing the player's name), I'll probably end up removing the CCC dependency and just using Simple Chat Processor to colorize the tag in chat. Don't see why it couldn't be done.

Edit: This has been done.

Plugin updated to v1.1.0. Changelog:
  • Removed optional Custom Chat Colors dependency
  • Updated scammer tagging to rename the client
  • Added optional Simple Chat Processor (Redux) dependecy for scammer tag coloring
  • Added blocking of tags applied by Custom Chat Colors for tagged scammers

Oshizu 03-02-2013 19:22

Re: [TF2] SteamRep Checker (Redux)
 
Great Plugin :)
I've got one question and one suggestion :D

QUESTION: Do those tags are going to replace existing tags created by 'custom chat color' example: player got tag [ADMIN] it will show up only [SCAMMER] or it will showup [ADMIN] [SCAMMER] ?

SUGGESTION:
Maybe add more steamrep tags like 'VALVE EMPLOYEE', 'TF2TP ADMIN', 'SOP TRUSTED SELLER', 'SR DONATOR' .....

Horsedick 03-02-2013 19:26

Re: [TF2] SteamRep Checker (Redux)
 
My suggestion for a setting for this or the other old plugin is to set it to BAN any scammer from entering your servers vs tagging them, tagging them IMO is just pointless - best to keep the scum out of the servers. The more servers that do that the less places the scum have to try to scam others.

Mr. Man 03-02-2013 19:37

Re: [TF2] SteamRep Checker (Redux)
 
It might also be a good idea to give us the ability to tag F2Ps

Dr. McKay 03-02-2013 20:48

Re: [TF2] SteamRep Checker (Redux)
 
Quote:

Originally Posted by Oshizu (Post 1905407)
Great Plugin :)
I've got one question and one suggestion :D

QUESTION: Do those tags are going to replace existing tags created by 'custom chat color' example: player got tag [ADMIN] it will show up only [SCAMMER] or it will showup [ADMIN] [SCAMMER] ?

SUGGESTION:
Maybe add more steamrep tags like 'VALVE EMPLOYEE', 'TF2TP ADMIN', 'SOP TRUSTED SELLER', 'SR DONATOR' .....

This plugin will replace CCC tags.

Not possible at the moment. The SteamRep API doesn't return that information.
Quote:

Originally Posted by Mr. Man (Post 1905415)
It might also be a good idea to give us the ability to tag F2Ps

Use Free2BeRenamed.


All times are GMT -4. The time now is 12:53.

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