Help with this code
#2

pawn Код:
#include <a_samp>
#include <zcmd>

public OnFilterScriptInit()
{
    printf("\n ~~Play to all FS by Aribaba Loaded~~\n");
    return 1;
}

CMD:pta(playerid, params[])
{
    ShowPlayerDialog(playerid, 300, DIALOG_STYLE_INPUT, "Play to all", "Enter a .mp3 URL\n", "Play", "Cancel");
}


public OnDialogResponse(playerid, dialogid, response, inputtext[])
{
    if(dialogid == 300)
    {
        if(response)
        {
            new song = strval(inputtext);
            for(new i, j = GetMaxPlayers(); i < j; i++)
            {
                if(IsPlayerConnected( i ))
                {
                PlayAudioStreamForPlayer(i, song);
                return 1;
                }
            return 1;
            }
            return 1;
        }
        return 1;
    }
    return 1;
}

    return 1;
}
Reply


Messages In This Thread
Help with this code - by Aribaba - 04.04.2012, 16:59
Re: Help with this code - by TzAkS. - 04.04.2012, 17:29
Respuesta: Help with this code - by Aribaba - 04.04.2012, 17:42
Re: Help with this code - by TzAkS. - 04.04.2012, 18:38
Re: Help with this code - by AndreT - 04.04.2012, 18:40

Forum Jump:


Users browsing this thread: 1 Guest(s)