[HELP] Team Colors
#1

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.
Код:
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);
	}
}
Reply
#2

did you #define TEAM_GROVE/BALLA/VAGOS/AZTECAS_COLOR CODE?
Reply
#3

Ofc . Anyway i found it out. I used case instead of gTeam
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)