Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- whitelist = {
- "name1",
- "name2",
- "name3",
- "name4",
- "name5",
- "name6"
- }
- blacklist = {
- "name1",
- }
- local function table_contains(table,element)
- for _,value in pairs(table) do
- if value == element then
- return true
- end
- end
- return false
- end
- while true do
- local event,player = os.pullEvent("player")
- if table_contains(whitelist,player) then
- print("Welcome: "..player.." !")
- rs.setBundledOutput("bottom",colors.orange)
- sleep(2)
- rs.setBundledOutput("bottom",colors.white)
- end
- if table_contains(blacklist,player) then
- print("no dice "..player)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment