Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Alarm Cred: Thijmen
- @inputs [Ranger]:entity
- @outputs
- @persist
- @trigger
- runOnChat(1)
- if(Ranger:isAlive() && !Ranger:owner())
- {
- soundPlay(0,0,"ambient/alarms/alarm_citizen_loop1.wav")
- }
- if(chatClk(owner()))
- {
- LastSaid=owner():lastSaid():explode(" ")
- if(LastSaid[1,string] == "!commands")
- {
- hideChat(1)
- printColor(vec(0,0,0),"[",vec(255,40,40),"Alarm System",vec(0,0,0),"]",vec(0,255,0)," !stopalarm ",vec(999,999,999),"- Resets / stops the alarm.")
- }
- if(LastSaid[1,string] == "!stopalarm")
- {
- hideChat(1)
- soundStop(0)
- printColor(vec(0,0,0),"[",vec(255,40,40),"Alarm System",vec(0,0,0),"]",vec(999,999,999)," Alarm has been stopped / resetted!")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement