How to play random streams ?
#8

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
Like this:
pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
    new url[120];
    switch(random(5))
    {
        case 0: url="...";
        case 1: url="...";
        case 2: url="...";
        case 3: url="...";
        case 4: url="..."; //your URLs in these fields. Add more or less depends of number of your sounds.
    }
    PlayAudioStreamForPlayer(playerid,url,0.0,0.0,0.0,0.0,0);
    return 1;
}
Ohh thank you very much i will give you credit for this function after i release my Version 2 of BFTDM.
Reply


Messages In This Thread
How to play random streams ? - by Rg-Gaming.Info - 11.06.2012, 15:15
Re: How to pay random streams ? - by [MG]Dimi - 11.06.2012, 15:19
Re: How to pay random streams ? - by Stevee - 11.06.2012, 15:19
Re: How to pay random streams ? - by jamax - 11.06.2012, 15:21
Re: How to pay random streams ? - by Rg-Gaming.Info - 11.06.2012, 15:22
Re: How to play random streams ? - by [MG]Dimi - 11.06.2012, 15:29
Re: How to play random streams ? - by nickdodd25 - 11.06.2012, 15:31
Re: How to play random streams ? - by Rg-Gaming.Info - 11.06.2012, 15:32

Forum Jump:


Users browsing this thread: 1 Guest(s)