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

I made 3 gangs, and now i made colors and after it i get in game and then i chossed some gang i had color what i wanted, but after i type /kill and press F4 to change skin and i change it to other gang skin , it has color of the gang what i had before.




HELP
Reply
#2

What do you wan't us to do without any code to see?
Reply
#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
#4

You have to define the colors

#define TEAM_COLOR_GROVE 0x00ff0000

Get a whole list of colors here - http://pastebin.com/f7fa3eecd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)