• Remember to link your steam account

Lucify's special music e2

imLiaMxo

New member
Code:
@name Lucify's SpCiAl music E2
@persist SongData:table [Select Play Volume]

interval(100)

if(first()){
    runOnChat(1)
  
    function void addSong(SongName:string,URL:string){
        SongData[SongData:count() + 1,array] = array(SongName,URL)
    }
  
    addSong("Shenanigans","https://www.dropbox.com/s/it4hvgvj9s6lugp/Jasiah%20X%20Yung%20Bans%20-%20Shenanigans%20%28prod.%20Jasiah%20%26amp%3B%20Ronny%20J%29.mp3?dl=1")
    addSong("Asian Jake Paul","https://www.dropbox.com/s/6a8kxsdrcjymvih/Asian%20Jake%20Paul%20%28feat.%20Boyinaband%29%20DISS%20TRACK.mp3?dl=1")
    addSong("Baby on Baby","https://www.dropbox.com/s/ggsc2x6zrrfm4fc/DaBaby%20-%20Goin%20Baby%20%28Baby%20on%20Baby%29.mp3?dl=1")
    addSong("Suge","https://www.dropbox.com/s/vqkwaxojhh2lp5s/DaBaby%20-%20Suge%20%28Baby%20on%20Baby%29.mp3?dl=1")
    addSong("Thot","https://www.dropbox.com/s/qida4g8mxqvmvzc/TOKYO%27S%20REVENGE%20-%20THOT%21%20Ft.%20ZEDSU.mp3?dl=1")
  
  
    holoCreate(1)
    holoModel(1,"models/billy_jigsaw.mdl")
    holoParent(1,entity())
    timer("dance",100)
}

if(chatClk(owner())){
    local Msg = owner():lastSaid():explode(" ")
    switch(Msg[1,string]){
        case ".play",
            hideChat(1)
            if(!Msg[2,string]){
                print("You didn't select a song number.")
            } else {
                if(!Play){
                    Select = Msg[2,string]:toNumber()
                    if(Select > SongData:count()){
                        print("Not a valid song.")
                    } else {
                        print("Playing: " + SongData[Select,array][1,string])
                        Play = 1
                    }
                } else {
                    print("Already playing a song.")
                }
            }
        break
        case ".stop",
            hideChat(1)
            Play = 0
        break
        case ".volume",
            hideChat(1)
            if(!Msg[2,string]){
                print("You didn't input a volume value!")
            } else {
                Volume = (Msg[2,string]:toNumber()/100)
                print("Volume set to " + Volume)
            }
        break
        case ".list",
            hideChat(1)
            print("----- Song List -----")
            for(I = 1, SongData:count()){
                print(I + ". " + SongData[I,array][1,string])
            }
            print("----- END OF LIST -----")
        break
    }
}

if(changed(Play)){
    if(!Play & !first()){
        streamStop(1)
        print("Stopped Stream.")
    } else {
        entity():streamStart(1,SongData[Select,array][2,string])
    }
}

if(changed(Volume) & Play){
    streamVolume(1,Volume)
}

if(clk("dance")){
    holoAnim(1,"ACT_GMOD_TAUNT_DANCE")
    timer("dance",(holoAnimLength(1)*900))
}
  
holoColor(1,hsv2rgb(sin(curtime()*3)*-255,1,1))
Thank me later boo x
Also, i'm not adding 51 songs. Do it yourself :L
 
Last edited:
Top