@name Fire Mixtape
@model models\props/cs_office/radio.mdl
@persist Music:array Index

if(first() | duped()){
    Music = array("music/fortress_reel.wav","music/hl2_song31.mp3","music/misfortune_teller.wav","music/hl2_song23_suitsong3.mp3")
    }



runOnChat(1)
if(chatClk(owner())){
    CC = owner():lastSaid():explode(" ")
    if(CC:string(1)=="/back"){
        hideChat(1)
        Index--
        }
    if(CC:string(1)=="/next"){
        hideChat(1)
        Index++
        }
    if(CC:string(1)=="/play"){
        soundPlay(0,0,Music[Index, string])
        }
    if(CC:string(1)=="/stop"){
        soundStop(0,0)
        }
    }


if(Index > Music:count()){
    Index = 1
    }
if(Index < 1){
    Index = Music:count()
    }


