25.09.2010, 18:09
pawn Код:
public SetPlayerTeamFromClass(playerid,classid)
{
if(classid == 0 || classid == 1 || classid == 2) {
gTeam[playerid] = TEAM_GREEN;
} else if(classid == 3 || classid == 4 || classid == 5) {
gTeam[playerid] = TEAM_BLUE;
}
}