[Projeto] Random Musicas
#4

pawn Code:
#include a_samp

#define MAX_MUSICS 3  // 3 pois temos 3 mъsicas

new RandomURL[MAX_MUSICS][100];

public OnGameModeInit()
{
    format(RandomURL[0], 100, "http://www.radiohunter.com.br/master/tocadores/mediaplayer/fullhdfont.asx"); // Comeзa a contar do 0
    format(RandomURL[1], 100, "http://somafm.com/tags.pls");
    format(RandomURL[2], 100, "http://tunein01.t4e.dj/main/isdn/mp3");
    return 1;
}

public OnPlayerConnect(playerid)
{
    new rand = random(MAX_MUSICS);
    PlayAudioStreamForPlayer(playerid, RandomURL[rand]);
    return 1;
}
Acabei de fazer aqui, ve se ta certo ae ^^
Reply


Messages In This Thread
Random Musicas - by Hydra_RuleZ - 06.09.2012, 18:59
Re: Random Musicas - by Joao Pedro - 06.09.2012, 19:03
Re: Random Musicas - by Hydra_RuleZ - 06.09.2012, 19:11
Re: Random Musicas - by Kuddy - 06.09.2012, 20:07
Re: Random Musicas - by Pedro_BML - 06.09.2012, 21:50
Re: Random Musicas - by Joao Pedro - 06.09.2012, 21:51
Re: Random Musicas - by Pedro_BML - 06.09.2012, 22:02
Re: Random Musicas - by @Riichard - 06.09.2012, 22:07
Re: Random Musicas - by Pedro_BML - 06.09.2012, 22:11
Re: Random Musicas - by Joao Pedro - 06.09.2012, 22:20

Forum Jump:


Users browsing this thread: 4 Guest(s)