Music for everyone
#4

Since you didn't state the problem i didn't know what was wrong with it but you've alot of unnecessary lines
Код:
CMD:music(playerid, params[])
{
   if(pInfo[playerid][pAdminLevel] >= 6) return 0;
   new string[128], name[24];
   if(isnull(params)) return  SendClientMessage(playerid, COLOR_RED, "USAGE: /music [URL]"); {
   format(string,sizeof(string),"Admin %s started a new song!",name);
   SendClientMessageToAll(-1,string);
   foreach(Player, i) {//Depends on your foreach version
   PlayAudioStreamForPlayer(i, params);
   } else  {
   SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
   }
   return true;
}
Reply


Messages In This Thread
Music for everyone - by henkas - 26.11.2016, 14:16
Re: Music for everyone - by Yuri8 - 26.11.2016, 14:22
Re: Music for everyone - by SyS - 26.11.2016, 14:23
Re: Music for everyone - by ISmokezU - 26.11.2016, 15:16
Re: Music for everyone - by henkas - 26.11.2016, 15:56
Re: Music for everyone - by AlonGlenn - 27.11.2016, 00:14
Re: Music for everyone - by henkas - 27.11.2016, 07:49

Forum Jump:


Users browsing this thread: 1 Guest(s)