01.04.2009, 21:05
public OnPlayerRequestSpawn(playerid)
{
if (gTeam[playerid] == TEAM_ARMY)
{
SetPlayerColor(playerid, TEAM_ARMY_COLOR);
}
else if (gTeam[playerid] == TEAM_GROVE)
{
SetPlayerColor(playerid,TEAM_GROVE_COLOR);
}
else if (gTeam[playerid] == TEAM_BALLAS)
{
SetPlayerColor(playerid, TEAM_BALLAS_COLOR);
}
else if (gTeam[playerid] == TEAM_VAGOS)
{
SetPlayerColor(playerid, TEAM_VAGOS_COLOR);
}
return 1;
}
public SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_ARMY)
{
SetPlayerColor(playerid, TEAM_ARMY_COLOR);
}
else if (gTeam[playerid] == TEAM_GROVE)
{
SetPlayerColor(playerid,TEAM_GROVE_COLOR);
}
else if (gTeam[playerid] == TEAM_BALLAS)
{
SetPlayerColor(playerid, TEAM_BALLAS_COLOR);
}
else if (gTeam[playerid] == TEAM_VAGOS)
{
SetPlayerColor(playerid, TEAM_VAGOS_COLOR);
}
return 1;
}
public SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 0 || classid == 1 || classid == 2 )
{
gTeam[playerid] = TEAM_GROVE;
}
else if (classid == 3 || classid == 4 || classid == 5 )
{
gTeam[playerid] = TEAM_BALLAS;
}
else if (classid == 6 || classid == 7 || classid == 8 )
{
gTeam[playerid] = TEAM_VAGOS;
}
else if (classid == 9 || classid == 10 )
{
gTeam[playerid] = TEAM_ARMY;
}
return 1;
}
It doesnt show any error, but color is every time RED,(it is suposded to be army color), and i want every gang to have color for itself.....
{
if (gTeam[playerid] == TEAM_ARMY)
{
SetPlayerColor(playerid, TEAM_ARMY_COLOR);
}
else if (gTeam[playerid] == TEAM_GROVE)
{
SetPlayerColor(playerid,TEAM_GROVE_COLOR);
}
else if (gTeam[playerid] == TEAM_BALLAS)
{
SetPlayerColor(playerid, TEAM_BALLAS_COLOR);
}
else if (gTeam[playerid] == TEAM_VAGOS)
{
SetPlayerColor(playerid, TEAM_VAGOS_COLOR);
}
return 1;
}
public SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_ARMY)
{
SetPlayerColor(playerid, TEAM_ARMY_COLOR);
}
else if (gTeam[playerid] == TEAM_GROVE)
{
SetPlayerColor(playerid,TEAM_GROVE_COLOR);
}
else if (gTeam[playerid] == TEAM_BALLAS)
{
SetPlayerColor(playerid, TEAM_BALLAS_COLOR);
}
else if (gTeam[playerid] == TEAM_VAGOS)
{
SetPlayerColor(playerid, TEAM_VAGOS_COLOR);
}
return 1;
}
public SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 0 || classid == 1 || classid == 2 )
{
gTeam[playerid] = TEAM_GROVE;
}
else if (classid == 3 || classid == 4 || classid == 5 )
{
gTeam[playerid] = TEAM_BALLAS;
}
else if (classid == 6 || classid == 7 || classid == 8 )
{
gTeam[playerid] = TEAM_VAGOS;
}
else if (classid == 9 || classid == 10 )
{
gTeam[playerid] = TEAM_ARMY;
}
return 1;
}
It doesnt show any error, but color is every time RED,(it is suposded to be army color), and i want every gang to have color for itself.....

