Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. @name Spoiler
  2. @inputs
  3. @outputs
  4. @persist Car:entity Sound Finished R G B Red Green Blue Red2 Green2 Blue2 Pressed Spawned F To
  5. @trigger
  6. runOnTick(1)
  7. runOnChat(1)
  8. if(owner():inVehicle() & !F) {F=1 timer("S",1000)}
  9. if(Spawned) {
  10.  
  11. if(owner():inVehicle() & changed(owner():keyPressed("G")) & !owner():keyPressed("G")) {if(!Sound) {Sound=1 holoEntity(2):soundPlayURL("http://free.mp3songurls.com/1407316.mp3")} else {holoEntity(2):soundStopURL() Sound=0} }
  12. if(owner():inVehicle() & changed(owner():keyPressed("F")) & !owner():keyPressed("F")) {
  13. if(Pressed) {Pressed=0} else {
  14.  
  15. Pressed=1
  16. }
  17. if(To) {
  18. To=0
  19. print("Du kannst denn Chat nun normal benutzen")
  20. print("---------------------------------------")
  21. } else {
  22. To=1
  23. print("Gebe nun denn Mp3 Link einfach in denn Chat ein.")
  24. print("-------------------------------------------")
  25. }
  26.  
  27. }
  28. if(Pressed & chatClk(owner())) {
  29. print("2")
  30. Pressed=0
  31. hideChat(1)
  32. print(owner():lastSaid())
  33. entity():soundStopURL()
  34. entity():soundPlayURL(owner():lastSaid())
  35.  
  36. }
  37.  
  38. }
  39. if(clk("S")) {
  40. Spawned=1
  41. print("Bitte lass dich nicht verwirren und druecke G sowie auch F. Es handelt sich lediglich um einen Bug.")
  42. print("--------------------------------------------------------------------------------------")
  43. }
  44. if(chatClk(owner()) & owner():lastSaid()=="!stop") {entity():soundStopURL() hideChat(1)}
  45. holoPos(2,Car:pos()+vec(0,0,80))
  46.  
  47. if(first()) {
  48.  
  49. print("Autoradio & You see me rolling Hotkey, was will man mehr? :D")
  50. print("--------------------------------------------------------------")
  51. print("F - Radio")
  52. print("G - You see me rolling")
  53. print("!stop - Musik stoppen")
  54. print("--------------------------------------------------------------")
  55.  
  56. Finished=0
  57. Red2=1
  58. holoCreate(2)
  59. Car=entity():isWeldedTo()
  60. Car:setColor(vec(196,0,0),255)
  61. holoAlpha(2,0)
  62.  
  63. entity():setAlpha(0)
  64. lightCreate(1)
  65.  
  66. lightBrightness(1,500)
  67. }
  68. lightPos(1,Car:pos()+vec(0,0,3))
  69. lightColor(1,vec(R,G,B))
  70. #Red Fadein
  71. if(Finished==0 & Red2==1) {
  72. R=R+1
  73. if(R==50) {Finished=1}
  74. }
  75. #Red Fadeout
  76. if(Finished==1 & Red2==1) {
  77. R=R-1
  78. if(R==2) {Finished=0 Red2=0 Green2=1 R=0}
  79. }
  80. #Green Fadein
  81. if(Finished==0 & Green2==1) {
  82. G=G+1
  83. if(G==50) {Finished=1}
  84. }
  85. #Green Fadeout
  86. if(Finished==1 & Green2==1) {
  87. G=G-1
  88. if(G==2) {Finished=0 Green2=0 Blue2=1 G=0}
  89. }
  90. #Blue Fadein
  91. if(Finished==0 & Blue2==1) {
  92. B=B+1
  93. if(B==50) {Finished=1}
  94. }
  95. #Blue Fadeout
  96. if(Finished==1 & Blue2==1) {
  97. B=B-1
  98. if(B==2) {Finished=0 Blue2=0 Red2=1 B=0}
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement