23.05.2010, 04:50
Use this so people wont have bad skins.
or...
if (skinid < 0 || skinid > 299)
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;
}
if (skinid < 0 || skinid > 299)