Little help
#1

Код:
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;
}
what is wrong with the command? when i did /amusic url the music didn't started
Reply


Messages In This Thread
Little help - by Muhammad78 - 17.08.2016, 16:22
Re: Little help - by M8 - 17.08.2016, 16:51
Re: Little help - by Muhammad78 - 18.08.2016, 06:04
Re: Little help - by iLearner - 18.08.2016, 08:07
Re: Little help - by Tass007 - 18.08.2016, 08:35
Re: Little help - by Muhammad78 - 18.08.2016, 17:37
Re: Little help - by M8 - 18.08.2016, 18:14
Re: Little help - by Tass007 - 09.09.2016, 08:10
Re: Little help - by SickAttack - 09.09.2016, 08:17

Forum Jump:


Users browsing this thread: 1 Guest(s)