14.10.2014, 16:08
Anyone help me how to make this SetPlayerColor to Invisible map Blip
Код:
#define COLOR_TWYELLOW 0xFFFF00AA #define COLOR_TWPINK 0xE75480AA #define COLOR_TWRED 0xFF0000AA #define COLOR_TWBROWN 0x654321AA #define COLOR_TWGRAY 0x808080AA #define COLOR_TWOLIVE 0x808000AA #define COLOR_TWPURPLE 0x800080AA #define COLOR_TWTAN 0xD2B48CAA #define COLOR_TWAQUA 0x00FFFFAA #define COLOR_TWORANGE 0xFF8C00AA #define COLOR_TWAZURE 0x007FFFAA #define COLOR_TWGREEN 0x008000AA #define COLOR_TWBLUE 0x0000FFAA #define COLOR_TWBLACK 0x000000AA
Код:
stock SetPlayerToGangColor(playerid) { if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor] != 1) { SetPlayerColor(playerid, COLOR_TWBLACK); } else if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor] != 2) { SetPlayerColor(playerid, COLOR_TWWHITE); } else if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor] != 3) { SetPlayerColor(playerid, COLOR_TWRED); } else if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor] != 4) { SetPlayerColor(playerid, COLOR_TWBLUE); } else if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor] != 5) { SetPlayerColor(playerid, COLOR_TWYELLOW); } else if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor] != 6) { SetPlayerColor(playerid, COLOR_TWPURPLE); } else if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor] != 7) { SetPlayerColor(playerid, COLOR_TWPINK); } else if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor] != 8) { SetPlayerColor(playerid, COLOR_TWBROWN); } else if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor] != 9) { SetPlayerColor(playerid, COLOR_TWGRAY); } else if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor] != 10) { SetPlayerColor(playerid, COLOR_TWOLIVE); } else if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor] != 11) { SetPlayerColor(playerid, COLOR_TWTAN); } else if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor] != 12) { SetPlayerColor(playerid, COLOR_TWAQUA); } else if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor] != 13) { SetPlayerColor(playerid, COLOR_TWORANGE); } else if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor] != 14) { SetPlayerColor(playerid, COLOR_TWAZURE); } else if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyColor] != 15) { SetPlayerColor(playerid, COLOR_TWGREEN); } else { SetPlayerColor(playerid, TEAM_HIT_COLOR); return 1; } return 1; }