08.08.2011, 03:00
I have defined the colours:
I have set the teams on id check:
Here is the colour command:
I don't get any errors but the colour system doesn't work. I always end up the same colour, even on different teams... What's wrong with the script? Please help!
Код:
#define TEAM_GROVE_COLOR 0x00FF00AA #define TEAM_BALLA_COLOR 0xFF00FFAA
Код:
SetPlayerTeamFromClass(playerid, classid)
{
if (classid >= 105)
{
SetPlayerTeam(playerid,GROVE);
}
else
{
SetPlayerTeam(playerid,BALLAS);
}
}
Код:
SetPlayerToTeamColor(playerid)
{
if (GetPlayerTeam(playerid) == GROVE)
{
SetPlayerColor(playerid, TEAM_GROVE_COLOR);
}
else if (GetPlayerTeam(playerid) == BALLAS)
{
SetPlayerColor(playerid, TEAM_BALLA_COLOR);
}
}




