31.08.2011, 13:53
Hi, I got a major problem in my GM with my colors...
so I have 4 colors that I use for teams:
Green is drivers
Blue is cops
Orange is bandits
Grey is unspawned...
I use this colors for many functions, the players map icon, gangzones, teamchat, sendclientmessages... etc.
And also for SetPlayerColor
Instead of a spawn menu, I made a map, where a player has to chose a pickup, if they enter that pickup they will be set to their team.
so under that OnPlayerPickup
I set the player's color
however if I put COLOR_SEXYGREEN in gangzones, clientmessages and more, it will become green, however if I use COLOR_SEXYGREEN in SetPlayerColor the player's color will turn blue -.-
I have the same problem with the cops, they are ROYALBLUE, but they turn green, their gangzones and clientmessages will be blue, but the players' name will be Green...
anyhelp?
note, there is not an option that I used SetPlayerColor twice for one team with 2 different colors, I only use SetPlayerColor 4 times, for each team one time...
so I have 4 colors that I use for teams:
pawn Код:
#define COLOR_ROYALBLUE 0x4169FFAA
#define COLOR_SEXYGREEN 0x18F000AA
#define COLOR_ORANGE 0xFFA500AA
#define COLOR_GREY 0xAFAFAFAA
Blue is cops
Orange is bandits
Grey is unspawned...
I use this colors for many functions, the players map icon, gangzones, teamchat, sendclientmessages... etc.
And also for SetPlayerColor
Instead of a spawn menu, I made a map, where a player has to chose a pickup, if they enter that pickup they will be set to their team.
so under that OnPlayerPickup
I set the player's color
however if I put COLOR_SEXYGREEN in gangzones, clientmessages and more, it will become green, however if I use COLOR_SEXYGREEN in SetPlayerColor the player's color will turn blue -.-
I have the same problem with the cops, they are ROYALBLUE, but they turn green, their gangzones and clientmessages will be blue, but the players' name will be Green...
anyhelp?
note, there is not an option that I used SetPlayerColor twice for one team with 2 different colors, I only use SetPlayerColor 4 times, for each team one time...