14.08.2011, 20:47
pawn Код:
// OnGameModeInit
for(new iC = 1; iC < 300; iC++)
{
if(IsValidSkin(iC)) AddPlayerClass(iC, 0.0, 0.0, 0.0, 0.0, 0,0,0,0,0,0);
}
// IsValidSkin() function - might be wrong, got it from somewhere random.
stock IsValidSkin(_id)
{
if(_id < 1 || _id > 299) return 0;
new np = -1;
switch(_id)
{
case 3, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208, 268, 273, 289: np = 0;
default: np = 1;
}
return np;
}