18 lines
422 B
Lua
18 lines
422 B
Lua
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()
|