I have this idea, make a comand like !guildmembers and check all players of your guild online...
Maybe here can have an idea, is for get Staff online:
Maybe here can have an idea, is for get Staff online:
Code:
function onSay(cid, words, param)
local staffList = {}
for _, name in ipairs(getOnlinePlayers()) do
if getPlayerGroupId(getPlayerByName(name)) >= 2 then
table.insert(staffList, name)
end
end
if #staffList == 0 then
doPlayerSendTextMessage(cid, 24, "No hay nadie del Staff conectado..")
else
doPlayerSendTextMessage(cid, 24, "Staff Conectado: " .. table.concat(staffList, ", ") .. ".")
end
return LUA_NO_ERROR
end