[Pedido] Comando para WEB RADIO
#1

Preciso de um comando para executar uma web radio em meu servidor...

Alguem poderia me dizer um que funcione?
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp("/radio", cmdtext, true, 10) == 0)
        {
                PlayAudioStreamForPlayer(playerid,"http://stream.radiohunter.com.br:7070/listen.pls");//Radio Hunter
                SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Hunter {FFFFFF}Ligada!
                return 1;
        }
        return 0;
}
ou

pawn Код:
CMD:radio(playerid, params[])
{
        PlayAudioStreamForPlayer(playerid,"http://stream.radiohunter.com.br:7070/listen.pls");//Radio Hunter
        SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Hunter {FFFFFF}Ligada!
        return 1;
}
Reply
#3

Quote:
Originally Posted by delete
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp("/radio", cmdtext, true, 10) == 0)
        {
                PlayAudioStreamForPlayer(playerid,"http://stream.radiohunter.com.br:7070/listen.pls");//Radio Hunter
                SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Hunter {FFFFFF}Ligada!
                return 1;
        }
        return 0;
}
ou

pawn Код:
CMD:radio(playerid, params[])
{
        PlayAudioStreamForPlayer(playerid,"http://stream.radiohunter.com.br:7070/listen.pls");//Radio Hunter
        SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Hunter {FFFFFF}Ligada!
        return 1;
}
O Pawno fecha quando eu tento compilar seu comando. :X
Reply
#4

pawn Код:
SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Hunter {FFFFFF}Ligada!");
Reply
#5

Arrumei o problema, em vez de cmdtext, tinha que ser com cmd normal. Vlw e problema resolvido! :]
Reply
#6

if (strcmp("/Rfunk", cmdtext, true, 10) == 0)
{
PlayAudioStreamForPlayer(playerid, "http://64.56.64.72:10452");
GameTextForPlayer(playerid, "~n~~n~~r~~h~] ~w~Radio Funk Ligada ~r~~h~]", 2000, 1);
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)