01.07.2013, 23:44
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.
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.