Dynamic Radio Filterscript v1! -
Alternative112 - 01.07.2013
I was looking around the forum for a good dynamic filterscript and didn't find any with truly dynamic usability. So I decided to make my own and see no reason why I shouldn't release it.
This filterscript automatically makes a radioStations.txt file in your scriptfiles directory when you load it. You can then add stations to it using this syntax:
Station Name,
URL,
Genre
The filterscript automatically sorts the stations by genre when someone uses /radio, and all the station / URLs that are defined as that genre will show up when someone clicks it!
Some servers (mine included) like to use their own streams for custom music or sounds. Because of this I added the function
playTimedStream(playerid, stream[], time, x, y, z, distance, usePos) {. You can use callRemoteFunction in any of your scripts to call this function and specify how long you want your sound to play before the script automatically restarts a player's radio. It works exactly like PlayAudioStreamForPlayer except you specify a time in milliseconds. This function may be a bit buggy, so please let me know if it doesn't work properly.
ENOUGH TEXT! Now pictures!!
http://i43.tinypic.com/10d5hjd.jpg
http://i40.tinypic.com/5pelh5.jpg
http://i39.tinypic.com/9fxh0o.jpg
Now download!
http://pastebin.com/yVMdS8rG
Constructive criticism, fixes and suggestions are all welcome.
Re: Dynamic Radio Filterscript v1! -
Matt - 18.07.2013
Nice work, i might incorporate this with mine a bit. If you do not mind.
Re: Dynamic Radio Filterscript v1! -
azar2k13 - 14.10.2013
ive tried this but the music doesnt play anyone know why?
Re: Dynamic Radio Filterscript v1! -
alex5695 - 16.10.2013
nice code but it doesn't work for me

(224) : warning 203: symbol is never used: "mycommand"
(224 -- 236) : warning 203: symbol is never used: "radio"
(224 -- 236) : warning 203: symbol is never used: "reloadstations"
Re: Dynamic Radio Filterscript v1! -
alex5695 - 20.10.2013
my problem is solved, my ZCMD file was not the good one, thanks
Re: Dynamic Radio Filterscript v1! -
dakata994 - 21.10.2013
Good job !
You can make a section for roleplay download. I mean you can make it when you are in car to choose radio and when player exit to stop the radio
Re: Dynamic Radio Filterscript v1! -
Akira297 - 21.10.2013
Interesting. I like it 1+