[Ajuda] Radio sу funciona para alguns players
#1

Boa tarde galera, a rбdio do meu servidor sу funciona para alguns players, o que pode ser? Alguns dizem que a rбdio funciona outros dizem que nгo funciona... Por favor me ajudem.

pawn Код:
#include a_samp
#include zcmd

#define Radio 6969
#define Relaxed1  0xEBFF00AA


public OnFilterScriptInit()
{
    print(" Ligando fs");
    return 1;
}

CMD:radio(playerid){
    ShowPlayerDialog(playerid,Radio,DIALOG_STYLE_LIST,"Radio","{00F5FF}Ligar\nDesligar","Selecionar","Cancelar");
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
        if(dialogid == Radio){
            if(response){
                switch(listitem){
                    case 0:{
                        PlayAudioStreamForPlayer(playerid,"http://107.161.123.146:26342");
                        SendClientMessage(playerid,Relaxed1,"Vocк ligou a rбdio Lost Scavenge!");
                    }
                    case 1:{
                        StopAudioStreamForPlayer(playerid);
                        SendClientMessage(playerid,Relaxed1,"A rбdio Lost Scavenge foi desligada!");
                    }
                }
            }
        }
        return false;
}
Reply
#2

Cadк o loop?
Reply
#3

eu falei pra botar um loop, mas o cara n me ouve -;
Reply
#4

Aproveita o meu bom humor.
PHP код:
new Bool:radio;

command(radioplayeridparams[])
{
    if(
admin[playerid] > 1)
    {
        for(new 
id 0id MAX_PLAYERSid++)
        {
            if(!
radio)
            {
                
PlayAudioStreamForPlayer(id"http://107.161.123.146:26342");
                print(
"Rбdio ligada!");
                
radio true;
            }
            else 
            {
                
StopAudioStreamForPlayer(id);
                
radio false;
            }
        }
    }
    else return 
SendClientMessage(playerid, -1"Vocк nгo й administrador!");

Reply
#5

Nгo funcionou, quando eu digito o comando o loop fica rodando dando a msg que ativou depois para e da unknown command

pawn Код:
new Bool:radio;

CMD:radio(playerid){
    for(new id = 0; id < MAX_PLAYERS; id++)
    {
        if(!radio)
        {
            PlayAudioStreamForPlayer(id, "http://107.161.123.146:26342");
            SendClientMessage(playerid,Relaxed1,"Vocк ligou a rбdio ");
            radio = true;
        }
        else
        {
            StopAudioStreamForPlayer(id);
            SendClientMessage(playerid,Relaxed1,"Vocк desligou a rбdio");
            radio = false;
        }
    }
}
Reply
#6

Lуgico. Vocк editou o cуdigo!
PHP код:
new Bool:radio;

command(radioplayeridparams[])
{
    for(new 
id 0id MAX_PLAYERSid++)
    {
        if(!
radio)
        {
            
PlayAudioStreamForPlayer(id"http://107.161.123.146:26342");
            print(
"Rбdio ligada!");
            
radio true;
        }
        else 
        {
            
StopAudioStreamForPlayer(id);
            
radio false;
        }
    }
    return 
1;

Reply
#7

Entгo coloquei seu codigo agora e quando eu digitio /radio e aparece Audiostream e o ip dela, porem nгo toca nada... nгo funciona a radio
Reply
#8

Entгo o problema й com a rбdio.
Estou fazendo alguns testes em meu notebook, mais tarde eu faзo um debug.
Reply
#9

De boa, vou ver o que posso fazer aqui, valeu!
Reply
#10

Й infelizmente nгo consegui galera, a radio nгo funfa!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)