I need to make it possible to teleport a player from one server to another if they have triggered a trigger I know it can be done because the PE servers have one it teleports you from the GMP server to the TF2TD servers.
So can some one please help I have been trying to work this out for nearly a month now and no luck
I did this as a central station map once, the train to a server would come and take you into a dark tunnel where you would go through s trigger and a âPoint_clientcommandâ would shoot you over to that labeled server (labeled train platforms) of course if that server went down, then you would be fucked. i thought of putting buttons to press to make a âclosedâ sign and the trains would stop for that server, but i got lazy and slightly irritated with â'Thisguy463 has disconnected fromt he serverâ âsomedude1234 has disconnected from the serverâ due to the people being shot to the dm and rp servers. sigh i wish our three servers were still up so we could do that. :crying:
[editline]12:19 AM[/editline]
Damn! i should have made it look like you were getting shot through internet cables, using folder trains!
That would have brought a new perspective to those servers xD, anyway. goodluck with your map! :fuckyou:
If itâs for gmod, look into getting a simple lua entity that allows you to change the serverâs IP from a simple text file. It would mean that you donât need to recompile the map every time you want to have a different server connected.
I whipped up a trigger SENT that makes it a bit easier.
Itâs a brush-based SENT that allows you to either set an IP directly, or set a text-file from which it reads the IP.
If you want a use a text-file you have to put it in the âdataâ-directory of gmod, and ONLY put the IP in there, nothing else!
Anyway, hereâs what you can do/set/change:
[IMG_THUMB]http://filesmelt.com/downloader/trigger_serverconnect.jpg[/IMG_THUMB] Keyvalues:
[ul]
[li]ip: The IP of the server the players should connect to.[/li] [li]textfile: If set, it will read the IP from the specified file. (Overwrites IP-keyvalue/SetIP-input)[/li][/ul]
Flags:
[ul]
[li]Start Disabled[1]: If checked, this trigger will start inactive. You can activate it by using the enable/toggle inputs[/li] [li]Admins Only[16]: If checked, only admins are allowed to use this trigger.[/li][/ul]
Inputs:
[ul]
[li]Enable: Enables the entity.[/li] [li]Disable: Disables the entity.[/li] [li]Toggle: Toggles the disabled/enabled state of this entity[/li] [li]SetIP: Set the IP to which the players should connect to.[/li] [li]SetIPFile: Sets the Text File to read the IP from. (Overwrites IP-keyvalue/SetIP-input)[/li][/ul]
Outputs:
[ul]
[li]OnStartTouch: Is fired when a player has touched the entity and begins reconnecting to the new server.[/li][/ul]
Download:FileSmelt Wiki page:trigger_serverconnect
A forge game data file is included too, so you just have to add that in hammer and it will appear in the brush-based entity class drop-down menu.