24.06.2013, 11:53
pawn Код:
if(strcmp("/playall", cmdtext, true, 8) == 0)
{
if(!cmdtext[8]) return SendClientMessage(playerid, -1, "USAGE: /playforall [url]");
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(!IsPlayerConnected(i)) continue;
PlayAudioStreamForPlayer(i, cmdtext[9]);
SendClientMessage(playerid, 0x0000FFAA, "You can stop playing this song with /stopall");
SendClientMessage(i, 0x0000FFAA, "An DJ has started playing a song (use /stopaudio to stop this song for you)");
}
return 1;
}