[FilterScript] Dynamic Radio Filterscript v1!
#1

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.
Reply
#2

Nice work, i might incorporate this with mine a bit. If you do not mind.
Reply
#3

ive tried this but the music doesnt play anyone know why?
Reply
#4

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"
Reply
#5

my problem is solved, my ZCMD file was not the good one, thanks
Reply
#6

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
Reply
#7

Interesting. I like it 1+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)