11.06.2009, 12:57
Код:
SetPlayerToTeamColor(playerid) { if (gTeam[playerid] == TEAM_COP) { SetPlayerColor(playerid, TEAM_COP_COLOR); } else if (gTeam[playerid] == TEAM_MEDIC) { SetPlayerColor(playerid, TEAM_MEDIC_COLOR); } else if (gTeam[playerid] == TEAM_MEDIC) { SetPlayerColor(playerid, TEAM_MEDIC_COLOR); } else if (gTeam[playerid] == TEAM_AIRFORCE) { SetPlayerColor(playerid, TEAM_AIRFORCE_COLOR); } else if (gTeam[playerid] == TEAM_TAXI) { SetPlayerColor(playerid, TEAM_TAXI_COLOR); }
pawn Код:
SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_COP)
{
SetPlayerColor(playerid, TEAM_COP_COLOR);
}
else if (gTeam[playerid] == TEAM_MEDIC)
{
SetPlayerColor(playerid, TEAM_MEDIC_COLOR);
}
else if (gTeam[playerid] == TEAM_MEDIC)
{
SetPlayerColor(playerid, TEAM_MEDIC_COLOR);
}
else if (gTeam[playerid] == TEAM_AIRFORCE)
{
SetPlayerColor(playerid, TEAM_AIRFORCE_COLOR);
}
else if (gTeam[playerid] == TEAM_TAXI)
{
SetPlayerColor(playerid, TEAM_TAXI_COLOR);
}
}