General > Developers Corner
Server Redirect (Command & Auto)
Decicus:
IP looks good to me. I even found the server on GameTracker: http://www.gametracker.com/server_info/198.50.26.34:27306
Eccid:
This works fine for me. It allowed me to connect to your server.
--- Code: ---hook.Add( "PlayerSay", "TTN Chat Commands", function(ply, text)
if (string.lower(text) == "!newserver" ) then --Did the player say the specific command?
ply:SendLua("LocalPlayer():ConCommand('connect 198.50.26.34:27306')")
return "" --Keeps chat box from printing command
end
end)
--- End code ---
goodman854:
--- Quote from: Eccid on February 08, 2014, 11:00:45 AM ---This works fine for me. It allowed me to connect to your server.
--- Code: ---hook.Add( "PlayerSay", "TTN Chat Commands", function(ply, text)
if (string.lower(text) == "!newserver" ) then --Did the player say the specific command?
ply:SendLua("LocalPlayer():ConCommand('connect 198.50.26.34:27306')")
return "" --Keeps chat box from printing command
end
end)
--- End code ---
--- End quote ---
You changed your code from
("connect", "IP.ADRESS.GOES.HERE")
to
('connect 198.50.26.34:27306')
It works now for me after that.
Thank you. Solved.
Navigation
[0] Message Index
[*] Previous page
Go to full version