SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   PlayAudioStreamForPlayer (https://forum.sa-mp.com/showthread.php?t=494770)

lsreskjn 14/02/2014 05:51 PM

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


Ananisiki 14/02/2014 06:02 PM

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

lsreskjn 14/02/2014 06:07 PM

Re: PlayAudioStreamForPlayer
 
ohh god, im so stupid...how simple..thanks


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

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