aboutsummaryrefslogtreecommitdiff
path: root/gamemode/core/mapstich
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/core/mapstich')
-rw-r--r--gamemode/core/mapstich/sv_mapstich.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/gamemode/core/mapstich/sv_mapstich.lua b/gamemode/core/mapstich/sv_mapstich.lua
index 91b4ec2..5fd8129 100644
--- a/gamemode/core/mapstich/sv_mapstich.lua
+++ b/gamemode/core/mapstich/sv_mapstich.lua
@@ -1,3 +1,7 @@
+---Bits to help with transfering players.
+-- Transfers players between areas when they hit a art_serverchange zone
+--@module sv_mapstich.lua
+
--Make sure zones are loaded already
nrequire("sv_mysqlite.lua")
if not nrequire("sh_zones.lua") then return end
@@ -39,6 +43,9 @@ local function SavePlayerData(ply)
end)
end
+---Saves the player.
+-- Saves the player as if they had disconnected, or transfered to another level
+--@concommand artery_saveplayer
concommand.Add("artery_saveplayer",function(ply,cmd,args)
SavePlayerData(ply)
end)