06.12.2011, 16:31
Hello, i wanna set gang colors like green to grove street and purple to ballas etc..
i tried SetPlayerToTeamColor but it didnt set the colors ? here is a snippet.
i tried SetPlayerToTeamColor but it didnt set the colors ? here is a snippet.
Код:
forward SetPlayerToTeamColor(playerid); public SetPlayerToTeamColor(playerid) { if (gTeam[playerid] == TEAM_GROVE) { SetPlayerColor(playerid, TEAM_GROVE_COLOR); } else if (gTeam[playerid] == TEAM_BALLA) { SetPlayerColor(playerid, TEAM_BALLA_COLOR); } else if (gTeam[playerid] == TEAM_AZTECAS) { SetPlayerColor(playerid, TEAM_AZTECAS_COLOR); } else if (gTeam[playerid] == TEAM_VAGOS) { SetPlayerColor(playerid, TEAM_VAGOS_COLOR); } }