mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 05:43:46 +03:00
Upload
This commit is contained in:
23
addons/gm_express/lua/includes/modules/playerload.lua
Normal file
23
addons/gm_express/lua/includes/modules/playerload.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
--[[
|
||||
| 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 )
|
||||
Reference in New Issue
Block a user