View difference between Paste ID: 1XKrm8HG and 4XKzHCaw
SHOW: | | - or go back to the newest paste.
1-
rednet.open("left")
1+
-- Made by FoxWorn3365
2
3
os.loadAPI("ocs/apis/sensor")
4
5-
-- ID PC LOG
5+
6-
logpc = 4682
6+
7
 
8-
-- MERDOR ID
8+
9-
mid = 1
9+
10
ritardo = 0
11
12
--GIOCATORI PER CUI L'ALLARME NON SI ATTIVA
13
giocatore1 = "djcrash01"
14
giocatore2 = "LORDMALARIA1"
15
giocatore3 = ""
16
giocatore4 = ""
17
giocatore5 = ""
18
19
rs.setOutput(lato, true)
20
os.loadAPI("ocs/apis/sensor")
21
while true do
22
local rsout = rs.getInput("front")
23
ta = se.getTargets()
24
for k,v in pairs(ta) do
25
if v["Name"] == "Player" and k ~= "lego11" and k ~= giocatore1 and k ~= giocatore2 and k ~= giocatore3 and k ~= giocatore4 and k ~= giocatore5 then
26
print("Rilevato giocatore non autorizzato: "..k)
27
rs.setOutput(lato, false)
28
sleep(1)
29
else
30-
if v["Name"] == "Player" and k ~= "lego11" and k ~= giocatore1 and k ~= giocatore2 and k ~= giocatore3 and k ~= giocatore4 and k ~= "FoxWorn3365" then
30+
31
sleep(1)
32-
rednet.send(logpc, "["..mid.."] Rilevato giocatore: "..k)
32+
33-
if rsout == true then
33+
34
end