PLAY SOUND - 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: PLAY SOUND (
/showthread.php?tid=307108)
PLAY SOUND -
NinjaChicken - 29.12.2011
ok i made this map for my new years eve party now i wanna know how i make a shoutcast stream within a radius can you help please?
Re: PLAY SOUND -
Seven_of_Nine - 29.12.2011
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
if(IsPlayerInRangeOfPoint(i,10,pointX,pointY,pointZ)) {
PlayAudioStreamForPlayer(i,audio here);
}
}
}
Put this in a timer or a command. ; )
Re: PLAY SOUND -
NinjaChicken - 29.12.2011
could you possibly make it for me like e.g. /christmas then it plays? and for poinx,pointy etc.. do i add my own co ords?
P.S. this instead of a command where would i add it in a FS?
Re: PLAY SOUND -
MadeMan - 29.12.2011
Add PlayAudioStreamForPlayer in a command or OnPlayerSpawn.
Re: PLAY SOUND -
NinjaChicken - 29.12.2011
Quote:
Add PlayAudioStreamForPlayer in a command or OnPlayerSpawn.
|
kinda helpful thanks but i dont know how to make the command can someone make me a full cmd where i only have to add X,Y,Z and the stream url?
Respuesta: PLAY SOUND -
diego_p11 - 29.12.2011
it is your choice, OnPlayerSpawn they are going to hear the music when they spawn and if you doit with a cmd you will heard it when u tipe the command.
Re: PLAY SOUND -
NinjaChicken - 30.12.2011
id like onplayerspawn