Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Spoiler
- @inputs
- @outputs
- @persist Car:entity Sound Finished R G B Red Green Blue Red2 Green2 Blue2 Pressed Spawned F To
- @trigger
- runOnTick(1)
- runOnChat(1)
- if(owner():inVehicle() & !F) {F=1 timer("S",1000)}
- if(Spawned) {
- 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} }
- if(owner():inVehicle() & changed(owner():keyPressed("F")) & !owner():keyPressed("F")) {
- if(Pressed) {Pressed=0} else {
- Pressed=1
- }
- if(To) {
- To=0
- print("Du kannst denn Chat nun normal benutzen")
- print("---------------------------------------")
- } else {
- To=1
- print("Gebe nun denn Mp3 Link einfach in denn Chat ein.")
- print("-------------------------------------------")
- }
- }
- if(Pressed & chatClk(owner())) {
- print("2")
- Pressed=0
- hideChat(1)
- print(owner():lastSaid())
- entity():soundStopURL()
- entity():soundPlayURL(owner():lastSaid())
- }
- }
- if(clk("S")) {
- Spawned=1
- print("Bitte lass dich nicht verwirren und druecke G sowie auch F. Es handelt sich lediglich um einen Bug.")
- print("--------------------------------------------------------------------------------------")
- }
- if(chatClk(owner()) & owner():lastSaid()=="!stop") {entity():soundStopURL() hideChat(1)}
- holoPos(2,Car:pos()+vec(0,0,80))
- if(first()) {
- print("Autoradio & You see me rolling Hotkey, was will man mehr? :D")
- print("--------------------------------------------------------------")
- print("F - Radio")
- print("G - You see me rolling")
- print("!stop - Musik stoppen")
- print("--------------------------------------------------------------")
- Finished=0
- Red2=1
- holoCreate(2)
- Car=entity():isWeldedTo()
- Car:setColor(vec(196,0,0),255)
- holoAlpha(2,0)
- entity():setAlpha(0)
- lightCreate(1)
- lightBrightness(1,500)
- }
- lightPos(1,Car:pos()+vec(0,0,3))
- lightColor(1,vec(R,G,B))
- #Red Fadein
- if(Finished==0 & Red2==1) {
- R=R+1
- if(R==50) {Finished=1}
- }
- #Red Fadeout
- if(Finished==1 & Red2==1) {
- R=R-1
- if(R==2) {Finished=0 Red2=0 Green2=1 R=0}
- }
- #Green Fadein
- if(Finished==0 & Green2==1) {
- G=G+1
- if(G==50) {Finished=1}
- }
- #Green Fadeout
- if(Finished==1 & Green2==1) {
- G=G-1
- if(G==2) {Finished=0 Green2=0 Blue2=1 G=0}
- }
- #Blue Fadein
- if(Finished==0 & Blue2==1) {
- B=B+1
- if(B==50) {Finished=1}
- }
- #Blue Fadeout
- if(Finished==1 & Blue2==1) {
- B=B-1
- if(B==2) {Finished=0 Blue2=0 Red2=1 B=0}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement