Files
wnsrc/gamemodes/helix/plugins/cinematictext/sv_plugin.lua
lifestorm 73479cff9e Upload
2024-08-04 22:55:00 +03:00

27 lines
855 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 PLUGIN = PLUGIN
util.AddNetworkString("openCinematicSplashMenu")
util.AddNetworkString("triggerCinematicSplashMenu")
net.Receive("triggerCinematicSplashMenu", function(_, client)
if not client:IsAdmin() then return end
net.Start("triggerCinematicSplashMenu")
net.WriteString(net.ReadString()) -- text
net.WriteString(net.ReadString()) --bigtext
net.WriteUInt(net.ReadUInt(6), 6) --duration
net.WriteBool(net.ReadBool()) -- blackBars
net.WriteBool(net.ReadBool()) -- music
net.WriteColor(net.ReadColor()) -- color
net.Broadcast()
end)