getAllPlayers


--Get the list of all players in the current archive
--Parameters: -1 all players 0 dead players 1 alive players
local result,num,array=World:getAllPlayers(-1)
--Display the number in the chat box
Chat:sendSystemMsg("There are a total of "..num.." players in the current archive")
--Display the list in the chat box
for i,a in ipairs(array) do
Chat:sendSystemMsg("The first "..i..": "..a)
end