Small question.
#3

Or you could
pawn Код:
new Weapons[] =
{
  10, 11, 12, 13, 14, 15, 16, 17, 18, 35, 36, 37, 38, 39, 40, 44, 45
};

for(new s; s<sizeof(Weapons); s++)
{
  if(weaponid == Weapons)
  {
    new string[128];
    format(string, sizeof(string), "**Ban: %s Has been banned for weapon hacks!", PlayerName(i));
    SendClientMessageToAll(COLOR_RED, string);
    BanEx(i, string);
    return 1;
  }
}
But peep's is better if you want to do a range, if you want to add more, this may be better.
Reply


Messages In This Thread
Small question. - by DiddyBop - 16.01.2010, 21:33
Re: Small question. - by Peep - 16.01.2010, 21:49
Re: Small question. - by [HiC]TheKiller - 16.01.2010, 21:55
Re: Small question. - by DiddyBop - 16.01.2010, 22:14

Forum Jump:


Users browsing this thread: 1 Guest(s)