diff options
Diffstat (limited to 'gamemode/core')
| -rw-r--r-- | gamemode/core/mapstich/sv_mapstich.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gamemode/core/mapstich/sv_mapstich.lua b/gamemode/core/mapstich/sv_mapstich.lua index bd671bd..6a2ae38 100644 --- a/gamemode/core/mapstich/sv_mapstich.lua +++ b/gamemode/core/mapstich/sv_mapstich.lua @@ -43,8 +43,9 @@ concommand.Add("artery_saveplayer",function(ply,cmd,args) end) net.Receive("art_zonechange",function(len,ply) - + SavePlayerData(ply) timer.Simple(0.5,function() + if not IsValid(ply) then return end local zone = ply:GetCurrentZone("artery_serverchange") if zone then dontupdatedisconnect[ply] = true @@ -71,8 +72,6 @@ net.Receive("art_zonechange",function(len,ply) print("Query",sql) print("Error",err) end) - - SavePlayerData(ply) end end) end) |
