Bolodefchoco_LUAXML

[Function] system.players

May 27th, 2016
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. --Creator: Bolodefchoco
  2. --Made in: 27/05/2016
  3. --Last update: 27/05/2016
  4. --[[ Notes:
  5.     Does:
  6.         Retorna todos os jogadores vivos e todos os jogadores da sala
  7. ]]--
  8.  
  9. system.players=function()
  10.     local alive,players = {},{}
  11.     for k,v in next,tfm.get.room.playerList do
  12.         if not v.isDead then
  13.             alive[#alive+1]=k
  14.         end
  15.         players[#players+1]=k
  16.     end
  17.     return alive,players
  18. end
Advertisement
Add Comment
Please, Sign In to add comment