20.09.2015, 18:58
(
Последний раз редактировалось zPawnu; 22.09.2015 в 19:16.
Причина: Title
)
vejena
#define NAME_DRAWDISTANCE 5.0
//====================ANTINAMETAG==================== new string[128]; new antintName[24]; GetPlayerName (playerid, antintName, sizeof(antintName)); format(string, sizeof(string), "%s [%d]",antintName,playerid); NameTag[playerid] = Create3DTextLabel(string, cornome[playerid], 0, 0, 0, NAME_DRAWDISTANCE, 0, 1 ); Attach3DTextLabelToPlayer(NameTag[playerid], playerid, 0.0, 0.0, 0.2); //====================ANTINAMETAG====================
forward SetPlayerToTeamColor(playerid); public SetPlayerToTeamColor(playerid) { if(org[playerid] == 1) { cornome[playerid] = COLOR_COP; SetPlayerColor(playerid, COLOR_COP); } else if(org[playerid] == 2) { cornome[playerid] = COLOR_WHITE; SetPlayerColor(playerid, COLOR_WHITE); } else if(org[playerid] == 3) { cornome[playerid] = COLOR_SWAT; SetPlayerColor(playerid, COLOR_SWAT); } else if(org[playerid] == 4) { cornome[playerid] = COLOR_GN; SetPlayerColor(playerid, COLOR_GN); } else if(org[playerid] == 5) { cornome[playerid] = COLOR_PARAMEDIC; SetPlayerColor(playerid, COLOR_PARAMEDIC); } else if(org[playerid] == 0 || org[playerid] == 6 || org[playerid] == 7 || org[playerid] == 8 || org[playerid] == 9) { if(stealth[playerid] == true) { cornome[playerid] = COR_INVISIVEL; SetPlayerColor(playerid, COR_INVISIVEL); } else if(stealuniform[playerid] == true) { cornome[playerid] = COLOR_COP; SetPlayerColor(playerid, COLOR_COP); } else if(wanted[playerid] == 0) { cornome[playerid] = COLOR_WHITE; SetPlayerColor(playerid, COLOR_WHITE); } else if(wanted[playerid] >= 1 && wanted[playerid] <= 10) { cornome[playerid] = COLOR_YELLOW; SetPlayerColor(playerid, COLOR_YELLOW); } else if(wanted[playerid] >= 11 && wanted[playerid] <= 30) { cornome[playerid] = COLOR_ORANGE; SetPlayerColor(playerid, COLOR_ORANGE); } else if(wanted[playerid] >= 31 && wanted[playerid] <= 50) { cornome[playerid] = COLOR_DARKORANGE; SetPlayerColor(playerid, COLOR_DARKORANGE); } else if(wanted[playerid] >= 51 && wanted[playerid] <= 99) { cornome[playerid] = COLOR_RED; SetPlayerColor(playerid, COLOR_RED); } else if(wanted[playerid] >= 100) { cornome[playerid] = COLOR_DARKGRAY; SetPlayerColor(playerid, COLOR_DARKGRAY); } } else //caso dк algum bug { cornome[playerid] = COLOR_WHITE; SetPlayerColor(playerid, COLOR_WHITE); } }