#2

pawn Код:
COMMAND:audio(playerid,params[])
{
    new URL[250];
    if (APlayerData[playerid][PlayerLevel] >= 7)
        if(sscanf(params,"s[250]",URL)) return SendClientMessage(playerid,0xFF0000AA,"USAGE:/audio [URL]");
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        if(IsPlayerConnected(i)) PlayAudioStreamForPlayer(i,URL);
    }
    SendClientMessage(playerid,0xFF0000AA,"You have played a song for all players!");
    format(cmdstr, sizeof(cmdstr), "Admin %s has started the Global Playback of{FFFFFF} %s",        FormatName(playerid), URL);
    SendClientMessageToAll(0xFF0000AA, cmdstr);
    return 1;
}
Reply


Messages In This Thread
help - by DerickClark - 21.02.2013, 00:14
Re: help - by MattSlater - 21.02.2013, 00:19
Re: help - by DerickClark - 21.02.2013, 00:21

Forum Jump:


Users browsing this thread: 1 Guest(s)