Safwanrockz

Dead checking

Dec 1st, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. tfm.exec.killPlayer("Wazt")
  2. tfm.exec.killPlayer("Safwanrockz")
  3.  
  4. function table.contains(t,element)
  5.     if element==nil then
  6.         return false
  7.     end
  8.     for key,value in pairs(t) do
  9.         if value==element then
  10.             return true
  11.         end
  12.     end
  13.     return false
  14. end
  15.  
  16. function eventChatCommand(n,c)
  17.      if c=="check" then
  18.          for n,p in pairs(tfm.get.room.playerList) do
  19.          if tfm.get.room.playerList[n].isDead then
  20.              print(n)
  21.          else
  22.              print("No one's dead.")
  23.          end
  24.          end
  25.      end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment