PDA

View Full Version : Audio Stream?


TBS.TheCyber
18/06/2012, 10:27 AM
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.

Michael@Belgium
18/06/2012, 10:48 AM
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.

TBS.TheCyber
18/06/2012, 10:54 AM
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 :cool: