26.11.2016, 14:16
So i got script which make a music for me bat i want make it for everyone hear it.
script
script
Код:
CMD:music(playerid, params[])
{
if(pInfo[playerid][pAdminLevel] >= 6)
{
if(isnull(params))
{
SendClientMessage(playerid, COLOR_RED, "USAGE: /music [URL]");
}
else
{
new string[128], name[24];
GetPlayerName(playerid,name,24);
format(string,sizeof(string),"Admin %s started a new song!",name);
SendClientMessageToAll(-1,string);
for(new i;i<MAX_PLAYERS;i++)
{
PlayAudioStreamForPlayer(i, params);
}
}
}
else
{
SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
}
return 1;
}


