Files
wnsrc/lua/imagetool/sv_hooks.lua
lifestorm 94063e4369 Upload
2024-08-04 22:55:00 +03:00

35 lines
1.1 KiB
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/
--]]
--[[
© AsterionStaff 2022.
This script was created from the developers of the AsterionTeam.
You can get more information from one of the links below:
Site - https://asterion.games
Discord - https://discord.gg/CtfS8r5W3M
developer(s):
Selenter - https://steamcommunity.com/id/selenter
——— Chop your own wood and it will warm you twice.
]]--
-- Отправляем только что подключившимуся игроку все картинки на карте
hook.Add("PlayerInitialSpawn", "image.PlayerInitialSpawn", function(client)
local config = ImageTool:GetConfig() or {}
local map = game.GetMap()
config[map] = config[map] or {}
for k, v in pairs(config[map]) do
ImageTool:SendImage(client, k, v)
end
end)