[HELP] Audio streamer in area - 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: [HELP] Audio streamer in area (
/showthread.php?tid=314387)
[HELP] Audio streamer in area -
Turok - 29.01.2012
pawn Код:
if(dialogid == DIALOG_MUSIC)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(response)
{
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 20.0, X, Y, Z))
{
PlayAudioStreamForPlayer(i, inputtext);
}
}
}
}
Re: [HELP] Audio streamer in area -
-CaRRoT - 29.01.2012
So, what's the problem ? , I Mean , what do you need ?
Re: [HELP] Audio streamer in area -
Turok - 29.01.2012
Sorry, when the player approaches the point, nothing happens.
1 - I give the command /play
2 - I insert the link
3 - I listen to music, but others do not hear you approach.
Re: [HELP] Audio streamer in area -
TheArcher - 29.01.2012
This might help you
https://sampforum.blast.hk/showthread.php?tid=290595
Re: [HELP] Audio streamer in area -
Turok - 29.01.2012
Not work
pawn Код:
if(dialogid == DIALOG_MUSICA_LINK)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(response)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i, 20.0 , X, Y, Z))
{
PlayAudioStreamForPlayer(i, inputtext, X, Y, Z, 20.0, 1);
return 1;
}
else return 1;
}
}
}
}