I have a problem with my timer, it keeps saying: UTIL_GetListenServerHost() called from a dedicated server or single-player game.
Can someone help me with fixing this piece of code?
function PLUGIN.builderTime(player, team)
timer.Create("buildtimer", 5, 0, function()
if(player:Team() == TEAM_BUILDER) then
cider.team.make(player, TEAM_CITIZEN);
end
end)
end
-- Add the hook
hook.Add("Think", "builderTime", PLUGIN.builderTime)
Thanks