I’ve been having some problems on my server recently; we use a ranking system based on the number of hours a person has logged on the server. Ever since the last patch, if someone joins the server immediately after a restart and is spawned on the server when it becomes VAC enabled, they loose all of their recorded time.
In order to try to prevent this from happening, I wanted to write a script that would, after a delay, remove a password from the server (that would be used on startup) in order to prevent people from joining until it is safe.
Below is what I have written so far, but it is not working. Could you please help?
local function tempPass() game.ConsoleCommand ('sv_password "" ') end local function tempPassCreate() timer.Create("password_temp", 30, 1, tempPass()) end hook.Add("Initialize", "passhook", tempPassCreate())