Healall cmd wont work [FAST +rep ]
#1

So the problem is
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);
}
Reply


Messages In This Thread
Healall cmd wont work [FAST +rep ] - by Toxik - 14.08.2015, 18:49
Re: Healall cmd wont work [FAST +rep ] - by Dziugsas - 14.08.2015, 19:15
Re: Healall cmd wont work [FAST +rep ] - by Toxik - 14.08.2015, 19:19
Re: Healall cmd wont work [FAST +rep ] - by iTakelot - 14.08.2015, 19:20
Re: Healall cmd wont work [FAST +rep ] - by Toxik - 14.08.2015, 19:21

Forum Jump:


Users browsing this thread: 1 Guest(s)