No need for this.
This commit is contained in:
parent
21ddf7f62c
commit
7ba3a8d6e8
1 changed files with 5 additions and 5 deletions
|
@ -115,7 +115,7 @@ function CACHE:WaitForBuffer()
|
||||||
end
|
end
|
||||||
|
|
||||||
hook.Add("PlayerInitialSpawn", "noxapi", function(pl)
|
hook.Add("PlayerInitialSpawn", "noxapi", function(pl)
|
||||||
if NDB or pl:IsBot() then return end
|
--[[if NDB or pl:IsBot() then return end
|
||||||
|
|
||||||
local steamid = pl:SteamID()
|
local steamid = pl:SteamID()
|
||||||
local memberlevel = CACHE:Get(steamid)
|
local memberlevel = CACHE:Get(steamid)
|
||||||
|
@ -127,11 +127,11 @@ hook.Add("PlayerInitialSpawn", "noxapi", function(pl)
|
||||||
else
|
else
|
||||||
table.insert(Buffer, {steamid, pl})
|
table.insert(Buffer, {steamid, pl})
|
||||||
CACHE:WaitForBuffer()
|
CACHE:WaitForBuffer()
|
||||||
end
|
end]]
|
||||||
end)
|
end)
|
||||||
|
|
||||||
hook.Add("Initialize", "noxapi", function()
|
hook.Add("Initialize", "noxapi", function()
|
||||||
resource.AddFile("materials/noxiousnet/noxicon.png")
|
--resource.AddFile("materials/noxiousnet/noxicon.png")
|
||||||
|
|
||||||
if not NDB then
|
if not NDB then
|
||||||
CACHE:Load()
|
CACHE:Load()
|
||||||
|
@ -145,7 +145,7 @@ hook.Add("ShutDown", "noxapi", function()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
concommand.Add("noxapi_forcerefresh", function(sender, command, arguments)
|
concommand.Add("noxapi_forcerefresh", function(sender, command, arguments)
|
||||||
if sender._ForcedNoxAPILookup or sender:IsNoxSupporter() or NDB then return end
|
--[[if sender._ForcedNoxAPILookup or sender:IsNoxSupporter() or NDB then return end
|
||||||
|
|
||||||
sender._ForcedNoxAPILookup = true
|
sender._ForcedNoxAPILookup = true
|
||||||
|
|
||||||
|
@ -162,5 +162,5 @@ concommand.Add("noxapi_forcerefresh", function(sender, command, arguments)
|
||||||
end
|
end
|
||||||
|
|
||||||
CACHE:Set(steamid, level)
|
CACHE:Set(steamid, level)
|
||||||
end)
|
end)]]
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in a new issue