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

[NetS2S] Multi-Server Chat / Admin Utility


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Daedilus
Junior Member
Join Date: Dec 2008
Plugin ID:
751
Plugin Version:
1.0.8
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Server 2 Server - Chat / Admin Chat / Admin Commands Utility
    Old 02-02-2009 , 21:11   [NetS2S] Multi-Server Chat / Admin Utility
    Reply With Quote #1

    NetS2S Multi-Server Chat / Admin Utility

    NetS2S gives players and admins the ability to chat with each other on different servers and in different games. The menu provides server / sorted player lists as well as messaging, instant messaging, and commands for admins that can be executed across servers (allowing admins to monitor and govern multiple servers, reducing the amount of people you have to entrust with admin).

    The player list is sorted by admins with ban privileges, then by admins with kick privileges, and finally by player names.

    Admins with ban privileges have an @ preceding their name
    Admins with kick privileges have a + preceding their name
    players are listed without tags

    Dependencies:

    Socket Extension: http://forums.alliedmods.net/showthread.php?t=67640

    Sending Messages / Commands Using The Menu:

    The menus provide options to message the server(s) or a player. Selecting a message option brings up a session menu. All 'say' is then directed to the server(s) or a player until 'End Session' is selected from the session menu. Unlike instant messaging, where a player can accept/deny an IM, sending a message will always reach its intended target. Once the session is ended, 'say' is restored to normal. The same holds true for server commands.

    Instant Messaging:

    Unlike sm_nsay, where a onetime message is sent to a player, instant messaging creates a private channel between both players. This allows messages from 'say' to be directed to each other. The dest player receives an accept/deny menu, while the initiating player has a cancel menu. Once the dest player accepts the session, both players will receive an end session menu. Both players 'say' gets reset back to normal when either player denies/cancels/ends the session. This may sound complicated at first, but all the details are taken care of by the menu system; making it easy to use

    Build Options:

    The following defines (Located in Core/Defines.sp) allows server admins to choose which features get built into the plugin (which can help to reduce the size of the plugin).

    NETS2S_LOG (0/1, default 1) - Enables the plugin to create a log file
    NETS2S_DEBUG (0/1, default 0) - Enables debug output to be displayed in the server console
    NETS2S_ENABLE_PLAYER_IM (0/1, default 1) - Enables player instant message sessions
    NETS2S_ENABLE_SERVER_CMDS (0/1, default 1) - Enables cmds to be sent to the server(s) using sm_ncmd
    NETS2S_MENU_SERVER_CMDS (0/1, default 0) - Adds menu items to command the server(s) using 'say' (Must have NETS2S_ENABLE_SERVER_CMDS = 1)

    The admin command menu (shown to admins upon selecting a player) can be extended by
    adding commands to the g_menu_cmds array in NetS2S.sp - OnPluginStart():line(143)
    Note: These commands are not affected by the above build options!

    ex. (string format = menu_text¦cmd¦cmd_args¦admin_flag) Note: ¦ is a broken pipe

    Format(cmd, MAX_CMD_LENGTH, "Kick Player¦sm_kick¦\"%%s\"¦%d", ADMFLAG_KICK);
    PushArrayString(g_menu_cmds, cmd);

    Format(cmd, MAX_CMD_LENGTH, "Ban One Hour¦sm_ban¦\"%%s\" 60 [NetS2S] Ban¦%d", ADMFLAG_BAN);
    PushArrayString(g_menu_cmds, cmd);

    CVars:

    sm_nets2s_master - Set to 1 to make the server the master (master only)
    sm_nets2s_ip - Set this to the master's IP address (used by the local server to connect to the master)
    sm_nets2s_port - Set this to the master's port number (used by the local server to connect to the master)
    sm_nets2s_pwd - Set this to the master's password (used by the local server to connect to the master)
    sm_nets2s_name - The name used to register the local server with the master (used as the name of the server in the server list)
    sm_nets2s_reconnect - The time to wait before reconnecting to the master
    sm_nets2s_debug - Set this to 1 to enable debug trace output

    Commands:

    sm_nlist - Lists the local servers connected to the master (from the cmd line on the master server only)
    sm_nmenu - This menu combines the functionality of sm_nsay, sm_nchat, and sm_ncmd into an easy to use GUI

    sm_nsay - sends a message to the server(s) or specified player.
    usage: sm_nsay msg or sm_nsay server|msg or sm_nsay server|player|msg or sm_nsay @player|msg

    sm_nchat - Sends a message to the admins on the server(s).
    usage: sm_nchat msg or sm_nchat server|msg

    sm_ncmd - Executes a command on the server(s).
    usage: sm_ncmd cmd or sm_ncmd server|cmd

    How To Install:

    Copy the NetS2S.smx file into your "addons\sourcemod\plugins" directory.
    Next, add the following to the server.cfg file for each server:

    (You only need to configure one server to be the master server.
    This can be any server except "Left 4 Dead” as pointed out by Mosalar.)

    Master Server:

    sm_nets2s_master 1
    sm_nets2s_port <Port Number>
    sm_nets2s_pwd <Password>
    sm_nets2s_name <Name>
    sm_nets2s_debug 0

    Local Server:

    sm_nets2s_master 0
    sm_nets2s_ip <Master’s IP Address>
    sm_nets2s_port <Master’s Port Number>
    sm_nets2s_pwd <Password>
    sm_nets2s_name <Name>
    sm_nets2s_reconnect <Seconds>
    sm_nets2s_debug 0

    Source Code:

    NetS2S was built with Visual Studio 2005 using SourcePawn for Visual Studio: http://wiki.alliedmods.net/Building_..._Visual_Studio

    You can use whatever tool you want to build the plugin. Just open NetS2S.sp with your favorite IDE or console and compile. Enjoy...

    Credits:

    Based on the Server Chat Relay plugin by FLOOR_MASTER
    using the Socket Extension created by sfPlayer

    Special thanks to Mosalar and budznetwork.com
    This plugin would not be possible without his help

    Attached Files
    File Type: smx NetS2S.smx (34.4 KB, 761 views)
    File Type: zip NetS2S.v1.0.8.zip (48.1 KB, 1260 views)

    Last edited by Daedilus; 11-12-2009 at 01:09.
    Daedilus is offline
    Icettiflow
    Senior Member
    Join Date: Jan 2009
    Old 02-02-2009 , 22:30   Re: NetS2S
    Reply With Quote #2

    This is a genius plugin.
    Icettiflow is offline
    Mosalar
    Senior Member
    Join Date: Jul 2004
    Location: Tampa Fl
    Old 02-03-2009 , 06:14   Re: NetS2S
    Reply With Quote #3

    Woot! I is special!

    Anyone who wants to see/use/test this can see it in action on any of our servers. Hit our main page for a server list, www.budznetwork.com.

    One thing Daedilus forgot to mention, you can not use a L4D server for the master. Because of the hibernation mode it no worky :-) And if you have L4D servers in the array, they will not show in the list if they are hibernating. They will only show and be accessible if they have players on them.

    This was also tested on DoDS, CSS, TF2, FoF, L4D, HL2DM, and Hidden servers with perfect results.

    Last edited by Mosalar; 02-04-2009 at 17:56.
    Mosalar is offline
    SAMURAI16
    BANNED
    Join Date: Sep 2006
    Old 02-04-2009 , 09:00   Re: NetS2S
    Reply With Quote #4

    really nice job

    I wonder how Liam approved this, is still on New Plugins
    SAMURAI16 is offline
    Send a message via MSN to SAMURAI16
    Daedilus
    Junior Member
    Join Date: Dec 2008
    Old 02-04-2009 , 09:47   Re: NetS2S
    Reply With Quote #5

    Liam accidentally approved it when he was looking at it.
    __________________
    I am cool enough to join #Tsunami. Are you?
    Daedilus is offline
    {7~11} TROLL
    Senior Member
    Join Date: Oct 2008
    Location: Atlanta,Georgia
    Old 02-04-2009 , 15:05   Re: NetS2S
    Reply With Quote #6

    this is cool one feature if its possible would be cool to add an xfire message sender into it
    __________________
    {7~11} TROLL is offline
    NedStar
    Senior Member
    Join Date: Apr 2005
    Location: The Netherlands
    Old 02-06-2009 , 13:06   Re: NetS2S
    Reply With Quote #7

    Quote:
    Originally Posted by Icettiflow View Post
    This is a genius plugin.
    __________________
    NedStar is offline
    Send a message via MSN to NedStar
    Mosalar
    Senior Member
    Join Date: Jul 2004
    Location: Tampa Fl
    Old 02-07-2009 , 01:16   Re: NetS2S
    Reply With Quote #8

    It's beyond genius...

    I'm really surprised to see the lack of posts and kudos. I realize that it's very in depth, but it has made life so easy for our community.
    Mosalar is offline
    flubber
    Senior Member
    Join Date: Oct 2007
    Old 02-11-2009 , 15:48   Re: [NetS2S] Multi-Server Chat / Admin Utility
    Reply With Quote #9

    I don't get it i've got installed on 2 serveurs this plugin it's launching fine, but i got a lot of :
    Quote:
    L 02/11/2009 - 215:20: [NetS2S] Connected to master @ 217.70.189.000:27016
    L 02/11/2009 - 215:20: [NetS2S] Disconnected from the master @ 217.70.189.000:27016
    L 02/11/2009 - 215:25: [NetS2S] Connected to master @ 217.70.189.000:27016
    after debug set to 1 - i got that :

    L 02/11/2009 - 22:04:51: [NetS2S Error] OnLocalSocketError() : Socket Error - Name: Spy, Type: CONNECT_ERROR, Number: 111

    Server side i got this :
    L 02/11/2009 - 221:03: [NetS2S] Master server start on port 27016
    L 02/11/2009 - 221:03: [NetS2S Error] OnMasterError() : Socket Error - Name: Uber, Type: BIND_ERROR, Number: 98

    After some time the master is banning the other machine for rcon spamming. Is the password the rcon? cause i've tried that doesn't work either.

    Last edited by flubber; 02-11-2009 at 16:32.
    flubber is offline
    recon0
    Veteran Member
    Join Date: Sep 2007
    Location: US
    Old 02-11-2009 , 20:34   Re: [NetS2S] Multi-Server Chat / Admin Utility
    Reply With Quote #10

    This looks really cool.
    __________________
    recon0 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 19:33.


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