22.11.2010, 19:29
do it like this:
pawn Код:
public OnGameModeInit()
{
//classes
for (new i = 0; i < 300; i++)
{
if (IsValidSkin(i))
{
AddPlayerClass(i, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); //Adds all classes.
}
}
return 1;
}
IsValidSkin(skinid)
{
switch (skinid)
{
case 0, 3, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208, 265, 266, 267, 273, 289: { return 0; } //Unavailible classes and classes you dont want.
default: {return 1;}
}
return 1;
}