30.06.2012, 12:36
Quote:
pawn Код:
|
This is part of OnPlayerRequestClass...
PHP код:
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;
}
}