Just another Radio

well here it is feel free to use it…[CODE]if (playertouchsme) { timeout=.05; toweapons Pie’s Radio; }

if (weaponfired) {
say2 “/listen” to play#b
“/stop” to stop;
}

if (playerchats){
if(startswith(/listen,#c)) {
play MUSIC FILE HERE
}
}

if (playerchats){
if(strequals(#c,/stop)){
stopmidi;
setplayerprop #c,;
}
};[/CODE]
kind of messed up bet free to edit it to your liking and add it anywhere

why is there a timeout in the first command?
why is there a ; at the end of the script?
and how is it a radio if it can only play one file?

I didn’t mean an actual radio if you don’t like it don’t use it…


 if (playertouchsme)toweapons Pie's Radio;

if (weaponfired)
  say2 "/listen" to play#b
"/stop" to stop;

if (playerchats){
  
  if(startswith(/listen,#c)) {
    play #e(8,60,#c); // If that doesn't work tokenize #c or w/e
    sleep 0.05;
    setplayerprop #c,Playing: #e(8,60,#c);
  }
  
  if(strequals(#c,/stop)){
    stopmidi;
    setplayerprop #c,;
  }
  
}

Aint scripted in foreverness. Works. I tested with using stef3.mid in the editor.

if (playertouchsme)toweapons Pie's Radio;

if (weaponfired)
  say2 "/listen" to play#b
"/stop" to stop;

if (playerchats){
  
  if(startswith(/listen,#c)) {
    play #e(8,[color=red]-1[/color],#c); // If that doesn't work tokenize #c or w/e
    sleep 0.05;
    setplayerprop #c,Playing: #e(8,[color=red]-1[/color],#c);
  }
  
  if(strequals(#c,/stop)){
    stopmidi;
    setplayerprop #c,;
  }
  
}

a few days too late, but fix’d

-1 no limit I take it then?

Think of it like an EOF (End of File)

Ah. I think I get it. So, it just goes by the length of whatever the string length is then.

yeah

Cool cool. Thanks for that handy piece of information. Not that I script anymore XD

exodus had a cool radio. i think you made it, or did i?

Yeh. I made it. Had a GUI and shit and playlist type thing. You could add your own files to a playlist and skip through them. Showed the current position in the song and the length I believe.

post that shit