[FilterScript] ~Zeros~Radio System Simple - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] ~Zeros~Radio System Simple (
/showthread.php?tid=325147)
~Zeros~Radio System Simple -
[EuG]ZeRoGoD - 12.03.2012
~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.
Re: ~Zeros~Radio System Simple -
rangerxxll - 12.03.2012
Very nice job.
Re: ~Zeros~Radio System Simple -
[EuG]ZeRoGoD - 12.03.2012
Quote:
Originally Posted by rangerxxll
Very nice job.
|
thank you
Re: ~Zeros~Radio System Simple -
new121 - 12.03.2012
Thanks for this but really? You are still using strcmp?
Re: ~Zeros~Radio System Simple -
[EuG]ZeRoGoD - 12.03.2012
Quote:
Originally Posted by new121
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
Re: ~Zeros~Radio System Simple -
Hansolue - 12.03.2012
not bad
Re: ~Zeros~Radio System Simple -
[EuG]ZeRoGoD - 12.03.2012
Quote:
Originally Posted by Hansolue
not bad
|
Thanks just currently working on it going to add more radios
http://pastebin.com/ZUSh3PVd
PHP Code:
~Zeros~Radio System Simple
Re: ~Zeros~Radio System Simple -
new121 - 12.03.2012
Quote:
Originally Posted by [EuG]ZeRoGoD
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
Re: ~Zeros~Radio System Simple -
[EuG]ZeRoGoD - 13.03.2012
Quote:
Originally Posted by new121
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
Re: ~Zeros~Radio System Simple -
[EuG]ZeRoGoD - 05.04.2012
Quote:
Originally Posted by new121
Thanks for this but really? You are still using strcmp?
|
not anymore since its now updated to zcmd