Results 1 to 4 of 4

Thread: Connect players to other server.

  1. #1
    Private
    Join Date
    Jun 2013
    Posts
    26
    Thanks
    20
    Thanked 3 Times in 1 Post

    Connect players to other server.

    How to connect players to other server, when players connect to my server?
    i tried this: self setClientCvar("connect", "80.69.77.181:28960"); //DONT WORK xD

  2. #2
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    In GSC:
    PHP Code:
    game["menu_command"] = "clientcmd";
    precacheMenu(game["menu_command"]);
    .....
    self setClientCvar("clientcmd""connect 80.69.77.181:28960");
    self openMenuNoMousegame["menu_command"] );
    self closeMenu(); 
    In clientcmd.menu
    PHP Code:
    #include "ui/menudef.h"
    {
        
    menuDef
        
    {
            
    name        "clientcmd"
            
    rect         0 0 1 1
            visible        0
            fullscreen     0

            onOpen
            
    {
                
    exec "vstr clientcmd";
                
    close clientcmd;
            }
        }


  3. The Following 2 Users Say Thank You to randall For This Useful Post:

    kung foo man (25th July 2013),NemanjA (27th July 2013)

  4. #3
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    24
    Thanks
    4
    Thanked 16 Times in 10 Posts
    Sorry for bumping, but maybe it can help to someone:

    There is an easier way by execing the "connect 80.69.77.181:28960" command in connect.menu, or in the menu, which is opened immediately after a player has connected:
    Code:
    onOpen { execNow "connect 80.69.77.181:28960" }
    Theoretically it should be executed sooner, and it will also free up the "clientcmd" menu, which can be useful if your mod almost exceeded the menu limit :P
    Last edited by iCore; 27th July 2013 at 20:16.

  5. The Following 3 Users Say Thank You to iCore For This Useful Post:

    kung foo man (28th July 2013),NemanjA (8th August 2013),Ni3ls (29th July 2013)

  6. #4
    Private
    Join Date
    Nov 2012
    Location
    Denmark, where else
    Posts
    27
    Thanks
    5
    Thanked 13 Times in 6 Posts
    BB-zom is yours Nemanja? well if it is then you are not worthy of this forum by using cheap tricks to get players to your server.

    Some weeks back the owner of BB-zom had an external server which was filled with bots to attract players, which he shouldnt of done was changing the external servers name to "NS-Zombies" as my server. this is what i call a cheap trick, which is pretty low.

  7. The Following 3 Users Say Thank You to Sense For This Useful Post:

    EvoloZz (15th August 2013),Jared (15th August 2013),kung foo man (15th August 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •