PlayAudioStreamForPlayer?
#1

Is it possible to play your own music with PlayAudioStreamForPlayer?
Maybe i need to stream some music?
Because I just want one track at the register part for my intro.
And I saw some server that have only one song playing with your are at the login part.
So maybe somebody know a way to do this, because it should be very nice.

Thanks.
Reply
#2

Yeah, just put in the url of a peice of music.

PlayAudioStreamForPlayer(playerid, "MUSIC URL HERE");

Then

StopAudioStreamForPlayer(playerid);
Reply
#3

pawn Код:
public OnPlayerConnect(playerid)
{
    PlayAudioStreamForPlayer(playerid,"http://url.url");
    return 1;
}

public OnPlayerSpawn(playerid)
{
    StopAudioStreamForPlayer(playerid);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)