mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
35
lua/imagetool/sv_hooks.lua
Normal file
35
lua/imagetool/sv_hooks.lua
Normal file
@@ -0,0 +1,35 @@
|
||||
--[[
|
||||
| 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)
|
||||
Reference in New Issue
Block a user