View difference between Paste ID: YUsw46AE and FhFqdAsZ
SHOW: | | - or go back to the newest paste.
1-
@name Tripwire
1+
@name Tripwire Alarm
2-
@inputs Gate
2+
@inputs Ranger
3-
@outputs 
3+
#This is a comment line. I use these to explain shit,
4-
@persist 
4+
#and it doesn't actually do anything. It's just... A comment...
5-
@trigger 
5+
6
7-
if(1) {
7+
runOnTick(1) #Runs on the server's tick rate. Don't ask.
8-
    concmd("say\ /r Fading door one has opened! Get to base!")
8+
runOnChat(1) #Required for anything to do with chat.
9
10
# "if(1)" would not work. If the input named "Ranger" drops below the value of 40,
11-
    soundPlay(0,5,"/ambient/alarms/combine_bank_alarm_loop4.wav")
11+
# then it does the other shit.
12
if (Ranger < 40) {
13
    #concmd is disabled due to it being very exploitable. Removed it.
14
    #I like spam. Spam is good.
15-
if(owner():steamID() != "STEAM_0:1:46669467
15+
16-
"{
16+
17-
concmd("say\ /aadvert I'm an E2 thief, but unfortunatly for me, Stephen put an anti-theft program in his chip. Now I request an admin to talk to me about my thievery")
17+
18
    print(_HUD_PRINTCENTER,"Fading door one has opened!")
19-
concmd("gmod_cleanup")
19+
20-
}
20+
    #Play on what? You didn't specify. Just delete one.
21
    entity():soundPlay(1,2.023,"ambient/alarms/alarm1.wav")  #Plays on E2.
22
    owner():soundPlay(1,2.023,"ambient/alarms/alarm1.wav")   #Plays on owner (You).
23
}
24
25
26
#I HAVE NO IDEA IF THIS SHIT WORKS, BUT IT SHOULD!