color/teams problem
#2

try with this

put somewhere and modify

Код:
public SetPlayerToTeamColor(playerid)
{
	if(gTeam[playerid] == TEAM_GROVE)
	{
		SetPlayerColor(playerid,0x33AA33AA); // green
	}
	if(gTeam[playerid] == TEAM_COP)
	{
	  SetPlayerColor(playerid,0x375FFFFF); // blue
	}
}
somewhere in script put and modify

Код:
SetPlayerTeamFromClass(playerid, classid)
{
	if(classid == 0 || classid == 1 || classid == 2)
	{
		gTeam[playerid] = TEAM_GROVE; // DONE
	}
	if(classid == 3 || classid == 4)
	{
	  gTeam[playerid] = TEAM_COP; // DONE
	}
}
OnPlayerSpawn

Код:
SetPlayerToTeamColor(playerid);
TopOfScript

Код:
forward SetPlayerToTeamColor(playerid);
try with this things

EDIT: try with gTeam

put this Top Of Your SCRIPT

Код:
static gTeam[MAX_PLAYERS]; // Tracks the team assignment for each player
Reply


Messages In This Thread
color/teams problem - by borna - 09.12.2009, 10:46
Re: color/teams problem - by Lajko1 - 09.12.2009, 12:36
Re: color/teams problem - by borna - 09.12.2009, 12:44
Re: color/teams problem - by Lajko1 - 09.12.2009, 12:49
Re: color/teams problem - by borna - 09.12.2009, 13:01
Re: color/teams problem - by DJDhan - 09.12.2009, 14:14
Re: color/teams problem - by borna - 09.12.2009, 17:50
Re: color/teams problem - by Lajko1 - 09.12.2009, 18:08
Re: color/teams problem - by borna - 09.12.2009, 18:12
Re: color/teams problem - by Lajko1 - 09.12.2009, 18:13

Forum Jump:


Users browsing this thread: 1 Guest(s)