// 1 class
AddPlayerClass(274, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(276, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(275, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 2 class
AddPlayerClass(68, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 3 class
AddPlayerClass(137, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 4 class
AddPlayerClass(296, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 5 class
AddPlayerClass(287, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 6 class
AddPlayerClass(167, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 7 class
AddPlayerClass(192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(152, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 8 class
AddPlayerClass(277, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 9 class
AddPlayerClass(284, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(282, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 10 class
AddPlayerClass(285, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 11 class
AddPlayerClass(264, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 12 class
AddPlayerClass(158, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(159, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(157, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 13 class
AddPlayerClass(120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(59, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 14 class
AddPlayerClass(16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(260, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
public OnGameModeInit()
{
for (new i; i<300; i++) AddPlayerClass(i, -2166.978271, -2526.987792, 30.321729, 0.0, 0, 0, 0, 0, 0, 0);
return 1;
}
// 1 team
AddPlayerClass(274, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(276, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(275, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 2 team
AddPlayerClass(68, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 3 team
AddPlayerClass(137, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 4 team
AddPlayerClass(296, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 5 team
AddPlayerClass(287, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 6 team
AddPlayerClass(167, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 7 team
AddPlayerClass(192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(152, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 8 team
AddPlayerClass(277, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 9 class
AddPlayerClass(284, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(282, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 10 team
AddPlayerClass(285, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 11 team
AddPlayerClass(264, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 12 team
AddPlayerClass(158, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(159, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(157, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 13 team
AddPlayerClass(120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(59, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
// 14 team
AddPlayerClass(16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
AddPlayerClass(260, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
for(new i = 0; i < 300; i++)
{
switch(i)
{
case 0 .. 11, 13 .. 15, 17.. 26, 28 .. 45, 47 .. 49, 51 .. 58, 60 .. 67, 69 .. 89, 91 .. 119, 121 .. 136, 138 .. 149, 151, 153 .. 156, 160 .. 166, 168 .. 191, 193 .. 226, 228, 229, 231 .. 259, 261 .. 263, 265 .. 273, 278, 281, 286, 288 .. 295: continue;
default : AddPlayerClass(i, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
}
return 1;
}
pawn Код:
|
switch(classid)
{
case 0 .. 2:
{
// SetPlayerTeam
SetPlayerTeam(playerid, class_1);
return 1;
}
case 3 .. 5:
{
// SetPlayerTeam
SetPlayerTeam(playerid, class_2);
return 1;
}
case 6, 7:
{
// SetPlayerTeam
SetPlayerTeam(playerid, class_3);
return 1;
}
case 8:
{
// SetPlayerTeam
SetPlayerTeam(playerid, class_4);
return 1;
}
case 9:
{
// SetPlayerTeam
SetPlayerTeam(playerid, class_5);
return 1;
}
case 10:
{
// SetPlayerTeam
SetPlayerTeam(playerid, class_6);
return 1;
}
case 11 .. 13:
{
// SetPlayerTeam
SetPlayerTeam(playerid, class_7);
return 1;
}
case 14:
{
// SetPlayerTeam
SetPlayerTeam(playerid, class_8);
return 1;
}
case 15 .. 17:
{
// SetPlayerTeam
SetPlayerTeam(playerid, class_9);
return 1;
}
case 18:
{
// SetPlayerTeam
SetPlayerTeam(playerid, class_10);
return 1;
}
case 19:
{
// SetPlayerTeam
SetPlayerTeam(playerid, class_11);
return 1;
}
case 20 .. 22:
{
// SetPlayerTeam
SetPlayerTeam(playerid, class_12);
return 1;
}
case 23 .. 26:
{
// SetPlayerTeam
SetPlayerTeam(playerid, class_14);
return 1;
}
case 27 .. 30:
{
// SetPlayerTeam
SetPlayerTeam(playerid, class_15);
return 1;
}
}
//
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