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

Color Strip


Post New Thread Reply   
 
Thread Tools Display Modes
Author
psychonic

BAFFLED
Join Date: May 2008
Plugin ID:
1305
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Stops players from sneaking color into their chat messages
    Unapprover:
    Reason for Unapproving:
    Author no longer supporting
    Old 12-02-2009 , 10:59   Color Strip
    Reply With Quote #1

    Color Strip

    I am no longer supporting this as there is only a single server using it

    This was a request from a while ago (can't find the original thread). I had a need to do similar in another plugin so I figured I'd share in case anyone wants it.


    Color Strip strips color control codes from client input on the say and say_team commands.

    While some games already strip these codes out (as the current OB SDK does), many games still allow clients to use color control characters in chat. There is also no harm in running this on games that do already strip the codes out.
    Attached Files
    File Type: sp Get Plugin or Get Source (colorstrip.sp - 283 views - 2.0 KB)

    Last edited by psychonic; 12-16-2009 at 11:00.
    psychonic is offline
    Dragonshadow
    BANNED
    Join Date: Jun 2008
    Old 12-02-2009 , 12:50   Re: Color Strip
    Reply With Quote #2

    I swear I've never seen people using color control chars in chat O.o
    Dragonshadow is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 12-02-2009 , 13:01   Re: Color Strip
    Reply With Quote #3

    Quote:
    Originally Posted by Dragonshadow View Post
    I swear I've never seen people using color control chars in chat O.o
    Quote:
    Originally Posted by psychonic
    some games already strip these codes out (as the current OB SDK does)
    ...although you can still put codes in your name on some OB games, like TF2 (though they don't show on normal chat messages, only one that use SayText2, like Voice messages.)

    Last edited by psychonic; 12-02-2009 at 14:24.
    psychonic is offline
    Dragonshadow
    BANNED
    Join Date: Jun 2008
    Old 12-02-2009 , 14:11   Re: Color Strip
    Reply With Quote #4

    I know I meant in all my years of source gaming :p

    cool nonetheless
    Dragonshadow is offline
    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 17:43.


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