18.11.2012, 15:47
Thanks, I am a begginer scripter though. So I am a bit confused what to do. I use live streams and ranges.
Here is the other part of the script:
Here is the other part of the script:
pawn Код:
if(dialogid == 1 && response)
{
switch(listitem)//playradio
{
case 0:
{ // Top Teen Radio
new Float:X, Float:Y, Float:Z, Float:Distance = 500.0;
GetPlayerPos(playerid, X, Y, Z);
for(new i = 0; i < MAX_PLAYERS; i++)
PlayAudioStreamForPlayer(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=104760", X, Y, Z, Distance, 500);//Teen Top Music
}
case 1:
{ // Top Radio
new Float:X, Float:Y, Float:Z, Float:Distance = 500.0;
GetPlayerPos(playerid, X, Y, Z);
for(new i = 0; i < MAX_PLAYERS; i++)
PlayAudioStreamForPlayer(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1078816", X, Y, Z, Distance, 500);//Top Music Songs
}
case 2:
{ // Classic Hits Radio
new Float:X, Float:Y, Float:Z, Float:Distance = 10.0;
GetPlayerPos(playerid, X, Y, Z);
for(new i = 0; i < MAX_PLAYERS; i++)
PlayAudioStreamForPlayer(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=9472196", X, Y, Z, Distance, 500);//Hit Music (Old and New)
}
case 3:
{ // Rock Radio
new Float:X, Float:Y, Float:Z, Float:Distance = 10.0;
GetPlayerPos(playerid, X, Y, Z);
for(new i = 0; i < MAX_PLAYERS; i++)
PlayAudioStreamForPlayer(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1331010", X, Y, Z, Distance, 500);//Rock
}
case 4:
{ // Top Teen Radio (ALL)
new Float:X, Float:Y, Float:Z, Float:Distance = 100.0;
GetPlayerPos(playerid, X, Y, Z);
for(new i = 0; i < MAX_PLAYERS; i++)
PlayAudioStreamForPlayer(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=104760", X, Y, Z, Distance, 100);//Teen Top Music (ALL)
}
case 5:
{ // Top Radio (ALL)
new Float:X, Float:Y, Float:Z, Float:Distance = 10.0;
GetPlayerPos(playerid, X, Y, Z);
for(new i = 0; i < MAX_PLAYERS; i++)
PlayAudioStreamForPlayer(i, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1078816", X, Y, Z, Distance, 500);//Top Music Songs (ALL)
}
case 6:
{ // Christmas Songs
new Float:X, Float:Y, Float:Z, Float:Distance = 100.0;
GetPlayerPos(playerid, X, Y, Z);
for(new i = 0; i < MAX_PLAYERS; i++)
PlayAudioStreamForPlayer(i, "http://listen.sky.fm/public3/christmas.pls", X, Y, Z, Distance, 100);//Christmas Music
}
case 7:
{ // Christmas Songs (ALL)
new Float:X, Float:Y, Float:Z, Float:Distance = 500.0;
GetPlayerPos(playerid, X, Y, Z);
for(new i = 0; i < MAX_PLAYERS; i++)
PlayAudioStreamForPlayer(i, "http://listen.sky.fm/public3/christmas.pls", X, Y, Z, Distance, 500);//Christmas Music (ALL)
}
}
}