04.06.2012, 14:51
For the first example you need foreach by ****** and ZCMD by ZeeX (for the second too).
Better use this:
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;
}

