Quick Join Server Code

I want to connect 2 servers together.

Is there anyway, I can get an easy script in which it would be,
someone typing something “!evocity”(lets say)
and it connects to a certain GMOD server IP.

Well there are 3 ways you can do this. And you can find all the information about connecting clients to new IP on Google.

--goes in autorun/redirect.lua
hook.Add( "PlayerSay", "ChatCommands", function(ply, text)
	if (string.lower(text) == "!evocity" ) then --Did the player say the specific command?
		ply:SendLua("LocalPlayer():ConCommand('connect IP')")
		return "" --Keeps chat box from printing command

Credit: http://forums.ulyssesmod.net/index.php/topic,7040.0.html

Thanks alot, goodman!

[editline]14th June 2014[/editline]

Goodman, another quick question,
is it possible if it can show the person, after typing the command,
will say throughout the server “____ is connecting to evocity.”

add before return “”

  for k, v in pairs(player.GetAll()) do v:ChatPrint( "Player " .. ply:Nick() .. " is connecting to evocity." )


Haven’t tested. So I might have missed something.