[Tool/Web/Other] [/play4all cmd] (Most added in Script) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Tools and Files (
https://sampforum.blast.hk/forumdisplay.php?fid=82)
+---- Thread: [Tool/Web/Other] [/play4all cmd] (Most added in Script) (
/showthread.php?tid=632403)
[/play4all cmd] (Most added in Script) -
JakeWalker - 13.04.2017
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
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;
}
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:
Code:
CMD:stopaudio(playerid, params[])
{
SendClientMessage(playerid, 0xAD1515FF, "You have stopped the music.");
StopAudioStreamForPlayer(playerid);
return 1;
If I'll get engouh +reps I'll post DJ System that works with this

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
Re: [/play4all cmd] (Most added in Script) -
Pavas24 - 14.04.2017
Incorrect section, you can post this in This link
Re: [/play4all cmd] (Most added in Script) -
JustMe.77 - 14.04.2017
Please stop releasing such trash shit just to gain a few reputation points..
Re: [/play4all cmd] (Most added in Script) -
J0sh... - 14.04.2017
Would not work, you don't even define PlayerInfo.
You're using a MAX_PLAYERS loop what is not up to the 2017/16/15/14/13 standard.
- Professor