Advertisement
Captain_Admiral

isRightPlayer

May 12th, 2013
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. rednet.open("right")
  2. local playerList = {"TheFatAxeMan", "Stagfish", "Lionsaw22", "Captain_Admiral"}
  3. while true do
  4.  
  5. --Main
  6. clickingPlayer = os.pullEvent("player")
  7.  
  8. for i=0, i<playerList.length do
  9. if playerList[i] == clickingPlayer then
  10. rednet.broadcast("Right Player")
  11. break
  12. end
  13. if i==playerList.length then
  14. rednet.broadcast("Wrong Player")
  15. end
  16.  
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement