Heal all
#5

Quote:
Originally Posted by kirostar
Посмотреть сообщение
This ? :
Код:
CMD:healall(playerid, params[])
{
	new str[128];
	if(PlayerInfo[playerid][Admin] >= 1)
	{
		foreach(Player, i)
		{
			if(IsPlayerConnected(i) && (i != playerid) && (PlayerInfo[playerid][Admin] < PlayerInfo[i][Admin]))
			{
				SetPlayerHealth(i, 100.0);
			}
		}
		GameTextForAll("~g~Healed by ~w~Admin!", 3000, 3);
		format(str, sizeof(str), "- AS - %s(%d) has healed all players!", GetName(playerid), playerid);
		SendClientMessageToAll(COLOR_BLUE, str);
		SendClientMessage(playerid, COLOR_LIME, "You healed all players!");
	}
	return 1;
}
Thank you.


Can you give me same but Remove the admin level 1 permissions, And replace it with IsPlayerAdmin please.
Reply


Messages In This Thread
Heal all - by aCloudy - 26.06.2014, 07:33
Re: Heal all - by kirostar - 26.06.2014, 07:35
Re: Heal all - by ]Rafaellos[ - 26.06.2014, 07:36
Re: Heal all - by RenovanZ - 26.06.2014, 07:37
Re: Heal all - by aCloudy - 26.06.2014, 07:38
Re: Heal all - by kirostar - 26.06.2014, 07:47
Re: Heal all - by AIped - 26.06.2014, 07:49
Re: Heal all - by ]Rafaellos[ - 26.06.2014, 09:12
Re: Heal all - by AIped - 26.06.2014, 11:04

Forum Jump:


Users browsing this thread: 1 Guest(s)