Advertisement
j3d247

Untitled

Feb 16th, 2014
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. while true do
  2. scoreboard()
  3. commandBox = b.addBox(10, 20, 80, 60, 0xffffff, 0)
  4. local e, msg = os.pullEvent("chat_command")
  5. local tWords = {}
  6. for match in string.gmatch(msg, "[^ \t]+" ) do
  7. table.insert( tWords, match )
  8. end
  9. --Commands List
  10. if tWords[1] == "winner" then
  11. winner(tWords[2])
  12. elseif tWords[1] == "refresh" then
  13. refreshScreen()
  14. elseif tWords[1] == "addplayer" then
  15. addPlayer(tWords[2])
  16. elseif tWords[1] == "RESTART" then
  17. restartGame()
  18. elseif tWords[1] == "help" then
  19. help()
  20. elseif tWords[1] == "start" then
  21. scoreboard()
  22. end
  23. -- End Commands
  24. end --whiletruedo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement