14.01.2015, 10:55
PHP код:
CMD:healall(playerid,params[])
{
new string[200];
LoginCheck(playerid);
if(User[playerid][accountAdmin] >= 4)
{
foreach(Player, i)
{
PlayerPlaySound(i,1057,0.0,0.0,0.0);
SetPlayerHealth(i,100.0);
}
format(string, 128, "[HEAL] "white"Everyone has been healed by %s.", GetName(playerid));
SendAMessage(COLOR_RED, string);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");
}
return 1;
}