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

[Any] Chat-Processor (Replacement for Simple Chat Processor)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Lazytown
Plugin ID:
5330
Plugin Version:
2.0.9
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A plugin with available API to hook and change clients name and message strings.
    Old 08-27-2016 , 12:34   [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #1


    Description:
    This plugin and its API is meant to be a replacement for the old Simple Chat Processor (redux version) by fixing some bugs and adding new features to it. This plugin also uses the ColorVariables include to add additional features to the forwards for the plugin in order to automatically replace colors, remove colors, etc. This plugin uses a configuration file instead of a translation file for the format strings which allows for less translation files.

    ConVars:
    • sm_chatprocessor_status - 1 - Status of the plugin.
    • sm_chatprocessor_config - configs/chat_processor.cfg - Name of the message formats config.
    • sm_chatprocessor_process_colors_default - 1 - Default setting to give forwards to process colors.
    • ssm_chatprocessor_remove_colors_default - 0 - Default setting to give forwards to remove colors.
    • sm_chatprocessor_strip_colors - 1 - Remove color tags from the name and the message before processing the output.
    Special Thanks:
    • abrandnewday - recommendation and idea
    • Peace-Maker - format recommendations
    • SM9() - push requests and fixes for CSGO

    Available 2013 Colors By Dr.McKay(TF2, CSS, ETC)

    Available CSGO Colors:


    Code Repository | Download | Plugin Updates | Report Bugs | Donate
    __________________
    I sometimes do commissions.

    Last edited by Drixevel; 08-15-2018 at 12:10.
    Drixevel is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Lazytown
    Old 08-27-2016 , 12:35   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #2

    Example from the test plugin:

    Code:
    public Action CP_OnChatMessage(int& author, ArrayList recipients, char[] flagstring, char[] name, char[] message, bool& processcolors, bool& removecolors)
    {
    	Format(name, MAXLENGTH_NAME, "{red}%s", name);
    	Format(message, MAXLENGTH_MESSAGE, "{blue}%s", message);
    	return Plugin_Changed;
    }
    
    public void CP_OnChatMessagePost(int author, ArrayList recipients, const char[] flagstring, const char[] formatstring, const char[] name, const char[] message, bool processcolors, bool removecolors)
    {
    	PrintToServer("[TEST] %s: %s [%b/%b]", name, message, bProcessColors, bRemoveColors);
    }
    __________________
    I sometimes do commissions.

    Last edited by Drixevel; 01-27-2017 at 09:50.
    Drixevel is offline
    sneaK
    SourceMod Moderator
    Join Date: Feb 2015
    Location: USA
    Old 08-27-2016 , 12:49   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #3

    Nice release!

    Is there a straightforward way to convert an existing plugin to use this instead of SCP?
    sneaK is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Lazytown
    Old 08-27-2016 , 12:56   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #4

    Quote:
    Originally Posted by blackhawk74 View Post
    Nice release!

    Is there a straightforward way to convert an existing plugin to use this instead of SCP?
    Just edit the forwards parameters, I kept the names the same. (That plus the include name)
    __________________
    I sometimes do commissions.

    Last edited by Drixevel; 08-27-2016 at 12:57.
    Drixevel is offline
    Maxximou5
    AlliedModders Donor
    Join Date: Feb 2013
    Old 08-27-2016 , 12:56   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #5

    Great work man, looks like it will be super useful. Have some bacon, on me, free of charge.
    __________________
    Maxximou5 is offline
    HawkXD
    Member
    Join Date: Aug 2015
    Location: Norway
    Old 08-27-2016 , 12:56   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #6

    Nice
    HawkXD is offline
    Xzan
    Junior Member
    Join Date: Aug 2016
    Old 08-27-2016 , 13:11   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #7

    Nice work! Does it work for Sourcemod 1.7 ?
    Xzan is offline
    Drixevel
    AlliedModders Donor
    Join Date: Sep 2009
    Location: Lazytown
    Old 08-27-2016 , 13:11   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #8

    Quote:
    Originally Posted by Xzan View Post
    Nice work! Does it work for Sourcemod 1.7 ?
    Maybe, It's compiled and tested on 1.8 though.
    __________________
    I sometimes do commissions.
    Drixevel is offline
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 08-27-2016 , 14:19   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #9

    Pretty cool! Does the 'recipients' array actually work? Can I manipulate it and remove/add client indexes without having duplicates?
    __________________
    My Plugins
    Not taking private requests, too busy.
    shavit is offline
    nhnkl159
    Senior Member
    Join Date: Jul 2012
    Location: Israel 3>
    Old 08-27-2016 , 14:22   Re: [Any] Chat-Processor (Replacement for Simple Chat Processor)
    Reply With Quote #10

    i fucking love you..

    great job ;)
    __________________
    nhnkl159 is offline
    Send a message via Skype™ to nhnkl159
    Reply


    Thread Tools
    Display Modes

    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 10:34.


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