tenta assim:
function onSay(cid, words, param, channel)
local players = getPlayersOnline()
local strings = ""
for i=1, #players do
if getPlayerAccess(players[i]) < 3 then
strings = strings .. ", " .. getCreatureName(players[i])
end
end
strings = strings .. "."
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player(s) online:")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, strings)
return true
end
obs: nem testei, qualquer erro me fala.








info
Grupo: Cavaleiro
Registrado: 02/07/08
Posts: 156
Reputação: +4
bom vim pediar a vcs que me ajudem Pressiso de um script de ver quem esta online no ot mais que so aparesece o Nome Sem Aparecer Level
E nem a Conta do Adm ou Alguem da staff tem como alguem conseguir esse script pra min..
no momento estou usando esse
function onSay(cid, words, param, channel)
local players = getPlayersOnline()
local strings = {""}
local i, position = 1, 1
local added = false
for _, pid in ipairs(players) do
if(added) then
if(i > (position * 7)) then
strings[position] = strings[position] .. ","
position = position + 1
strings[position] = ""
else
strings[position] = i == 1 and "" or strings[position] .. ", "
end
end
if getPlayerAccess(pid) < 3 then
strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "]"
i = i + 1
added = true
else
added = false
end
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, (i - 1) .. " player(s) online:")
for i, str in ipairs(strings) do
if(str:sub(str:len()) ~= ",") then
str = str .. "."
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, str)
end
return true
end
agradeço xDD