Files
wnsrc/lua/includes/modules/playerload.lua
lifestorm 94063e4369 Upload
2024-08-04 22:55:00 +03:00

24 lines
592 B
Lua

--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
local loadQueue = {}
hook.Add( "PlayerInitialSpawn", "GM_FullLoadQueue", function( ply )
loadQueue[ply] = true
end )
hook.Add( "SetupMove", "GM_FullLoadInit", function( ply, _, cmd )
if not loadQueue[ply] then return end
if cmd:IsForced() then return end
loadQueue[ply] = nil
hook.Run( "PlayerFullLoad", ply )
end )