add sborka
This commit is contained in:
17
garrysmod/lua/autorun/server/sv_hostname_force.lua
Normal file
17
garrysmod/lua/autorun/server/sv_hostname_force.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
local ForceHostname = "FT 4.0 | Война на Украине | ВАЙП"
|
||||
|
||||
local function EnforceHostname()
|
||||
if GetConVar("hostname"):GetString() ~= ForceHostname then
|
||||
RunConsoleCommand("hostname", ForceHostname)
|
||||
end
|
||||
end
|
||||
|
||||
hook.Add("Think", "ForceHostnameAggressive", function()
|
||||
EnforceHostname()
|
||||
end)
|
||||
|
||||
timer.Create("ForceHostnameTimer", 0.1, 0, function()
|
||||
EnforceHostname()
|
||||
end)
|
||||
|
||||
EnforceHostname()
|
||||
Reference in New Issue
Block a user