Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- locID = "" --Put a name for the location reference
- scr = peripheral.wrap("top");
- modem = peripheral.wrap("left");
- timeInt = 1;
- function sendData(user)
- modem.transmit(28812,0,user);
- end;
- while true do
- players = scr.getPlayers();
- for i=1,#players do
- for key,value in pairs(players[i]) do
- if key == "name" and value ~=nil and value ~= "ClockCycle" then
- local data = locID .. " - " .. value;
- sendData(data);
- end;
- end;
- end;
- sleep(timeInt);
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement