Raised This Month: $ Target: $400
 0% 

Simple Chat Processor


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Antithasys
Moderator
Join Date: Apr 2008
Plugin ID:
2572
Plugin Version:
1.0.1
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    60 
    Plugin Description:
    Provides global forward for chat messages.
    Unapprover:
    Reason for Unapproving:
    Spams errors, ignored by author.
    Old 09-20-2011 , 13:04   Simple Chat Processor
    Reply With Quote #1

    Simple Chat Processor

    Description:
    Provides global forward for chat messages allowing other plugins to manipulate the display of chat messages.
    Currently this only supports SayText2 usermessage.
    Console Variables:
    None.
    Installation:
    Place the simple-chatprocessor.smx in the /sourcemod/plugins dir.
    Place the appropriate phrases file in the /sourcemod/translations dir.
    Changelog:

    Quote:
    1.0.1
    ! Fixed memory leak on no action

    1.0.0
    Release
    Include File

    PHP Code:
    /**********************************************************************
     * When a player types a chat message
     *
     * NOTES:
     * Use MAXLENGTH_  constants above for formating the strings
     * Do not rely on the recipients handle to exist beyond the forward
     * Do not start another usermessage (PrintToChat) within this forward
     *
     * @param         author        The client index of the player who sent the chat message (Byref)
     * @param         recipients    The handle to the client index adt array of the players who should recieve the chat message
     * @param         name          The client's name of the player who sent the chat message (Byref)
     * @param         message       The contents of the chat message (Byref)
     * @noreturn
     **********************************************************************/
    forward Action:OnChatMessage(&authorHandle:recipientsString:name[], String:message[]);



    /**********************************************************************
     * Gets the current flags for the chat message
     * Should only be called within OnChatMessage()
     *
     * @return        The current type of chat message (see constants) 
     **********************************************************************/
     
    native GetMessageFlags(); 
    Notes:

    This plugin by itself does nothing. This plugin is the core plugin for the following other plugins:

    Simple Chat Colors
    Simple Chat Filter
    Simple Chat Responses
    Simple Chat All Dead
    Simple Chat Me

    If you want to use any of the above plugins you will need this plugin as well.
    Of course, anyone else is free to use this for their own plugins too!

    SVN (or Beta Links)

    If you want the latest version on the SVN you can use the links below. The release version of the plugin is attached.

    Source | Include | Plugin | No Config | Phrases

    Enjoy!
    Attached Files
    File Type: inc scp.inc (3.8 KB, 10452 views)
    File Type: txt scp.cstrike.phrases.txt (977 Bytes, 10263 views)
    File Type: txt scp.l4d.phrases.txt (752 Bytes, 3188 views)
    File Type: txt scp.l4d2.phrases.txt (752 Bytes, 4009 views)
    File Type: txt scp.tf.phrases.txt (709 Bytes, 18984 views)
    File Type: sp Get Plugin or Get Source (simple-chatprocessor.sp - 26849 views - 13.7 KB)
    __________________
    [my plugins]

    When you think about asking a question... consider what have you tried?

    Last edited by Antithasys; 09-21-2011 at 12:49.
    Antithasys is offline
     



    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 14:03.


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