22.11.2010, 18:40
Instead torturing yourself with AddPlayerClass use this:
Outside any callbacks:
pawn Код:
public OnGameModeInit()
{
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 the classes
}
}
pawn Код:
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; } //The classes that you dont want to have in your GM
default: {return 1;}
}
return 1;
}