Team Colour Not Working Help :(
#1

Ok Guys I need help in team colours Here is how it looks like
Код:
SetPlayerToTeamColor(playerid)
{
	if (gTeam[playerid] == TEAM_POLICE)
	{
		SetPlayerColor(playerid,0x33CCFFAA);//Light Blue
	}
	else if (gTeam[playerid] == TEAM_EMERGENCY)
	{
		SetPlayerColor(playerid,0x33FF33AA);//Green
	}
	else if (gTeam[playerid] == TEAM_ADMINS)
	{
		SetPlayerColor(playerid,0xFFFFFFAA);//White
	}
	else if (gTeam[playerid] == TEAM_HOMELAND_SECURITY)
	{
		SetPlayerColor(playerid,0x33CCFFAA);
	}
	else if (gTeam[playerid] == TEAM_DESERT_EAGLES)
	{
		SetPlayerColor(playerid,0x33FF33AA);//Green2
	}
	else if (gTeam[playerid] == TEAM_CIVILIAN)
	{
		SetPlayerColor(playerid,0xFFFF00AA);//Yellow
	}
    else if (gTeam[playerid] == TEAM_CRIMINAL)
	{
		SetPlayerColor(playerid,0xFF0000AA);//Red
	}
}
But the color is automatic not what I want What`s the problem?
I thinks there is problem with team thing
Код:
//----------------------------------------------------------------------------//
#define TEAM_POLICE 1
#define TEAM_EMERGENCY 2
#define TEAM_ADMINS 3
#define TEAM_HOMELAND_SECURITY 4
#define TEAM_DESERT_EAGLES 5
#define TEAM_CIVILIAN 6
#define TEAM_CRIMINAL 7
//----------------------------------------------------------------------------//
new gTeam[MAX_PLAYERS];
//----------------------------------------------------------------------------//
SetPlayerTeamFromClass(playerid, classid)
{
	if (classid == 0)
	{
		gTeam[playerid] = TEAM_POLICE;
	}
	else if (classid == 1)
	{
		gTeam[playerid] = TEAM_EMERGENCY;
	}
	else if (classid == 2)
	{
		gTeam[playerid] = TEAM_ADMINS;
	}
	else if (classid == 3)
	{
		gTeam[playerid] = TEAM_HOMELAND_SECURITY;
	}
	else if (classid == 4)
	{
		gTeam[playerid] = TEAM_DESERT_EAGLES;
	}
	else if (classid == 5)
	{
		gTeam[playerid] = TEAM_CIVILIAN;
	}
	else if (classid == 6)
	{
		gTeam[playerid] = TEAM_CRIMINAL;
	}
}
//----------------------------------------------------------------------------//
SetPlayerToTeamColor(playerid)
{
	if (gTeam[playerid] == TEAM_POLICE)
	{
		SetPlayerColor(playerid,0x33CCFFAA);//Light Blue
	}
	else if (gTeam[playerid] == TEAM_EMERGENCY)
	{
		SetPlayerColor(playerid,0x33FF33AA);//Green
	}
	else if (gTeam[playerid] == TEAM_ADMINS)
	{
		SetPlayerColor(playerid,0xFFFFFFAA);//White
	}
	else if (gTeam[playerid] == TEAM_HOMELAND_SECURITY)
	{
		SetPlayerColor(playerid,0x33CCFFAA);
	}
	else if (gTeam[playerid] == TEAM_DESERT_EAGLES)
	{
		SetPlayerColor(playerid,0x33FF33AA);//Green2
	}
	else if (gTeam[playerid] == TEAM_CIVILIAN)
	{
		SetPlayerColor(playerid,0xFFFF00AA);//Yellow
	}
    else if (gTeam[playerid] == TEAM_CRIMINAL)
	{
		SetPlayerColor(playerid,0xFF0000AA);//Red
	}
}
if there is problem plz tell me Is this team right
Reply


Messages In This Thread
Team Colour Not Working Help :( - by vakhtang - 15.08.2010, 14:01
Re: Team Colour Not Working Help :( - by Redgie - 15.08.2010, 14:10
Re: Team Colour Not Working Help :( - by vakhtang - 15.08.2010, 14:11
Re: Team Colour Not Working Help :( - by Ash. - 15.08.2010, 14:14
Re: Team Colour Not Working Help :( - by Redgie - 15.08.2010, 14:16
Re: Team Colour Not Working Help :( - by vakhtang - 15.08.2010, 14:23
Re: Team Colour Not Working Help :( - by Ash. - 15.08.2010, 14:26

Forum Jump:


Users browsing this thread: 1 Guest(s)