17.08.2016, 16:22
Код:
CMD:amusic(playerid, params[])
{
if(PlayerInfo[playerid][Level] >= 6 || IsPlayerAdmin(playerid))
{
if(isnull(params))
{
SendClientMessage(playerid, red, "USAGE: /amusic [url]");
SendClientMessage(playerid, white, "NOTE: /astop to stop the music!");
}
else
{
new string[128], namexx[24];
GetPlayerName(playerid,namexx,24);
format(string,sizeof(string),"Administrator '%s' has Started a music for all players!",namexx);
SendClientMessageToAll(CYAN,string);
for(new i;i<MAX_PLAYERS;i++)
{
PlayAudioStreamForPlayer(i, params);
}
}
} else SendClientMessage(playerid, red, "ERROR: You are not a high enough level to use this command");
return 1;
}


