06.07.2010, 09:04
Code:
if(PlayerInfo[playerid][pLeader] < 18 || PlayerInfo[playerid][pLeader] < 18) { if(PlayerInfo[playerid][pRank] == 27) { label2[playerid] = Create3DTextLabel("Rank: Fleet Admiral",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label2[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 26) { label3[playerid] = Create3DTextLabel("Rank: Vice Admiral",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label3[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 25) { label4[playerid] = Create3DTextLabel("Rank: Captain",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label4[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 24) { label5[playerid] = Create3DTextLabel("Rank: Commander",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label5[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 23) { label6[playerid] = Create3DTextLabel("Rank: Captain",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label6[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 22) { label7[playerid] = Create3DTextLabel("Rank: Lieutenant Commander",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label7[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 21) { label8[playerid] = Create3DTextLabel("Rank: Lieutenant",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label8[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 20) { label9[playerid] = Create3DTextLabel("Rank: Lieutenant Junior Grade",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label9[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 19) { label10[playerid] = Create3DTextLabel("Rank: Ensign",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label10[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 18) { label11[playerid] = Create3DTextLabel("Rank: Chief Warrant Officer 5",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label11[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 17) { label12[playerid] = Create3DTextLabel("Rank: Chief Warrant Officer 4",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label12[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 16) { label13[playerid] = Create3DTextLabel("Rank: Chief Warrant Officer 3",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label13[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 15) { label14[playerid] = Create3DTextLabel("Rank: Chief Warrant Officer 2",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label14[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 14) { label15[playerid] = Create3DTextLabel("Rank: Warrant Officer",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label15[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 13) { label16[playerid] = Create3DTextLabel("Rank: Master Chief Petty Officer of the Navy",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label16[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 12) { label17[playerid] = Create3DTextLabel("Rank: Master Chief Petty Officer of the Coast Guard",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label17[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 11) { label18[playerid] = Create3DTextLabel("Rank: Force Master Chief Petty Officer",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label18[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 10) { label19[playerid] = Create3DTextLabel("Rank: Fleet Master Chief Petty Officer",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label19[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 9) { label20[playerid] = Create3DTextLabel("Rank: Command Master Chief Petty Officer",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label20[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 8) { label21[playerid] = Create3DTextLabel("Rank: Master Chief Petty Officer",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label21[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 7) { label22[playerid] = Create3DTextLabel("Rank: Ensign",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label22[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 6) { label23[playerid] = Create3DTextLabel("Rank: Senior Chief Petty Officer",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label23[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 5) { label24[playerid] = Create3DTextLabel("Rank: Chief Petty Officer",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label24[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 4) { label25[playerid] = Create3DTextLabel("Rank: Petty Officer 1st Class",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label25[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 3) { label26[playerid] = Create3DTextLabel("Rank: Petty Officer 2nd Class",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label26[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 2) { label27[playerid] = Create3DTextLabel("Rank: Petty Officer 3rd Class",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label27[playerid], playerid, 0.0, 0.0, 0.7); } else if(PlayerInfo[playerid][pRank] == 1) { label28[playerid] = Create3DTextLabel("Rank: Seaman",0xEB000FFF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label28[playerid], playerid, 0.0, 0.0, 0.7); } }