Safwanrockz

Untitled

Dec 1st, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. teamA={Arkiiss=true,Safwanrockz=true}
  2. function table.contains(t,element)
  3.     if element==nil then
  4.         return false
  5.     end
  6.     for key,value in pairs(t) do
  7.         if value==element then
  8.             return true
  9.         end
  10.     end
  11.     return false
  12. end
  13. function eventChatCommand(name,cmd)
  14.      if cmd == "checkteama" then
  15.          for n,p in pairs(tfm.get.room.playerList) do
  16.              if teamA[n]==tfm.get.room.playerList[n].isDead then
  17.                  print("Dead players in Team A: "..n)
  18.              end
  19.          end
  20.      end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment