local a = {}
local function gay(ply, model, ent)
a[ply] = a[ply] or {}
table.insert(a[ply], ent)
end
local function gay2(ply, ent)
a[ply] = a[ply] or {}
table.insert(a[ply], ent)
end
hook.Add("PlayerSpawnedEffect", "удаляй пропы", gay)
hook.Add("PlayerSpawnedProp", "удаляй пропы", gay)
hook.Add("PlayerSpawnedRagdoll", "удаляй пропы", gay)
hook.Add("PlayerSpawnedNPC", "удаляй пропы", gay2)
hook.Add("PlayerSpawnedSENT", "удаляй пропы", gay2)
hook.Add("PlayerSpawnedSWEP", "удаляй пропы", gay2)
hook.Add("PlayerSpawnedVehicle", "удаляй пропы", gay2)
hook.Add("PlayerDisconnected", "удаляй пропы", function(ply)
local obkak = a[ply]
if obkak then
for z, v in ipairs(obkak) do
if IsValid(v) then
v:Fire("FadeAndRemove", "", 0)
end
end
a[ply] = nil
end
end)