@name Music Player
@inputs Play
@outputs 
@persist 
@trigger 
@model models/props_lab/citizenradio.mdl

runOnChat(1)
A=owner():lastSaid():explode(" ")
if(A[1,string]=="1" & chatClk(owner())){
    soundStop(10)
    soundStop(9)
    soundStop(8)
    soundStop(7)
    soundStop(6)
    soundStop(5)
    soundStop(4)
    soundStop(3)
    soundStop(2)
    soundStop(11)
    soundPlay(1,0,"@ambient/music/bongo.wav")
    owner():soundPlay(1,0,"@ambient/music/bongo.wav")
}
if(A[1,string]=="2" & chatClk(owner())){
    soundStop(10)
    soundStop(9)
    soundStop(8)
    soundStop(7)
    soundStop(6)
    soundStop(5)
    soundStop(4)
    soundStop(3)
    soundStop(11)
    soundStop(1)
    soundPlay(2,0,"@ambient/music/country_rock_am_radio_loop.wav")
    owner():soundPlay(2,0,"@ambient/music/country_rock_am_radio_loop.wav")
}
if(A[1,string]=="3" & chatClk(owner())){
    soundStop(10)
    soundStop(9)
    soundStop(8)
    soundStop(7)
    soundStop(6)
    soundStop(5)
    soundStop(4)
    soundStop(11)
    soundStop(2)
    soundStop(1)
    soundPlay(3,0,"@ambient/music/cubanmusic1.wav")
    owner():soundPlay(3,0,"@ambient/music/cubanmusic1.wav")
}
if(A[1,string]=="4" & chatClk(owner())){
    soundStop(10)
    soundStop(9)
    soundStop(8)
    soundStop(7)
    soundStop(6)
    soundStop(5)
    soundStop(11)
    soundStop(3)
    soundStop(2)
    soundStop(1)
    soundPlay(4,0,"@ambient/music/dustmusic1.wav")
    owner():soundPlay(4,0,"@ambient/music/dustmusic1.wav")
}

#if(A[1,string]=="4" & chatClk(owner())){
    #soundStop(10)
   # soundStop(9)
  #  soundStop(8)
 #   soundStop(7)
#    soundStop(6)
   # soundStop(5)
  #  soundStop(11)
 #   soundStop(3)
#    soundStop(2)
   # soundStop(1)
  #  soundPlay(4,0,"@ambient/music/dustmusic1.wav")
 #   owner():soundPlay(4,0,"@ambient/music/dustmusic1.wav")
#}






if(A[1,string]=="5" & chatClk(owner())){
    soundStop(10)
    soundStop(9)
    soundStop(8)
    soundStop(7)
    soundStop(6)
    soundStop(11)
    soundStop(4)
    soundStop(3)
    soundStop(2)
    soundStop(1)
    soundPlay(5,0,"@ambient/music/dustmusic2.wav")
    owner():soundPlay(5,0,"@ambient/music/dustmusic2.wav")
}
if(A[1,string]=="6" & chatClk(owner())){
    soundStop(10)
    soundStop(9)
    soundStop(8)
    soundStop(7)
    soundStop(11)
    soundStop(5)
    soundStop(4)
    soundStop(3)
    soundStop(2)
    soundStop(1)
    soundPlay(6,0,"@ambient/music/dustmusic3.wav")
    owner():soundPlay(6,0,"@ambient/music/dustmusic3.wav")
}
if(A[1,string]=="7" & chatClk(owner())){
    soundStop(10)
    soundStop(9)
    soundStop(8)
    soundStop(11)
    soundStop(6)
    soundStop(5)
    soundStop(4)
    soundStop(3)
    soundStop(2)
    soundStop(1)
    soundPlay(7,0,"@ambient/music/flamenco.wav")
    owner():soundPlay(7,0,"@ambient/music/flamenco.wav")
}
if(A[1,string]=="8" & chatClk(owner())){
    soundStop(10)
    soundStop(9)
    soundStop(11)
    soundStop(7)
    soundStop(6)
    soundStop(5)
    soundStop(4)
    soundStop(3)
    soundStop(2)
    soundStop(1)
    soundPlay(8,0,"@ambient/music/latin.wav")
    owner():soundPlay(8,0,"@ambient/music/latin.wav")
}
if(A[1,string]=="9" & chatClk(owner())){
    soundStop(11)
    soundStop(10)
    soundStop(8)
    soundStop(7)
    soundStop(6)
    soundStop(5)
    soundStop(4)
    soundStop(3)
    soundStop(2)
    soundStop(1)
    soundPlay(9,0,"@ambient/music/mirame_radio_thru_wall.wav")
    owner():soundPlay(9,0,"@ambient/music/mirame_radio_thru_wall.wav")
}
if(A[1,string]=="10" & chatClk(owner())){
    soundStop(11)
    soundStop(9)
    soundStop(8)
    soundStop(7)
    soundStop(6)
    soundStop(5)
    soundStop(4)
    soundStop(3)
    soundStop(2)
    soundStop(1)
    soundPlay(10,0,"@ambient/music/piano1.wav")
    owner():soundPlay(10,0,"@ambient/music/piano1.wav")
}
if(A[1,string]=="11" & chatClk(owner())){
    soundStop(10)
    soundStop(9)
    soundStop(8)
    soundStop(7)
    soundStop(6)
    soundStop(5)
    soundStop(4)
    soundStop(3)
    soundStop(2)
    soundStop(1)
    soundPlay(11,0,"@ambient/music/piano2.wav")
    owner():soundPlay(11,0,"@ambient/music/piano2.wav")
}
if(A[1,string]=="stop" & chatClk(owner())){
    soundStop(11)
    soundStop(10)
    soundStop(9)
    soundStop(8)
    soundStop(7)
    soundStop(6)
    soundStop(5)
    soundStop(4)
    soundStop(3)
    soundStop(2)
    soundStop(1)

}
