Command problem
#1

Hi,

Problem is with "healall" comand, what's a wrong?
Код:
CMD:healall(playerid, params[])
{
	new
	    string[200]
	;

	LoginCheck(playerid);
	if(User[playerid][accountAdmin] >= 4)
	{
	   	foreach(new i : Player)
		{
			if(i != playerid && User[playerid][accountAdmin] < User[i][accountAdmin])
			{
				PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
				SetPlayerHealth(i, 100.0);
			}
		}
		SendPlayerMessage(COLOR_RED, "[HEAL] "white"Everyone has been healed by an admin.");
		format(string, 128, "[HEAL] "white"Everyone has been healed by %s.", GetName(playerid));
		SendAMessage(COLOR_RED, string);
	}
	else
	{
	    SendClientMessage(playerid, -1, "» "red"You are not authorized to use this command.");
	}
	return 1;
}
Reply


Messages In This Thread
Command problem - by ZaBraNjeNi - 13.01.2015, 20:55
Re: Command problem - by SWAT4 - 13.01.2015, 21:01
Re: Command problem - by ZaBraNjeNi - 13.01.2015, 21:04
Re: Command problem - by SWAT4 - 13.01.2015, 21:17
Re: Command problem - by ZaBraNjeNi - 13.01.2015, 21:27
Re: Command problem - by SWAT4 - 13.01.2015, 21:35
Re: Command problem - by ZaBraNjeNi - 14.01.2015, 10:45
Re: Command problem - by CalvinC - 14.01.2015, 10:52
Re: Command problem - by MBilal - 14.01.2015, 10:55
Re: Command problem - by ZaBraNjeNi - 14.01.2015, 11:08

Forum Jump:


Users browsing this thread: 4 Guest(s)