[Ajuda] Problema com audio stream
#4

Caraca em OnPlayerUpdate
Tira isso! Usa um timer!
Ex:
pawn Код:
public OnGameModeInit()
{
        TimerAudio = SetTimer("TempoOuvir", 3000, 1); //Ouvirб a cada 3 segundos
        return 1;
}

public TempoOuvir()
{
  for(new i=0;i<MAX_PLAYERS;i++) //Cria um loop  para o jogador
  {
    if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 100 , -712.4719,2139.4656,46.9361))
    {
     PlayAudioStreamForPlayer(i, "http://k003.kiwi6.com/hotlink/cyjzg5lv1a/ventures_-_hawaii_5.0.mp3");
    }
  }
}

public OnGameModeExit()
{
KillTimer(TimerAudio);
return 1;
}
Abraзos!
Reply


Messages In This Thread
Problema com audio stream - by Netinho_the_killer - 05.07.2013, 12:55
Re: Problema com audio stream - by PT - 05.07.2013, 13:31
Re: Problema com audio stream - by Netinho_the_killer - 05.07.2013, 18:23
Re: Problema com audio stream - by Detonador - 05.07.2013, 19:14

Forum Jump:


Users browsing this thread: 1 Guest(s)