PDA

View Full Version : PlayAudioStreamForPlayer


lsreskjn
14/02/2014, 05:51 PM
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/sx65ro38vb/gamestartup.mp3


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);

Ananisiki
14/02/2014, 06:02 PM
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");

lsreskjn
14/02/2014, 06:07 PM
ohh god, im so stupid...how simple..thanks