13.04.2017, 18:09
Well, I builded it all myself, I tried to take a look at other scripts with audio script and see what they made there, until I've done that, +REP me if you tried it out and you liked it ![Smiley](images/smilies/smile.png)
If you find any bugs / errors in the script, tell me & fix it and repost so I'll update the thread
btw here's the cmd of /stopaudio:
If I'll get engouh +reps I'll post DJ System that works with this ![Smiley](images/smilies/smile.png)
EDIT P.W: This plugin was made in Roleplay script which the highest rank was 1338, edit the rank to your server's admin ranks
![Smiley](images/smilies/smile.png)
Code:
CMD:play4all(playerid, params[]) { if (PlayerInfo[playerid][pAdmin] >= 1338) { if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /play4all [Link]"); for(new i = 0; i < MAX_PLAYERS; i++) { PlayAudioStreamForPlayer(i, params); } SendClientMessageToAllEx(COLOR_LIGHTBLUE, "* Use /stopaudio to stop the music."); } return 1; } CMD:stopmusic(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 3) { SendClientMessageToAllEx(COLOR_LIGHTBLUE, "* Music has been stopped."); for(new i = 0; i < MAX_PLAYERS; i++) { StopAudioStreamForPlayer(i); } } return 1; }
btw here's the cmd of /stopaudio:
Code:
CMD:stopaudio(playerid, params[]) { SendClientMessage(playerid, 0xAD1515FF, "You have stopped the music."); StopAudioStreamForPlayer(playerid); return 1;
![Smiley](images/smilies/smile.png)
EDIT P.W: This plugin was made in Roleplay script which the highest rank was 1338, edit the rank to your server's admin ranks