Files
VnUtest/garrysmod/lua/autorun/server/sv_hostname_force.lua

18 lines
402 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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()