View Single Post
Author Message
[PL]Luki
Member
Join Date: Jun 2009
Old 10-10-2010 , 13:44   [TF2] Trade Chat 1.5.1 (2012.10.09)
Reply With Quote #1

Trade Chat v 1.5.1

Description:
This plugin adds a special trade chat, players can hide it.

Usage:
Players can use /t to say something on trade chat and /togglechat to disable/re-enable tradechat for themselves. They also can use /lt to re-send their last offer or /mlt to check what is their last offer. Logs from the trade chat is stored in sourcemod/logs/tradechat.log

Admins with chat flag can use sm_trade_(un)gag to disable trade chat for selected player(s).


Cvars:
  • sm_trade_version - plugin version
  • sm_trade_adinterval - interval between displaying the advert (0 = disable)
  • sm_trade_antispam_delay - minimum delay between messages from one client (0 = disable)
  • sm_trade_antispam_max - maximum number of messages, that player can send during block time before autogag (0 = disable)
  • sm_trade_chatcheck - 0 = disable; values from 1 to 3 - check triggers from 1 to 3 (i. ex. sm_trade_chatcheck = 2 => plugin will only check triggers 1 and 2)
  • sm_trade_chattrigger1 - chat trigger for sm_trade_chatcheck
  • sm_trade_chattrigger2 - chat trigger for sm_trade_chatcheck
  • sm_trade_chattrigger3 - chat trigger for sm_trade_chatcheck
  • sm_trade_chattag - tag for the chat notifications
  • sm_trade_antispam_punish - should the plugin reset the interval between messages every time player tries to send something during the block time?
  • sm_trade_antispam_showinterval - show the remaining time player has to wait before sending another offer

Changelog:
  • Version 1.0 (10.10.2010)
    • Initial Release
  • Version 1.1 (10.10.2010)
    • Added translations
    • Added 'sm_trade_(un)gag'
    • First public release
  • Version 1.2 (10.30.2010)
    • Added 'antispam system'
      • Added 'sm_trade_antispam_delay'
      • Added 'sm_trade_antispam_max'
    • Added 'sm_trade_adinterval'
    • Added 'sm_trade_version'
  • Version 1.2.1 (11.07.2010)
    • Added autoconfigs (tf/cfg/sourcemod/plugin.tradechat.cfg)
    • Deleted /wts, /wtt, /wtb, /lf - It will be used in other plugin
    • Fix for 'antispam'
  • Version 1.2.2 (11.22.2010)
    • Players who have disabled trade chat won't see the advert
    • Added new translations:
  • Version 1.3.1 (06.04.2011)
    • Added chat checking
      • Added 'sm_trade_chatcheck'
      • Added 'sm_trade_chattrigger1', 'sm_trade_chattrigger2' and 'sm_trade_chattrigger3'
    • Added Portuguese translation by The JCS (Thanks!)
  • Version 1.4 (09.17.2011)
    • Added ability to re-send the last offer (ClientPrefs is required)
      • Added 'sm_lt'
      • Added 'sm_lasttrade'
      • Added new advert about re-sending offers
      • Now only one advert is printed at once
    • Small fix for chat checking - now messages with '/' or '!' as a first char are ignored (no more handling commands like "/cvar sm_trade_antispam_delay")
  • Version 1.4.1 (02.25.2012)
    • Updated translations
    • Added Hungarian translation by SeoToX
    • Added checking if player is gagged/silenced when sending an offer
  • Version 1.5 (05.08.2012)
    • Updated translations, commands' names are now upper case
    • Basecomm plugin is now an optional dependency
    • Removed sm_trade, sm_lasttrade
    • Changed sm_hidechat to sm_togglechat
    • Added sm_trade_chattag, sm_trade_antispam_punish, sm_trade_antispam_showinterval
    • Added sm_mlt (my last trade)
    • Fixed targeting in trade (un)gag
    • Added an information when clientprefs is disabled
    • Fixed ad timer interval (any changes to its cvar will work immediately)
    • Fix (probably) for this: http://forums.alliedmods.net/showpos...4&postcount=47
  • Version 1.5.1 (2012.10.09)
    • Fixed minimum value of sm_trade_adinterval
    • Added Korean translation by Minoost

To Do in future releases:
  • Add support for Updater
  • Any suggestions?

Installation:
  • Put tradechat.sp to sourcemod/scripting
  • Put colors.inc to sourcemod/scripting/include
  • Put tradechat.phrases.txt to sourcemod/translations
  • Compile it and copy the .smx file to sourcemod/plugins

Thanks to:

SVN repository:
http://code.google.com/p/lukisopenso...2FTrade%20Chat
Attached Files
File Type: zip tradechat_1.2.2.zip (16.5 KB, 1423 views)
File Type: zip tradechat_1.3.1.zip (7.3 KB, 708 views)
File Type: zip tradechat_1.4.zip (18.9 KB, 1161 views)
File Type: zip tradechat_1.4.1.zip (19.3 KB, 812 views)
File Type: zip tradechat_1.5.zip (21.3 KB, 1058 views)
File Type: zip tradechat_1.5.1.zip (21.8 KB, 3938 views)
__________________
TF2 Backpack Image Generator: http://luki.net.pl/tfsig.php
I do private (mostly paid) plugin requests.

Last edited by [PL]Luki; 01-10-2013 at 13:44. Reason: Update to 1.5.1!
[PL]Luki is offline