26.04.2011, 14:40
You didn't follow my code properly
pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
switch(classid)
{
case 0:
{
gTeam[playerid] = TEAM_ROBBERS;
}
case 1:
{
gTeam[playerid] = TEAM_ROBBERS;
}
case 2:
{
gTeam[playerid] = TEAM_ROBBERS;
}
case 3:
{
gTeam[playerid] = TEAM_MEDICS;
}
case 4:
{
gTeam[playerid] = TEAM_MEDICS;
}
case 5:
{
gTeam[playerid] = TEAM_MEDICS;
}
case 6:
{
gTeam[playerid] = TEAM_FIREFIGHTERS;
}
case 7:
{
gTeam[playerid] = TEAM_FIREFIGHTERS;
}
case 8:
{
gTeam[playerid] = TEAM_FIREFIGHTERS;
}
case 9:
{
gTeam[playerid] = TEAM_COPS;
}
case 10:
{
gTeam[playerid] = TEAM_COPS;
}
case 11:
{
gTeam[playerid] = TEAM_COPS;
}
}
return 1;
}