@UnderYouFive
thanks, but how do i add it to my server.
I tried it putting in garrysmod/addons/ulx/lua/ulx/modules/sh/joinotherserver.lua like this:
CATEGORY_NAME = "Join other server"
function tttCommand( pl, text, teamonly )
if (text == "!ttt2") then
pl:SendLua( [[ LocalPlayer():ConCommand( 'ttt2.fickschnitzel.cf' ) ]] )
for k, v in pairs(player.GetAll()) do v:ChatPrint( "Player " .. pl:Nick() .. " ist nun auf Fickschnitzel TTT Server #2 via !ttt2" )
end
end
end
hook.Add( "PlayerSay", "User", tttcomand )