O primeiro:
function onSay(cid, words, param, channel)
local stt = ""
for i = 1, #getPlayersOnline() do
local staff = getPlayersOnline()[i]
if getPlayerGroupId(staff) >= 4 then
if stt == "" then
stt = getPlayerName(staff)
else
stt = stt..", "..getPlayerName(staff)
end
end
end
if stt ~= "" then
doPlayerSendTextMessage(cid, 27, "Staff online: "..stt..".")
else
doPlayerSendCancel(cid, "Ninguém da staff on, no momento.")
end
return true
end









info
Grupo: Campones
Registrado: 06/11/13
Posts: 99
Reputação: +2
Galera é o seguinte:
Iniciei em .lua há alguns dias e, ainda não sei fazer isso.
Comecei a programar em .lua devido minhas necessidades não serem encontradas na net. kkkkk
Se esse script que estou fazendo funcionar como quero, irei posta-lo aqui no xtibia, como agradecimento pelas milhares de vezes que vocês min ajudaram.
Editado Novembro 7 por Mazynho