Garry's Mod

Garry's Mod

ПОМЕР (Atomic Heart Death Screen)
此主题已被锁定
ZakeJoonson 2021 年 7 月 13 日 上午 12:58
Changing the text for a Server
Is there a way to force the text to be the same for everyone on a server?
< >
正在显示第 1 - 7 条,共 7 条留言
Nahno 2021 年 7 月 28 日 上午 3:42 
idk
Nahno 2021 年 7 月 28 日 上午 3:43 
probably console
Nahno 2021 年 8 月 27 日 上午 4:11 
person who made this mod said u can do it via convar
WeirdCat 2021 年 10 月 22 日 上午 4:13 
2
Sure. All you need to do is create a lua file in garrysmod/lua/autorun and add a hook that will execute the needed commands on client when they spawn for the first time.

Here's an example of how I made it, you can basically copypaste the code

if SERVER then hook.Add("PlayerInitialSpawn", "ForceDeathScreenSettings", function(ply) ply:ConCommand("cl_pomer_text you died") end) end

here are the other convars of the addon in case you want to use them also
"cl_pomer" = "1"
"cl_pomer_col_b" = "30"
"cl_pomer_col_bg_b" = "30"
"cl_pomer_col_bg_g" = "36"
"cl_pomer_col_bg_r" = "255"
"cl_pomer_col_g" = "36"
"cl_pomer_col_r" = "186"
"cl_pomer_sound" = "1"
"cl_pomer_stopsound" = "1"
"cl_pomer_text" = ""
"cl_pomer_time_mult" = "1"
"sv_pomer_time" = "0"
"sv_pomer_time_mult" = "1"
YuRaNnNzZZ  [开发者] 2024 年 3 月 8 日 下午 1:01 
引用自 WeirdCat
Sure. All you need to do is create a lua file in garrysmod/lua/autorun and add a hook that will execute the needed commands on client when they spawn for the first time.

Here's an example of how I made it, you can basically copypaste the code

if SERVER then hook.Add("PlayerInitialSpawn", "ForceDeathScreenSettings", function(ply) ply:ConCommand("cl_pomer_text you died") end) end
overrding user's personal settings is a ♥♥♥♥♥♥ thing to do

if you do that, you are a terrible server owner who should be never allowed to own/operate a server
ZakeJoonson 2024 年 3 月 8 日 下午 7:14 
:steamsalty: 3 years late to this conversation lmao
最后由 ZakeJoonson 编辑于; 2024 年 3 月 8 日 下午 7:15
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50