pawn Code:
stock IsValidSkin(skinid)
{
new noskin[25] = {0, 165, 166, 211, 217, 294, 265, 266, 267, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288};
for(new i; i<25; i++)
{
if(skinid == noskin[i]) return 0;
}
return 1;
}
public OnGameModeInit()
{
for( new SkinID; SkinID < MAX_SKIN_ID; SkinID ++ )
{
if(IsValidSkin(SkinID) == 1) AddPlayerClass( SkinID, 0,0,0,0, 0,0, 0,0, 0,0 );
}
return 1;
}
This method is actually probably less efficient than what you have currently though. There are also other methods but they are pretty much similar.