[AJUDA] radio - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] radio (
/showthread.php?tid=302027)
[AJUDA] radio -
Aquilis - 07.12.2011
Galera, eu consigo ouvir o som, mas os outros player nгo conseguem, alguйm sabe o pq?
pawn Код:
if(dialogid == 995)
{
new Float:X, Float:Y, Float:Z, Float:Distance = 25.0;
GetPlayerPos(playerid, X, Y, Z);
if(response)
{
if(listitem == 0)// Musica teste
{//
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid, "http://deltac0.com/m/rick.mp3", X, Y, Z, Distance, 1);
}
}
}
Re: [AJUDA] RADIO -
Victor Cesaroni - 07.12.2011
pawn Код:
if(dialogid == 995)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new Float:X, Float:Y, Float:Z, Float:Distance = 25.0;
GetPlayerPos(i, X, Y, Z);
if(response)
{
if(listitem == 0)// Musica teste
{
StopAudioStreamForPlayer(i);
PlayAudioStreamForPlayer(i, "http://deltac0.com/m/rick.mp3", X, Y, Z, Distance, 1);
}
}
}
}
}
Re: [AJUDA] RADIO -
Aquilis - 07.12.2011
Vlw, tenho que estudar e usar MAX_PLAYERS =D
+rep
Re: [AJUDA] RADIO -
Aquilis - 07.12.2011
Desculpe o double, mas como faзo para que quando o player deslogue o audio pare?
Jб tentei colocar no OnPlayerDisconect
StopAudioStreamForPlayer(i);
mas nao deu
Re: [AJUDA] RADIO -
ViniBorn - 07.12.2011
pawn Код:
StopAudioStreamForPlayer(playerid); // OnPlayerDisconnect