[FilterScript] MUSIC IN GAME - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] MUSIC IN GAME (
/showthread.php?tid=319722)
MUSIC IN GAME -
swungspeedz - 20.02.2012
I need a filterscript that every body can hear the music when they join. Im new and dont know how to post pastebin in pawno so can you give me a download link for .pwn and .amx. Also so i can change links in .pwn file for music.
Re: MUSIC IN GAME -
Ld Est Ld - 20.02.2012
You should use: "Search button".
There are hundreds of audio systems.
+ Wrong Section.
Re: MUSIC IN GAME -
RockingStar - 20.02.2012
Quote:
Originally Posted by swungspeedz
I need a filterscript that every body can hear the music when they join. Im new and dont know how to post pastebin in pawno so can you give me a download link for .pwn and .amx. Also so i can change links in .pwn file for music. 
|
Go to the last part in Pastebin and Press RMB and Click " Select All " and Copy it then go to Pawno and open Pawn.exe and then open a new file. Hit RMB and delete all and press CTRL + V
LOL! 
and then Compile..If it shows any errors post them here and next time be carefull about the sections because its the wrong one Mate..
Re: MUSIC IN GAME -
Smacky - 20.02.2012
Just simple use SAMP WIKI.

)
Re: MUSIC IN GAME -
jueix - 20.02.2012
easy just put this under on player connect.
Quote:
PlayAudioStreamForPlayer(playerid, "http://k004.kiwi6.com/hotlink/s7tfbfo277/tijon_nightmares_ft_elana_lane_prod_chris_deletto. mp3");
|
but if you want it to play for all players when the person joins use its somert like this
Quote:
PlayAudioStreamForPlayer(i, "http://k004.kiwi6.com/hotlink/s7tfbfo277/tijon_nightmares_ft_elana_lane_prod_chris_deletto. mp3");
|
Re: MUSIC IN GAME -
Niko_boy - 20.02.2012
Just search for it 'radio in samp]
+ lol u stoled aRoach's Avatar
+ wrong section
Re: MUSIC IN GAME -
Jochemd - 20.02.2012
When a player joins, you should, like said before, use PlayAudioStreamForPlayer.
pawn Code:
public OnPlayerConnect(playerid)
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"%s has joined the server.",pName);
SendClientMessageToAll(-1,string);
PlayAudioStreamForPlayer(playerid,"http://www.cms.livjm.ac.uk/library/Alice/Alice/Required/sounds/chicken.mp3"); // This will play a chicken sound for the player.
return 1;
}
Re: MUSIC IN GAME -
swungspeedz - 20.02.2012
OK! nevermind i fixed it but how do i put repeat so it repeats the song and how do i add more just copy the same line?
Re: MUSIC IN GAME -
Jochemd - 21.02.2012
Quote:
Originally Posted by swungspeedz
OK! nevermind i fixed it but how do i put repeat so it repeats the song and how do i add more just copy the same line?
|
You can't repeat it with the SA-MP functions, but you could put it like 10 times in one sound using for example: Shuangs Audio Joiner.
Re: MUSIC IN GAME -
swungspeedz - 21.02.2012
i need smething that i can do like /stop /start to start music to control music for whole server and like /next.then i can just put link in onplayerconnect can i put more than 1 link to play music like /next