/armorall and /healall
#6

Quote:
Originally Posted by Drebin
Посмотреть сообщение
For the first example you need foreach by ****** and ZCMD by ZeeX (for the second too).

Better use this:
pawn Код:
if (strcmp("/healall", cmdtext, true, 10) == 0)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            SetPlayerHealth(i, 100.0);
        }
        return 1;
    }
    if (strcmp("/armourall", cmdtext, true, 10) == 0)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            SetPlayerArmour(i, 100.0);
        }
        return 1;
    }
it gives me errors
Reply


Messages In This Thread
/armorall and /healall - by imnoob - 04.06.2012, 14:47
Re: /armorall and /healall - by dannyk0ed - 04.06.2012, 14:49
Re: /armorall and /healall - by doreto - 04.06.2012, 14:50
AW: /armorall and /healall - by Drebin - 04.06.2012, 14:51
Re: AW: /armorall and /healall - by dannyk0ed - 04.06.2012, 14:52
Re: AW: /armorall and /healall - by imnoob - 04.06.2012, 20:00
Re: AW: /armorall and /healall - by DaRealShazz - 04.06.2012, 20:08
Re: /armorall and /healall - by AbO.SbRe - 04.06.2012, 20:13
Re: /armorall and /healall - by FalconX - 04.06.2012, 20:17
Re: /armorall and /healall - by SuperViper - 04.06.2012, 20:23

Forum Jump:


Users browsing this thread: 1 Guest(s)