Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #[==================================================
- Platey Rises Again
- ===================================================]#
- @name Platey Rises Again
- @inputs
- @outputs
- @persist
- @persist [General Debug]:table
- @trigger all
- #[==================================================
- Initialization
- ===================================================]#
- if (first())
- {
- # Triggers:
- runOnChat(1)
- runOnTick(1)
- runOnLast(1)
- # Check Owner:
- if (entity():owner():steamID() != "STEAM_0:0:19425485")
- {
- printColor(vec(255,0,0),"Plox No Thiefing, Ty KThanxBi.")
- selfDestructAll()
- }
- # ToDo
- }
- # Reset:
- if (clk("Function: Reset"))
- {
- reset()
- }
- # Dupe Reset:
- if (dupefinished())
- {
- timer("Function: Reset",5000)
- exit()
- }
- # Inputs Check:
- if (clk("Example: !->Input1 | !->Input2"))
- {
- if (clk("Message: No Inputs"))
- {
- hint("E2: \"" + entity():getName() + "\" has one or more unconnected inputs.",10)
- }
- timer("Function: Reset",5100)
- timer("Message: No Inputs",5000)
- exit()
- }
- # Deleted / Updated:
- if (last())
- {
- if (removing())
- {
- printColor(vec(255,0,0),"E2: \"" + entity():getName() + "\" has been removed.")
- }
- else
- {
- printColor(vec(0,255,0),"E2: \"" + entity():getName() + "\" has been updated.")
- }
- }
- #[==================================================
- Main Code
- ===================================================]#
- # ToDo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement