dcmd_playamusic(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 99999) { for(new i = 0; i < MAX_PLAYERS; i++) { new link[200]; if(sscanf(params,"s[200]",link)) return SendClientMessage(playerid,COLOR_RED,"Usage: /playamusic [MP3 Link]"); PlayAudioStreamForPlayer(playerid, link); SendClientMessage(playerid, COLOR_WHITE,"An Admin has started playing music for every online player"); } } return 1; }
dcmd_playmusica(playerid,params[]) { new link[128]; if(PlayerInfo[playerid][pAdmin] >= 99999) { if(sscanf(params, "s[256]", link)) return SendClientMessage(playerid,COLOR_RED,"Usage: /playmusic [MP3 Link]"); for(new i = 0; i < MAX_PLAYERS; i++) { PlayAudioStreamForPlayer(i, link); } SendClientMessage(playerid, COLOR_WHITE,"An Admin has started playing music for every online player"); } return 1; }
try this:
Код:
dcmd_playmusica(playerid,params[]) { new link[128]; if(PlayerInfo[playerid][pAdmin] >= 99999) { if(sscanf(params, "s[256]", link)) return SendClientMessage(playerid,COLOR_RED,"Usage: /playamusic [MP3 Link]"); for(new i = 0; i < MAX_PLAYERS; i++) { PlayAudioStreamForPlayer(i, link); } SendClientMessage(playerid, COLOR_WHITE,"An Admin has started playing music for every online player"); } return 1; } |