16.05.2014, 00:50
ola pelo title mais ou menos deu pra entender quero pedir uma ajudinha pra voces em coloca a minha radio "nao e a minha radio e um cara que quer que eu ajudo ele " no meu servidor samp sera que alguem pode me ajudar
PlayAudioStreamForPlayer(playerid, "http://link url");
if (strcmp("/radiohunter", cmdtext, true, 10) == 0)
{
PlayAudioStreamForPlayer(playerid, "http://live.hunterfm.com/live");
return 1;
}
PlayAudioStreamForPlayer(playerid, "IP DA RADIO AQUI");
pega a URL do player dela e usa a funзгo
PHP код:
@Edit Exemplo Hunteer FM: PHP код:
|
public OnPlayerCommandText
PlayAudioStreamForPlayer(playerid, "http://live.hunterfm.com/live"); //exemplo hunter
public OnPlayerConnect
pega a URL do player dela e usa a funзгo
PHP код:
@Edit Exemplo Hunteer FM: PHP код:
|
Se quer usar o comando й na Callback:
PHP код:
PHP код:
PHP код:
|
PlayAudioStreamForPlayer(playerid, "http://live.hunterfm.com/live");
public OnPlayerConnect(playerid)
{
PlayAudioStreamForPlayer(playerid, "http://live.hunterfm.com/live");
return 1;
}
public OnPlayerSpawn(playerid)
{
StopAudioStreamForPlayer(playerid);
return 1;
}
#include <a_samp>
forward StopMusic(playerid);
public OnPlayerConnect(playerid)
{
PlayAudioStreamForPlayer(playerid,"LINK URL");
SetTimer("StopMusic", 60000, false);
return 1;
}
CMD:radioligar(playerid)
{
PlayAudioStreamForPlayer(playerid, "LINK URL");
return 1;
}
CMD: radiodesligar(playerid)
{
StopAudioStreamForPlayer(playerid);
return 1;
}
public StopMusic(playerid)
{
StopAudioStreamForPlayer(playerid);
return 1;
}