Music Playing for all?
#1

Quote:

if(dialogid == 2)
{
if(response)
{
if(listitem == 0)
{
SendClientMessageToAll(COLOR_YELLOW, "Rcon Admin Has Choosen To Play Airplanes B.o.B! [/stop to stop it]");
for(new i = 0; i < MAX_PLAYERS; i++)
{
PlayAudioStreamForPlayer(i,"http://www.michiganhiphop.com/wp-content/uploads/2010/04/BoB_feat_Eminem_Hayley_Williams-Airplanes_Part_2-MIHipHop2.mp3");
}
}
if(listitem == 1)
{
SendClientMessageToAll(COLOR_YELLOW, "Rcon Admin Has Choosen To Play Party Rock Anthem! [/stop to stop it]");
for(new i = 0; i < MAX_PLAYERS; i++)
PlayAudioStreamForPlayer(i, "http://www.jakesallstarkaraoke.com/media/LMFAO_-_Party_Rock_Anthem.mp3");
}
if(listitem == 2)
{
SendClientMessageToAll(COLOR_YELLOW, "Rcon Admin Has Choosen To Play Forget You! [/stop to stop it]");
for(new i = 0; i < MAX_PLAYERS; i++)
PlayAudioStreamForPlayer(i, "http://osbornemedia.com/files/Cee-Lo_Green_-_Forget_You.mp3");
}
if(listitem == 3)
{
SendClientMessageToAll(COLOR_YELLOW, "Rcon Admin Has Choosen To Play Car Thief! [/stop to stop it]");
for(new i = 0; i < MAX_PLAYERS; i++)
PlayAudioStreamForPlayer(i, "http://music.freeman-stat.us/bboys/Car_Thief.mp3");
}
if(listitem == 4)
{
SendClientMessageToAll(COLOR_YELLOW, "Rcon Admin Has Choosen To Play Pay Phone! [/stop to stop it]");
for(new i = 0; i < MAX_PLAYERS; i++)
PlayAudioStreamForPlayer(i, "http://a.tumblr.com/tumblr_m47kr6noTw1qddszxo1.mp3");
return 1;
}
}
}
}
}
return 1;
}

Here is my script when the dialog has opened.

The music doesn't actually start?

What am i doing wrong?

+rep for help.
Reply


Messages In This Thread
Music Playing for all? - by KingyKings - 27.07.2012, 12:59
Re: Music Playing for all? - by semara123 - 16.11.2014, 02:28
Re: Music Playing for all? - by Capua - 16.11.2014, 06:14

Forum Jump:


Users browsing this thread: 1 Guest(s)