Dont know how to make color, help me?
#3

Quote:
Originally Posted by Mikep
What do you wan't us to do without any code to see?
public OnPlayerRequestSpawn(playerid)
{
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_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;
}
return 1;
}















REPATING, i have colors but when i want to change the class, i change it and i have the color from the gang what i chossed first.
Reply


Messages In This Thread
Dont know how to make color, help me? - by Frankox - 01.04.2009, 15:55
Re: Dont know how to make color, help me? - by Mikep - 01.04.2009, 16:25
Re: Dont know how to make color, help me? - by Frankox - 01.04.2009, 16:29
Re: Dont know how to make color, help me? - by Crake^ - 01.04.2009, 16:32

Forum Jump:


Users browsing this thread: 1 Guest(s)