Advertisement
SoundKiller777

Untitled

May 7th, 2011
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. #[==================================================
  2. Platey Rises Again
  3. ===================================================]#
  4.  
  5. @name Platey Rises Again
  6.  
  7. @inputs
  8.  
  9. @outputs
  10.  
  11. @persist
  12. @persist [General Debug]:table
  13.  
  14. @trigger all
  15.  
  16. #[==================================================
  17. Initialization
  18. ===================================================]#
  19.  
  20. if (first())
  21. {
  22. # Triggers:
  23. runOnChat(1)
  24. runOnTick(1)
  25. runOnLast(1)
  26.  
  27. # Check Owner:
  28. if (entity():owner():steamID() != "STEAM_0:0:19425485")
  29. {
  30. printColor(vec(255,0,0),"Plox No Thiefing, Ty KThanxBi.")
  31. selfDestructAll()
  32. }
  33.  
  34. # ToDo
  35. }
  36.  
  37. # Reset:
  38. if (clk("Function: Reset"))
  39. {
  40. reset()
  41. }
  42.  
  43. # Dupe Reset:
  44. if (dupefinished())
  45. {
  46. timer("Function: Reset",5000)
  47. exit()
  48. }
  49.  
  50. # Inputs Check:
  51. if (clk("Example: !->Input1 | !->Input2"))
  52. {
  53. if (clk("Message: No Inputs"))
  54. {
  55. hint("E2: \"" + entity():getName() + "\" has one or more unconnected inputs.",10)
  56. }
  57.  
  58. timer("Function: Reset",5100)
  59. timer("Message: No Inputs",5000)
  60. exit()
  61. }
  62.  
  63. # Deleted / Updated:
  64. if (last())
  65. {
  66. if (removing())
  67. {
  68. printColor(vec(255,0,0),"E2: \"" + entity():getName() + "\" has been removed.")
  69. }
  70. else
  71. {
  72. printColor(vec(0,255,0),"E2: \"" + entity():getName() + "\" has been updated.")
  73. }
  74. }
  75.  
  76.  
  77.  
  78. #[==================================================
  79. Main Code
  80. ===================================================]#
  81.  
  82. # ToDo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement