SA-MP Forums Archive
How to play a specific song via command - 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: How to play a specific song via command (/showthread.php?tid=387040)



How to play a specific song via command - ShawtyyMacJunior - 23.10.2012

Im familiar with the AudioStream, but I have only used it to where it plays music like a playlist.
ex. HOT 108 JAMZ Online Radio Station.

Is there any way i could just play one specific song if i type a command?


Re: How to play a specific song via command - Abhishek. - 23.10.2012

****** or serach in wiki about this
PlayAudioStreamForPlayer: Plays a audio stream for a player. (https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer)
PlayerPlaySound: Play a sound for a player.(https://sampwiki.blast.hk/wiki/PlayerPlaySound)


Re: How to play a specific song via command - Kitten - 23.10.2012

Код:
CMD:music(playerid)
{
     PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=32999");
     return 1;
}