How would one run an .mp3 with PlayAudioStreamForPlayer?
#5

My mistake i've read it bad, here.
Код:
CMD:stream(playerid, params[])
{
    new string[128];
    if(isnull(params)) return SendClientMessage(playerid, LIGHT_RED, "USAGE: /stream [Url]");
    new HighestPlayerId = GetPlayerPoolSize();
for(new x=0; x <= HighestPlayerId; x++) {
        if(!IsPlayerConnected(x)) continue;
        format(string, sizeof(string), "%s(%d)Is streaming music", IsPlayerName(playerid), playerid);
    SendClientMessage(x, 0x00FFFFFF, string);
        PlayAudioStreamForPlayer(x, params);
    }
    }
return 1;
}
CMD:stopstream(playerid, params[])
{
    StopAudioStreamForPlayer(playerid);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)