forked from Nebual/NadmodPP
Fix the cleanup panel
This commit is contained in:
parent
e88a2499d1
commit
310dda995c
@ -186,8 +186,9 @@ function NADMOD.AdminPanel(Panel, runByNetReceive)
|
|||||||
end
|
end
|
||||||
for k, ply in pairs(player.GetAll()) do
|
for k, ply in pairs(player.GetAll()) do
|
||||||
if IsValid(ply) then
|
if IsValid(ply) then
|
||||||
Panel:Button( ply:Nick().." ("..(counts[ply:Nick()] or 0)..")", "nadmod_cleanupprops", ply:EntIndex() )
|
local steamid = ply:SteamID()
|
||||||
dccount = dccount - (counts[ply:Nick()] or 0)
|
Panel:Button( ply:Nick().." ("..(counts[steamid] or 0)..")", "nadmod_cleanupprops", ply:EntIndex() )
|
||||||
|
dccount = dccount - (counts[steamid] or 0)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user