06.09.2012, 20:07
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;
}