isso mesmo, mas dei uma adaptação nele, pois o que vc postou mostra 2 linhas.
ta ai pra quem quizer usar
local config = {
showGamemasters = getBooleanFromString(getConfigInfo('displayGamemastersWithOnlineCommand'))
}
function onSay(cid, words, param)
local players = getPlayersOnline()
local strings = {}
local i = 1
local position = 1
for _, pid in ipairs(players) do
if(i > (position * 7)) then
strings[position] = strings[position] .. ","
position = position + 1
else
strings[position] = i == 1 and "" or strings[position] .. ""
end
if((config.showGamemasters == TRUE or getPlayerCustomFlagValue(cid, PlayerCustomFlag_GamemasterPrivileges) == TRUE or getPlayerCustomFlagValue(pid, PlayerCustomFlag_GamemasterPrivileges) ~= TRUE) and (isPlayerGhost(pid) ~= TRUE or getPlayerAccess(cid) > getPlayerAccess(pid))) then
strings[position] = strings[position] ..''
i = i + 1
end
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, (i - 1) .. " player(s) online no Moekanos Baiak 3.0")
for i, str in ipairs(strings) do
if(str:sub(str:len()) ~= "") then
end
end
return TRUE
end