30.06.2012, 23:43
Use AddPlayerClassEx, its the same as AddPlayerClass just that is got an extra team parameter
I never used AddPlayerClassEx so I cant tell if the teams are already set in OnPlayerRequestClass
pawn Код:
//
new
team = 0
;
AddPlayerClassEx(team, 274, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClassEx(team, 276, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClassEx(team, 275, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
team++; // next team
AddPlayerClassEx(team, 68, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClassEx(team, 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClassEx(team, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
team++; // next team
AddPlayerClassEx(team, 137, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClassEx(team, 230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
//...
SetTeamCount(++team); // optional, check the wiki for more information about this function