SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/02/2014, 05:51 PM   #1
lsreskjn
Big Clucker
 
lsreskjn's Avatar
 
Join Date: Mar 2013
Posts: 100
Reputation: 0
Default PlayAudioStreamForPlayer

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);
lsreskjn is offline   Reply With Quote
Old 14/02/2014, 06:02 PM   #2
Ananisiki
High-roller
 
Join Date: Mar 2010
Posts: 1,063
Reputation: 5
Default Re: PlayAudioStreamForPlayer

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");
Ananisiki is offline   Reply With Quote
Old 14/02/2014, 06:07 PM   #3
lsreskjn
Big Clucker
 
lsreskjn's Avatar
 
Join Date: Mar 2013
Posts: 100
Reputation: 0
Default Re: PlayAudioStreamForPlayer

ohh god, im so stupid...how simple..thanks
lsreskjn is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Help] PlayAudioStreamForPlayer tomsalmon Scripting Help 5 24/03/2013 01:53 AM
PlayAudioStreamForPlayer Help KingyKings Scripting Help 4 22/11/2012 03:29 PM
PlayAudioStreamForPlayer() zDivine Scripting Help 6 05/11/2012 09:29 AM
Help with PlayAudioStreamForPlayer jaydon Scripting Help 1 24/04/2012 10:34 AM
PlayAudioStreamForPlayer help N0FeaR Scripting Help 5 30/12/2011 12:24 AM


All times are GMT. The time now is 09:20 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.