01.02.2013, 11:58
yea in a Command
Код:
COMMAND:gplay(playerid,params[])
{
new URL[250];
if(sscanf(params,"s",URL)) return SendClientMessage(playerid,0xFF6347FF,"USAGE:/globalplay [URL]");
for(new i=0;i<MAX_PLAYERS;i++)
{
if(!IsPlayerConnected(i)) continue;
PlayAudioStreamForPlayer(i,URL);
}
SendClientMessage(playerid,0xFF6347FF,"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(0xFF6347FF, cmdstr);
return 1;
}

