30.01.2016, 11:06
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; }