SA-MP Forums Archive
Random PlayAudioStreamForPlayer OnPlayerConnect! - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Random PlayAudioStreamForPlayer OnPlayerConnect! (/showthread.php?tid=410809)



Random PlayAudioStreamForPlayer OnPlayerConnect! - Scrillex - 26.01.2013

So as title says..
Is there possiblity to make PlayAudioStreamForPlayer randomly loaded on player connect?


Re: Random PlayAudioStreamForPlayer OnPlayerConnect! - Roach_ - 26.01.2013

Yes, make an array:
pawn Код:
new AudioStreamArr[ ][ ] = { "link", "link", "link" };
And then use the random function


Re: Random PlayAudioStreamForPlayer OnPlayerConnect! - Scrillex - 26.01.2013

Mm thanks I hope it will do what I'am thinking