23.12.2013, 12:23
Hello, im using admin system and in my server there are Dm places , so when admin use the command healall all the players is got healed , how to heal only the players which exists out of dm only.
Код:
dcmd_healall(playerid,params[])
{
#pragma unused params
if(AccInfo[playerid][Level] >= 2)
{
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),"{00FFFF}Administrator \"%s\" has healed all players , Except In DM Places !", pName(playerid));
return SendClientMessageToAll(blue, string);
}
else return ErrorMessages(playerid, 6);
}

