05.08.2009, 16:07
This is was i've got:
But team Pilot, Toreneno, chicken, nang and army keep getting orange, the workers color. And if i change the workers color to YELLOW, the keep getting the color yellow etc...Can someone please tell me what i've did wrong?
Quote:
#define COLOR_GRAY 0xAFAFAFAA #define COLOR_GREEN 0x00FF00AA #define COLOR_RED 0xAA3333AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_PINK 0xFF66FFAA #define COLOR_BLUE 0x0000BBAA #define COLOR_LIGHTBLUE 0x33CCFFAA #define COLOR_DARKRED 0x660000AA #define COLOR_ORANGE 0xFF9900AA #define COLOR_BEGE 0xFFA97FFF #define COLOR_BROWN 0x804000FF #define COLOR_LGREEN 0x3C9D6DFF #define COLOR_LRED 0xFF6C6CFF #define COLOR_PURPLE 0xFF0080FF |
Quote:
#define TEAM_WORKER 0 #define TEAM_PIMP 1 #define TEAM_GOLFER 2 #define TEAM_TRIAD 3 #define TEAM_MECHANIC 4 #define TEAM_BIKER 5 #define TEAM_MEDIC 6 #define TEAM_SWAT 7 #define TEAM_HICK 8 #define TEAM_PILOT 9 #define TEAM_TORENO 10 #define TEAM_NANG 11 #define TEAM_CHICKEN 12 #define TEAM_ARMY 13 |
Quote:
if(gTeam[playerid] == TEAM_WORKER) { SetPlayerColor(playerid,COLOR_ORANGE); // Orange } else if(gTeam[playerid] == TEAM_PIMP) { SetPlayerColor(playerid,COLOR_RED); // Red } else if(gTeam[playerid] == TEAM_GOLFER) { SetPlayerColor(playerid,COLOR_DARKRED); // Darkred } else if(gTeam[playerid] == TEAM_TRIAD) { SetPlayerColor(playerid,COLOR_PINK); // Pink } else if(gTeam[playerid] == TEAM_MECHANIC) { SetPlayerColor(playerid,COLOR_LIGHTBLUE); // LightBlue } else if(gTeam[playerid] == TEAM_BIKER) { SetPlayerColor(playerid,COLOR_BLUE); // Blue } else if(gTeam[playerid] == TEAM_MEDIC) { SetPlayerColor(playerid,COLOR_PURPLE); // Purple } else if(gTeam[playerid] == TEAM_SWAT) { SetPlayerColor(playerid,COLOR_LGREEN); // LGreen } else if(gTeam[playerid] == TEAM_HICK) { SetPlayerColor(playerid,COLOR_BROWN); // Brown } else if(gTeam[playerid] == TEAM_PILOT) { SetPlayerColor(playerid,COLOR_GRAY); // Gray } else if(gTeam[playerid] == TEAM_TORENO) { SetPlayerColor(playerid,COLOR_BEGE); // Bege } else if(gTeam[playerid] == TEAM_NANG) { SetPlayerColor(playerid,COLOR_LRED); // lRed } else if(gTeam[playerid] == TEAM_CHICKEN) { SetPlayerColor(playerid,COLOR_YELLOW); // Yellow } else if(gTeam[playerid] == TEAM_ARMY) { SetPlayerColor(playerid,COLOR_GREEN); // Green } |