Ayuda StopAudioStreamForPlayer...
#1

Hola chicos quiero hacer un sistema de radio pero no se como, tengo uno pero necesito que cuando se baje del vehнculo automбticamente se detenga. y cuando se suba de nuevo siga el audio si me doy a entender no? hehe saludos.
Reply
#2

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        PlayAudioStreamForPlayer(playerid, "http://TuLink");
    }
    if(oldstate == PLAYER_STATE_DRIVER)
    {
        StopAudioStreamForPlayer(playerid);
    }
    return 1;
}
Reply
#3

Quote:
Originally Posted by bytytus
Посмотреть сообщение
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        PlayAudioStreamForPlayer(playerid, "http://TuLink");
    }
    if(oldstate == PLAYER_STATE_DRIVER)
    {
        StopAudioStreamForPlayer(playerid);
    }
    return 1;
}
Tengo una duda aprovechando el tema, el link tiene que contener una extensiуn especial? (.mp3)?
Reply
#4

Quote:
Originally Posted by Lunnatiicz
Посмотреть сообщение
Tengo una duda aprovechando el tema, el link tiene que contener una extensiуn especial? (.mp3)?
Si, si puede Saludos



Gacias x'D
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)