aboutsummaryrefslogtreecommitdiff
path: root/gamemode/core/mapstich/cl_mapstich.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/core/mapstich/cl_mapstich.lua')
-rw-r--r--gamemode/core/mapstich/cl_mapstich.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/gamemode/core/mapstich/cl_mapstich.lua b/gamemode/core/mapstich/cl_mapstich.lua
index 65a5208..e1e5fcc 100644
--- a/gamemode/core/mapstich/cl_mapstich.lua
+++ b/gamemode/core/mapstich/cl_mapstich.lua
@@ -10,3 +10,8 @@ hook.Add("Think","artery_checklevelchange",function()
net.SendToServer()
end
end)
+
+net.Receive("art_sendtoserver",function()
+ local where = net.ReadString()
+ LocalPlayer():ConCommand("connect " .. where)
+end)