06.03.2013, 11:13
Thanks can you do dis one?
Код:
COMMAND:stopaudio(playerid,params[]) { if (APlayerData[playerid][PlayerLevel] >= 5) for(new i=0;i<MAX_PLAYERS;i++) { if(!IsPlayerConnected(i)) continue; StopAudioStreamForPlayer(i); } SendClientMessage(playerid,0xFF6347FF,"You have stopped all audio streaming for players."); format(cmdstr, sizeof(cmdstr), "Admin %s has stopped all playing audio streams", FormatName(playerid)); SendClientMessageToAll(0xFF6347FF, cmdstr); // Let the server know that this was a valid command return 1; }