Raised This Month: $32 Target: $400
 8% 

Basic Chat (sm_say, sm_chat, sm_csay, etc)


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Plugin ID:
33
Plugin Version:
1.5.2
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Adds basic chat and notification commands
    Unapprover:
    Reason for Unapproving:
    Rolled into base Sourcemod
    Old 06-20-2007 , 14:41   Basic Chat (sm_say, sm_chat, sm_csay, etc)
    #1

    Basic Chat
    Version 1.5.2

    By: ferret!

    Description

    Adds a range of basic chat commands. These include multiple methods for admins to talk to players, and a private admin communication method.

    Installation
    1. Place the basechat.smx file inside of the addons/sourcemod/plugins/ folder.
    Commands
    • sm_say <message>
      • Message is sent to all players in the Chat window.
    • sm_chat <message>
      • Message is sent to all admins in the Chat window.
    • sm_csay <message>
      • Message is sent to all players in the center of the screen
    • sm_hsay <message>
      • Message is sent to all players as a hint message
    • sm_tsay [color] <message>
      • Message is sent to all players as a dialog in the top left, colored white by default.
      • Allowed colors: White, Red, Green, Blue, Yellow, Purple, Cyan, Orange, Pink, Olive, "Lime, Violet, Lightblue
    • sm_psay <target> <message>
      • A messge is privately sent to the target.
    • sm_msay <message>
      • Sends a message to every as a menu panel. Use \n for new lines.
    • say @message
      • Using standard chat, this is a shortcut for sm_say
    • say @@target message
      • Using standard chat, this is a shortcut for sm_psay
    • say @@@message
      • Using standard chat, this is a shortcut for sm_csay
    • say_team @message
      • Using the team chat, this is a shortcut for sm_chat
    Cvars
    • sm_chat_mode
      • Allows non-admins to use the @alias for sm_chat. They cannot read the responses though. Default is on.
      • Set to 0 to turn off.
    • sm_psay_mode
      • Allows non-admins to use the @@alias for sm_psay. Default is off.
      • Set to 1 to turn on.
    Changelog
    • Version 1.5.2
      • Removed special Rcon/client 0 naming.
    • Version 1.5.1
      • Fix for psay chat alias
    • Version 1.5 (July 5th)
      • sm_tsay has a color parameter now.
      • sm_psay now prefixed in green, and with Private from
      • SendDialogToAll() fixed
      • Using say via console now works, so you can bind it.
      • Abandoned Hungarian notation
      • RCON should now be able to use commands.
      • New say trigger: @@<player> <message> does sm_psay
      • New say trigger: @@@<message> does sm_csay
      • New cvar: sm_chat_mode - Controls whether players can use say_team @<message>. Default on. They still cannot read it though.
      • New cvar: sm_psay_mode - Allows players to use the psay alias "@@<player> <message>". Default is off.
      • New command: sm_msay
    • Version 1.4.3 (July 4th)
      • Final tsay fix
      • Final GetUserAdmin fix.
    • Version 1.4.2 (July 3rd)
      • Lol. Now using GetUserAdmin...
    • Version 1.4.1 (July 2nd)
      • Forgot to change one function to use NAME/IP authmethod stock.
    • Version 1.4 (July 2nd)
      • Add sm_tsay
      • sm_say and sm_chat now prefixed in green.
      • NAME and IP authmethods should now work with chat triggers.
    • Version 1.3 (June 29th)
      • Minor changes to conform to plugin submission rules
      • Added sm_basevotes_version Cvar
    __________________
    I'm a blast from the past!

    Last edited by ferret; 07-26-2007 at 20:39.
    ferret is offline
    SWE_Bert
    Junior Member
    Join Date: Oct 2006
    Old 06-20-2007 , 15:32   Re: [PLUGIN] basechat
    #2

    Nice xD
    SWE_Bert is offline
    theY4Kman
    Join Date: Jun 2007
    Location: Yak
    Old 06-20-2007 , 16:01   Re: [PLUGIN] basechat
    #3

    Great plugin, mate Once there are a few more features from Mani in SourceMod, I'll cut off dependency on it, making sure to intall this (Even though it'll be a base plugin by then ).
    __________________
    http://y4kstudios.com
    Is that loud enough? Oh, while I have you, check out Viper.
    theY4Kman is offline
    Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
    SWE_Bert
    Junior Member
    Join Date: Oct 2006
    Old 06-20-2007 , 16:34   Re: [PLUGIN] basechat
    #4

    All console commands work, but "@ <message>" don't.
    SWE_Bert is offline
    theY4Kman
    Join Date: Jun 2007
    Location: Yak
    Old 06-20-2007 , 18:30   Re: [PLUGIN] basechat
    #5

    It's @<message>, without a space in between. However, I wouldn't think that would affect it =/
    __________________
    http://y4kstudios.com
    Is that loud enough? Oh, while I have you, check out Viper.
    theY4Kman is offline
    Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
    pRED*
    Join Date: Dec 2006
    Old 06-20-2007 , 19:28   Re: [PLUGIN] basechat
    #6

    Code:
        if (text[1] != '@')         return Plugin_Continue;

    I think that 1 should be a 0...

    Test this and see if it works (just changed both times the above appeared to a 0)
    Attached Files
    File Type: sp Get Plugin or Get Source (basechat.sp - 2746 views - 5.0 KB)
    pRED* is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 06-20-2007 , 21:23   Re: [PLUGIN] basechat
    #7

    No. It should be text[1]. text[0] is a quote mark.

    It works for me on the 988 and 990 builds of SM. As always, grab the latest build and try again.
    __________________
    I'm a blast from the past!
    ferret is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 06-20-2007 , 21:25   Re: [PLUGIN] basechat
    #8

    My bad. I fixed a bug, tested it, but then forgot to save it. I have uploaded the corrected version.
    __________________
    I'm a blast from the past!
    ferret is offline
    yester64
    Senior Member
    Join Date: May 2007
    Old 06-21-2007 , 01:34   Re: [PLUGIN] basechat
    #9

    if you use @psay in chat, it just acts like 'to all'. works only from the console. was that the way it supposed to be? wasnt sure.


    Quote:
    Originally Posted by ferret View Post
    This is a port of adminchat.sma from AMXX. It contains all commands but amx_tsay and amx_csay.

    sm_say - Say to all
    sm_chat - Say to admins
    sm_psay - Say to target (sm_psay target message)
    say @message - say to all
    say_team @message - say to admins

    100% tested
    yester64 is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 06-21-2007 , 09:28   Re: [PLUGIN] basechat
    #10

    Yes. Psay does not have a say trigger.
    __________________
    I'm a blast from the past!
    ferret is offline
    Closed Thread



    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:17.


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