SA-MP Forums Archive
Audio Stream? - 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: Audio Stream? (/showthread.php?tid=352065)



Audio Stream? - TBS.TheCyber - 18.06.2012

Can someone make me a script so i can play this song when someone connects?, Please do NOT link me to samp-wiki or anything related to it, I just want someone to create OnPlayerConnect audio stream playing, and the song will keep playing even if the player spawned till it ends, Here's the song:

Код:
https://dl.dropbox.com/u/79419209/D-Devils%20-%20Sex%20Drugs%20and%20House.mp3
And it would be awesome if you'd tell me where to put it, Thanks.


Re: Audio Stream? - Michael@Belgium - 18.06.2012

pawn Код:
public OnPlayerConnect(playerid)
{
    PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/79419209/D-Devils%20-%20Sex%20Drugs%20and%20House.mp3");
    return 1;
}

public OnPlayerSpawn(playerid)
{
    StopAudioStreamForPlayer(playerid);
    return 1;
}
Just .. simple.


Re: Audio Stream? - TBS.TheCyber - 18.06.2012

Quote:
Originally Posted by Michael@Belgium
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
    PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/79419209/D-Devils%20-%20Sex%20Drugs%20and%20House.mp3");
    return 1;
}

public OnPlayerSpawn(playerid)
{
    StopAudioStreamForPlayer(playerid);
    return 1;
}
Just .. simple.
Thanks alot, Easy for you to say mate, I'm a bit of a noob so don't judge me yet