Random Music
#2

Make an array of audio streams, use the random function to generate a number between 0 and MAX_AUDIO_STREAMS, where MAX_AUDIO_STREAMS is the number of audio streams that you included in your array and use PlayAudioStreamForPlayer(playerid, AudioStreamsArray[random_variable]);

That is the main idea, you should be able to develop it.
Reply


Messages In This Thread
Random Music - by itachi - 12.02.2015, 18:43
Re: Random Music - by HazardouS - 12.02.2015, 18:46
Re: Random Music - by itachi - 12.02.2015, 18:53
Re: Random Music - by HazardouS - 12.02.2015, 18:57
Re: Random Music - by itachi - 12.02.2015, 19:01
Re: Random Music - by HazardouS - 12.02.2015, 19:02
Re: Random Music - by itachi - 12.02.2015, 19:04
Re: Random Music - by HazardouS - 12.02.2015, 19:07
Re: Random Music - by itachi - 12.02.2015, 19:09

Forum Jump:


Users browsing this thread: 6 Guest(s)