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=494770)



PlayAudioStreamForPlayer - lsreskjn - 14.02.2014

Hello, this is my script so far..i want ti put 2 soundtracks in it..one for killername and one for the playername..is that possible? the links for the music are here.

http://k007.kiwi6.com/hotlink/ha4beyib1d/laugh_dp.wav

http://k007.kiwi6.com/hotlink/sx65ro...amestartup.mp3


Code:
new playername[24], killername[24];
	GetPlayerName(playerid, playername, sizeof(playername));
	GetPlayerName(killerid, killername, sizeof(killername));
	new string[128];
	format(string,sizeof string,"{C0C0C0}[ KILL-LIST ] Hrбc %s zabil %s.",killername, playername);
	SendClientMessageToAll(0xFFFFFFAA,string);



Re: PlayAudioStreamForPlayer - Ananisiki - 14.02.2014

pawn Code:
new playername[24], killername[24];
GetPlayerName(playerid, playername, sizeof(playername));
GetPlayerName(killerid, killername, sizeof(killername));
new string[128];
format(string,sizeof string,"{C0C0C0}[ KILL-LIST ] Hrбc %s zabil %s.",killername, playername);
SendClientMessageToAll(0xFFFFFFAA,string);
PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/ha4beyib1d/laugh_dp.wav");
PlayAudioStreamForPlayer(killerid, "http://k007.kiwi6.com/hotlink/sx65ro...amestartup.mp3");



Re: PlayAudioStreamForPlayer - lsreskjn - 14.02.2014

ohh god, im so stupid...how simple..thanks