Garry's Mod

Garry's Mod

ПОМЕР (Atomic Heart Death Screen)
This topic has been locked
ZakeJoonson Jul 13, 2021 @ 12:58am
Changing the text for a Server
Is there a way to force the text to be the same for everyone on a server?
< >
Showing 1-7 of 7 comments
probably console
person who made this mod said u can do it via convar
WeirdCat Oct 22, 2021 @ 4:13am 
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  [developer] Mar 8 @ 1:01pm 
Originally posted by 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
:steamsalty: 3 years late to this conversation lmao
Last edited by ZakeJoonson; Mar 8 @ 7:15pm
< >
Showing 1-7 of 7 comments
Per page: 1530 50