14.08.2011, 16:02
Well first of all: if you want that every player hear the songs: they must install the Audio Client too !
Ok ?
And try this under OnPlayerRequestClass():
Ok ?
And try this under OnPlayerRequestClass():
pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
new randomsongs=random(10);//so 10 random songs
switch(randomsongs)
{
case 0: Audio_Play(playerid,1,false,false,false);//song id 1
case 1: Audio_Play(playerid,2,false,false,false);//song id 2
case 2: Audio_Play(playerid,3,false,false,false);//song id 3
//untill "case 9"
}
}