12.08.2011, 18:33
pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
switch(classid)
{
case 0 .. 2:
{
gTeam[playerid] = BALLA;
}
case 3 .. 9:
{
gTeam[playerid] = GROVE;
}
case 10 .. 12:
{
gTeam[playerid] = VAGOS;
}
}
}
SetPlayerToTeamColor(playerid)
{
switch(gTeam[playerid])
{
case GROVE:
{
SetPlayerColor(playerid, TEAM_GROVE_COLOR);
}
case BALLA:
{
SetPlayerColor(playerid, TEAM_BALLA_COLOR);
}
case VAGOS:
{
SetPlayerColor(playerid, TEAM_VAGOS_COLOR);
}
}
}