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

Message Relay


Post New Thread Reply   
 
Thread Tools Display Modes
Author
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Plugin ID:
319
Plugin Version:
1.0.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    relays messages between gameservers
    Old 03-20-2008 , 21:40   Message Relay
    Reply With Quote #1

    This plugin relays messages prefixed with + to other servers.


    Usage:

    say +<message>
    relay a message to other servers.


    Requirements:

    The socket extension 2.3.0 or later


    Installation:

    1. Add the following cvars to your server.cfg:

    sm_mr_localhost "<local ip>:<local port>"
    The local IP should be your gameserver's IP whose server.cfg you are currently editing. The local port can be any unused port above 1024, but NOT the gameserver's port (usually 27015).
    Example: sm_mr_localhost "1.2.3.4:48476".

    sm_mr_remotehost "<remote ip>:<remote port>"
    The remote ip has to be the gameserver's IP you want to relay the messages to, the port has to be the one specified in the other gameserver's server.cfg by sm_mr_localhost.
    Example: sm_mr_remotehost "4.5.6.7:48476".

    sm_mr_password "<password>"
    The password prevents 3rd party servers from relaying messages to your server, make sure it is equal for all your gameservers participating in your relay network.
    Example: sm_mr_password "my secret password".

    2. Copy the compiled plugin (msgrelay.smx) to your sourcemod/plugins directory

    3. Execute your server.cfg (exec server.cfg) and change the map



    Changelog

    Version 1.0.1
    • support and strip quotes from quoted messages
    Version 1.0.0
    • initial public release
    Future
    • support for more than 2 servers
    Attached Files
    File Type: sp Get Plugin or Get Source (msgrelay.sp - 879 views - 4.0 KB)
    File Type: smx msgrelay.smx (4.1 KB, 718 views)

    Last edited by sfPlayer; 03-24-2008 at 11:34.
    sfPlayer is offline
    Fredd
    Veteran Member
    Join Date: Jul 2007
    Old 03-21-2008 , 00:08   Re: Message Relay
    Reply With Quote #2

    amazing nice man,
    just 1 request i know ur working on a support for more than 2 servers, could you add the server hostname to the sentmessage? like [HOSTNAME]player: hi
    __________________
    Need a private coder? AMXX, SourceMOD, MMS? PM me!
    Fredd is offline
    smsmasters
    Member
    Join Date: May 2007
    Old 03-21-2008 , 06:47   Re: Message Relay
    Reply With Quote #3

    Many thanks for this. Also thanks for letting me test this over IRC last night.
    smsmasters is offline
    Mosalar
    Senior Member
    Join Date: Jul 2004
    Location: Tampa Fl
    Old 03-21-2008 , 14:33   Re: Message Relay
    Reply With Quote #4

    Quote:
    Originally Posted by Fredd View Post
    amazing nice man,
    just 1 request i know ur working on a support for more than 2 servers, could you add the server hostname to the sentmessage? like [HOSTNAME]player
    I second this but have it be configurable. My hostnames are all the same since we only run 1 server per mod. And there are a crapload of servers out there with insanely long names(like those with all the fun options in their name). Also, since it's probable you'll be using sql for the multiple server support, can there be an alternate config for those of us who can't do external sql connections?
    Looking forward to this :-)
    Mosalar is offline
    Spitfire20
    Junior Member
    Join Date: Mar 2008
    Old 03-21-2008 , 15:24   Re: Message Relay
    Reply With Quote #5



    Getting those Messages on Startup
    Spitfire20 is offline
    sfPlayer
    Senior Member
    Join Date: Dec 2007
    Location: Germany
    Old 03-21-2008 , 16:57   Re: Message Relay
    Reply With Quote #6

    Looks like I uploaded the wrong smx file, fixed in a min
    sfPlayer is offline
    smsmasters
    Member
    Join Date: May 2007
    Old 03-21-2008 , 18:09   Re: Message Relay
    Reply With Quote #7

    Many thanks, it works great !

    Last edited by smsmasters; 03-21-2008 at 18:24.
    smsmasters is offline
    sfPlayer
    Senior Member
    Join Date: Dec 2007
    Location: Germany
    Old 03-21-2008 , 18:18   Re: Message Relay
    Reply With Quote #8

    you can just press your say button, you have to add say only if you type it directly in your console.

    Btw. I added " stripping in a new version, will release soon.
    sfPlayer is offline
    teleporno
    Junior Member
    Join Date: Mar 2008
    Location: London
    Old 03-23-2008 , 09:57   Re: Message Relay
    Reply With Quote #9

    Well at the moment our community has over 6 source engine servers, all running source mod, and you have no idea how useful this plugin would be, but the main feature we'd be interested in is an admin chat function over all the servers, to report cheaters and the like. So I'll be watching this one.

    Nice work.
    teleporno is offline
    tcviper
    Veteran Member
    Join Date: Oct 2005
    Location: Netherlands
    Old 03-24-2008 , 07:23   Re: Message Relay
    Reply With Quote #10

    Doesnt seem to work on our servers.... when we do + bla it doesnt do anything, plugin is loaded and updated to socket 2.3

    [msgrelay.smx] [MR] Socket error: 5 (errno 10013)
    __________________

    Last edited by tcviper; 03-24-2008 at 07:29.
    tcviper is offline
    Send a message via MSN to tcviper
    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 22:30.


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