[Tool/Web/Other] [/play4all cmd] (Most added in Script)
#1

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
Reply


Messages In This Thread
[/play4all cmd] (Most added in Script) - by JakeWalker - 13.04.2017, 18:09
Re: [/play4all cmd] (Most added in Script) - by Pavas24 - 14.04.2017, 02:45
Re: [/play4all cmd] (Most added in Script) - by JustMe.77 - 14.04.2017, 15:21
Re: [/play4all cmd] (Most added in Script) - by J0sh... - 14.04.2017, 15:24

Forum Jump:


Users browsing this thread: 1 Guest(s)