01.04.2012, 15:15
I don't know if that's possible but can someone please convert this:
+REP!
Код:
stock PlayAudioStreamForAll(url[]) { for(new i; i<GetMaxPlayers(); i++) { if(IsPlayerConnected( i )) { PlayAudioStreamForPlayer(i, url, x, y, z, distance); } } return 1; } stock StopAudioStreamForAll(url[]) { for(new i; i<GetMaxPlayers(); i++) { if(IsPlayerConnected( i )) { StopAudioStreamForPlayer(playerid); } } return 1; } YCMD:stopmusic(playerid, params[], help) { #pragma unused params if (help) { SendClientMessage(playerid, 0xFF0000AA, "Stops audio for everyone."); } else { new str[32]; if (isnull(params)) { format(str, sizeof (str), "Usage: \"/stopmusic\""; SendClientMessage(playerid, 0xFF0000AA, str); } else { StopAudioStreamForPlayer(playerid); } } return 1; } YCMD:music(playerid, params[], help) { if (help) { SendClientMessage(playerid, 0xFF0000AA, "Plays audio for everyone."); } else { new str[32]; if (isnull(params)) { format(str, sizeof (str), "Usage: \"/music [url]\""; SendClientMessage(playerid, 0xFF0000AA, str); } else { PlayAudioStreamForAll(params); } } return 1; }