Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = peripheral.wrap("back")
- local data = p.getPlayers()
- local playerCounter = 0
- local playerList = {}
- local isCanilsen = false
- --for i = 1, #tblPlayer do
- -- print( tblPlayer[i] )
- --end
- for i,j in pairs(data) do
- playerCounter = playerCounter + 1
- playerList[i] = j["name"]
- print(j["name"])
- end
- for i,j in pairs(playerList) do
- if j == "canilsen" then
- isCanilsen = true
- else
- isCanilsen = false
- end
- end
- if isCanilsen == true then
- print("Hello!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement