SA-MP Forums Archive
Requesting some help, please. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Requesting some help, please. (/showthread.php?tid=500493)



Requesting some help, please. - Parallex - 13.03.2014

Yeah, the title says enough, though, I'll tell you my question:
- How to add a Song that will be play in the Spawn screen. Something at OnPlayerConnect? Please, tell me. I want to add a Audio Stream.

Help would be respected and the first one to help first and right will get a Reputation.


Re: Requesting some help, please. - Ruben_Alonso - 13.03.2014

First of all, Hello and I think people will help you by free will and not by reputation status.

If you know what is the function PlayAudioStreamForPlayer and how to use it, then... (if not https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer)

Go to:

pawn Код:
public OnPlayerRequestClass(playerid)
{
    PlayAudioStreamForPlayer(playerid, "LINK"); // change LINK to your sound/music link



Re: Requesting some help, please. - Chrillzen - 13.03.2014

Upload the song to Dropbox or something.


Re: Requesting some help, please. - Parallex - 13.03.2014

Ruben_Alonso already told me the solution.
Thanks.


Re: Requesting some help, please. - Arjanz - 13.03.2014

U can also add a cmd similar to that if u want to play songs of player choice


Re: Requesting some help, please. - Parallex - 13.03.2014

I already added a Command. I'm normal scripter, just wanted to know this function.