blob: 62cad3f3046dcd14c0b9e553f507edbe027f2b26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--[[
The client constantly cheks to see if we're in a serverchnage zone
]]
nrequire("sh_zones.lua")
hook.Add("Think","artery_checklevelchange",function()
local z = LocalPlayer():GetCurrentZone()
--print("looks like i'm in zone",z)
if z then
net.Start("art_zonechange")
net.SendToServer()
end
end)
net.Receive("art_sendtoserver",function()
local where = net.ReadString()
LocalPlayer():ConCommand("connect " .. where)
end)
|