diff options
Diffstat (limited to 'gamemode/core/mapstich/sv_mapstich.lua')
| -rw-r--r-- | gamemode/core/mapstich/sv_mapstich.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gamemode/core/mapstich/sv_mapstich.lua b/gamemode/core/mapstich/sv_mapstich.lua index 7a90189..bd671bd 100644 --- a/gamemode/core/mapstich/sv_mapstich.lua +++ b/gamemode/core/mapstich/sv_mapstich.lua @@ -5,6 +5,7 @@ local q = nrequire("core/database/sv_queries.lua") print("Hello from sv_mapstich.lua") util.AddNetworkString("art_zonechange") +util.AddNetworkString("art_sendtoserver") local dontupdatedisconnect = {} @@ -60,7 +61,11 @@ net.Receive("art_zonechange",function(len,ply) print("fquery was", fquery) print("Running query:",qc) MySQLite.query(fquery,function(data) - ply:ConCommand("connect " .. zone.toserver) + --Holy shit fuck garry for breaking this + --ply:ConCommand("connect " .. zone.toserver) + net.Start("art_sendtoserver") + net.WriteString(zone.toserver) + net.Send(ply) end,function(err,sql) print("Query error:") print("Query",sql) |
