14.08.2015, 18:49
So the problem is
the admin who use the cmd dont got healed
the admin who use the cmd dont got healed
pawn Код:
[COLOR="Red"]here is the code[/COLOR]
dcmd_healall(playerid,params[])
{
#pragma unused params
if(AccInfo[playerid][Level] >= 3)
{
SendCommandToAdmins(playerid,"HealAll");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && (i != playerid) && i != ServerInfo[MaxAdminLevel])
{
PlayerPlaySound(i,1057,0.0,0.0,0.0);
SetPlayerHealth(i,100.0);
}
}
new string[128];
format(string,sizeof(string),"|- Administrator \"%s\" has Healed all players -|", pName(playerid));
return SendClientMessageToAll(blue, string);
}
else return ErrorMessages(playerid, 6);
}