This is the code:
local normalScoreGorget = 0
local maxMegjelenit = 1
--------------------
for i, row in pairs(scoreboard_rows) do
if (i > normalScoreGorget and elem < maxMegjelenit) then
elem = elem + 1
if getElementType(row) == "player" then
---DX things here........
elseif getElementType(row) == "team" then
---DX things here........
end
end
end
end
bindKey("mouse_wheel_down", "down",
function()
if normalScoreGorget < #scoreboard_rows - maxMegjelenit then
normalScoreGorget = normalScoreGorget + 1
end
end
)
bindKey("mouse_wheel_up", "down