[FilterScript] ~Zeros~Radio System Simple
#1

~Zeros~Radio System Simple

Hey guys i present to you the simple radio script made by me useind CMD:

What dose it have?

well its not an advance system but it is dialog with 7 stations (can easly be changed)



This is the current music it has on it but i think one or 2 of them have stoped streaming witch can easy be fixed
so here is the current stations!

Code:
Dance. R&B. Rock. Electro.Country.Top40.DirtyMix
So here is the commands for it

Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
CMD:radio(playerid,params[]).
{
ShowPlayerDialog(playerid,90,DIALOG_STYLE_LIST,"EuG Music List Created by zero","1. Dance\r\n2. R&B\r\n3. Rock\r\n4. Electro\r\n5.Country\r\n6.Top40\r\n7.DirtyMix","Start", "Quit");
}
CMD:stopradio(playerid,params[])
{
StopAudioStreamForPlayer(playerid);//This is the function we need to stop the audio from streaming the music.
return 1;
}
return 0;
}
Define as many cases as you need but were \r\n7.DirtyMix" add another 1 like example (\r\n8.pop") <<

Code:
case 2://Case 2 is the third line we put in ShowPlayerDialog(\r\n3.)
Then to play that radio you have picked you can change the url

Code:
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=21585/");//This function will play our desired radio. So we have to put the url between its brackets.
Reply
#2

Very nice job.
Reply
#3

Quote:
Originally Posted by rangerxxll
View Post
Very nice job.
thank you

Reply
#4

Thanks for this but really? You are still using strcmp?
Reply
#5

Quote:
Originally Posted by new121
View Post
Thanks for this but really? You are still using strcmp?
i am new to scripting so i really dont know how 2 make bigger stuff this was my first and i will keep trying to inprove
Reply
#6

not bad
Reply
#7

Quote:
Originally Posted by Hansolue
View Post
not bad
Thanks just currently working on it going to add more radios


http://pastebin.com/ZUSh3PVd
PHP Code:
~Zeros~Radio System Simple 
Reply
#8

Quote:
Originally Posted by [EuG]ZeRoGoD
View Post
i am new to scripting so i really dont know how 2 make bigger stuff this was my first and i will keep trying to inprove
Well it is better to learn with a good command processor. Why learn to script using outdated methods? and you don't have to add that image after every post just go up to where it says User CP and edit your signature
Reply
#9

Quote:
Originally Posted by new121
View Post
Well it is better to learn with a good command processor. Why learn to script using outdated methods? and you don't have to add that image after every post just go up to where it says User CP and edit your signature
hmmm thanks for advice i will make it updated tonight ps this has still woked for me and not let me down yet so im guessing it cant be that bad right
Reply
#10

Quote:
Originally Posted by new121
View Post
Thanks for this but really? You are still using strcmp?
not anymore since its now updated to zcmd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)