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

Random Chat Mirror


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Wilczek
AlliedModders Donor
Join Date: Oct 2012
Location: Poland
Plugin ID:
4580
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 04-01-2015 , 05:08   Random Chat Mirror
    Reply With Quote #1

    Hello, April Fools!

    I've prepared a small plugin for you to randomly mirror client chat messages. It's pretty straightforward, so there's nothing to explain. Just load it to your server, no configuration necessary.

    Changelog:
    Code:
    0.02 - Code cleanup, an exclusion of basechat commands
    0.01 - Initial release
    Attached Files
    File Type: sp Get Plugin or Get Source (randomchatmirror.sp - 865 views - 1.2 KB)
    File Type: smx randomchatmirror.smx (4.4 KB, 272 views)
    __________________

    Last edited by Wilczek; 04-01-2015 at 14:13. Reason: Update
    Wilczek is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 04-01-2015 , 10:45   Re: Random Chat Mirror
    Reply With Quote #2

    Having a separate callback for say and say_team is pretty silly. Just replace the FakeClientCommand line in one with FakeClientCommand(client,"%s %s", command, rMessage); and delete the other.
    __________________
    Dr. McKay is offline
    Wilczek
    AlliedModders Donor
    Join Date: Oct 2012
    Location: Poland
    Old 04-01-2015 , 14:13   Re: Random Chat Mirror
    Reply With Quote #3

    Thanks! I was wondering how to reuse that code, but I didn't realize it's THAT simple. Silly me.

    Plugin updated with Dr. McKay's suggestion. Also, I added an exception to a '@' prefix, so the plugin won't mess with basechat commands.
    __________________

    Last edited by Wilczek; 04-01-2015 at 14:17.
    Wilczek is offline
    Reply



    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 11:33.


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