Ayuda StopAudioStreamForPlayer... - 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: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Ayuda StopAudioStreamForPlayer... (
/showthread.php?tid=343678)
Ayuda StopAudioStreamForPlayer... -
andySix - 18.05.2012
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.
Respuesta: Ayuda StopAudioStreamForPlayer... -
OTACON - 18.05.2012
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
PlayAudioStreamForPlayer(playerid, "http://TuLink");
}
if(oldstate == PLAYER_STATE_DRIVER)
{
StopAudioStreamForPlayer(playerid);
}
return 1;
}
Respuesta: Ayuda StopAudioStreamForPlayer... -
Lunnatiicz - 18.05.2012
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)?
Respuesta: Ayuda StopAudioStreamForPlayer... -
andySix - 18.05.2012
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