SA-MP Forums Archive
PlayAudioStreamForPlayer? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: PlayAudioStreamForPlayer? (/showthread.php?tid=310360)



PlayAudioStreamForPlayer? - KaleOtter - 11.01.2012

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.


Re: PlayAudioStreamForPlayer? - Rokzlive - 11.01.2012

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

PlayAudioStreamForPlayer(playerid, "MUSIC URL HERE");

Then

StopAudioStreamForPlayer(playerid);


Re: PlayAudioStreamForPlayer? - lamarr007 - 12.01.2012

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

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