Dialog Input
#6

Use this so people wont have bad skins.
pawn Код:
stock IsValidSkin(skinid)
{
  #define   MAX_BAD_SKINS 35
  new badSkins[MAX_BAD_SKINS] =
  {
    0, 3, 4, 5, 6, 8, 10, 42, 65, 74,
        86, 92, 99, 119, 143, 144, 145, 146,
        149, 178, 208, 251, 252, 254, 264,
        265, 267, 273, 279, 277, 276, 274, 275,
        278, 289
  };
  if (skinid < 0 || skinid > 299) return false;
  for (new i = 0; i < MAX_BAD_SKINS; i++)
  {
    if (skinid == badSkins[i]) return false;
  }
  #undef MAX_BAD_SKINS
  return 1;
}
or...
if (skinid < 0 || skinid > 299)
Reply


Messages In This Thread
Dialog Input - by TKZ227 - 23.05.2010, 03:01
Re: Dialog Input - by Babul - 23.05.2010, 03:43
Re: Dialog Input - by TKZ227 - 23.05.2010, 04:19
Re: Dialog Input - by Carlton - 23.05.2010, 04:24
Re: Dialog Input - by TKZ227 - 23.05.2010, 04:47
Re: Dialog Input - by Johndaone - 23.05.2010, 04:50
Re: Dialog Input - by Simon - 23.05.2010, 05:29
Re: Dialog Input - by TKZ227 - 29.05.2010, 01:12
Re: Dialog Input - by Miguel - 29.05.2010, 02:07
Re: Dialog Input - by aircombat - 29.05.2010, 07:38

Forum Jump:


Users browsing this thread: 5 Guest(s)