PDA

View Full Version : Connect players to other server.



NemanjA
25th July 2013, 14:01
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

randall
25th July 2013, 15:06
In GSC:


game["menu_command"] = "clientcmd";
precacheMenu(game["menu_command"]);
.....
self setClientCvar("clientcmd", "connect 80.69.77.181:28960");
self openMenuNoMouse( game["menu_command"] );
self closeMenu();


In clientcmd.menu


#include "ui/menudef.h"
{
menuDef
{
name "clientcmd"
rect 0 0 1 1
visible 0
fullscreen 0

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

iCore
27th July 2013, 21:08
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:


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

Sense
15th August 2013, 07:16
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.