Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- scoreboard()
- commandBox = b.addBox(10, 20, 80, 60, 0xffffff, 0)
- local e, msg = os.pullEvent("chat_command")
- local tWords = {}
- for match in string.gmatch(msg, "[^ \t]+" ) do
- table.insert( tWords, match )
- end
- --Commands List
- if tWords[1] == "winner" then
- winner(tWords[2])
- elseif tWords[1] == "refresh" then
- refreshScreen()
- elseif tWords[1] == "addplayer" then
- addPlayer(tWords[2])
- elseif tWords[1] == "RESTART" then
- restartGame()
- elseif tWords[1] == "help" then
- help()
- elseif tWords[1] == "start" then
- scoreboard()
- end
- -- End Commands
- end --whiletruedo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement