Advertisement
Eliaseeg

Detector de vestuario

Jun 8th, 2014
459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | None | 0 0
  1. pew = {}
  2. part = "1;3,0,0,20,0,0,0,0,0"
  3. function Look(playerName, title)
  4. if title:find(part) then                            
  5. print(playerName)
  6. table.insert(pew,playerName)
  7. end
  8. end
  9.  
  10. function eventLoop()
  11. tfm.exec.setUIMapName("Jugadores con el look "..part.." :"..table.concat(pew,", "))
  12. end
  13.  
  14. function eventChatCommand (playerName, command)
  15.           args = {}
  16.           for arg in command:gmatch ("[^%s]+") do
  17.           table.insert (args, arg)
  18. end    
  19.         if args[1] == "update" then
  20.                 pew = {}
  21.                 for pname,player in pairs(tfm.get.room.playerList) do
  22. Look(pname,tfm.get.room.playerList[pname].look)
  23. print(tfm.get.room.playerList[pname].look)
  24. end
  25. end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement