[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
#2

Incorrect section, you can post this in This link
Reply
#3

Please stop releasing such trash shit just to gain a few reputation points..
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)