SA-MP Forums Archive
[HELP] Team Colors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: [HELP] Team Colors (/showthread.php?tid=301945)



[HELP] Team Colors - olabv - 06.12.2011

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);
	}
}



Re: [HELP] Team Colors - AstonDA-G - 06.12.2011

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


Re: [HELP] Team Colors - olabv - 06.12.2011

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