12.08.2011, 18:02
OMG, like the title says!
I did this:
And:
When I see a player on the map, he's green! EVERY PLAYER!
Also, I got the same problem in the CHAT! When somebody says something, it is only green, too!
I did this:
PHP код:
#define TEAM_GROVE_COLOR 0x00FF00AA // Bright Green (in RGBA format)
#define TEAM_BALLA_COLOR 0xFF00FFAA // Bright Purple
#define TEAM_VAGOS_COLOR 0xFFFF00AA // Yellow
PHP код:
SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 0)
{
gTeam[playerid] = BALLA;
}
else if(classid == 1)
{
gTeam[playerid] = GROVE;
}
else if(classid == 2)
{
gTeam[playerid] = VAGOS;
}
}
SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == GROVE)
{
SetPlayerColor(playerid, TEAM_GROVE_COLOR);
}
else if (gTeam[playerid] == BALLA)
{
SetPlayerColor(playerid, TEAM_BALLA_COLOR);
}
else if (gTeam[playerid] == VAGOS)
{
SetPlayerColor(playerid, TEAM_VAGOS_COLOR);
}
}
Also, I got the same problem in the CHAT! When somebody says something, it is only green, too!