12.02.2011, 11:45
I think that it can solve your problem:
I hope that i have helped
pawn Код:
stock Add3DTextLabelToPlayer(playerid)
{
ranklabelCTU[playerid] = Create3DTextLabel("{1464F4}CTU",0xF97804FF,30.0,40.0,50.0, 3.0, 0, 0);
ranklabelSNAKES[playerid] = Create3DTextLabel("{CC3232}Coral Snake",0xF97804FF,30.0,40.0,50.0,3.0, 0, 0);
switch (gTeam[playerid])
{
case 1: //police
{
Attach3DTextLabelToPlayer(ranklabelCTU[playerid], playerid, 0.0, 0.0, 0.5);
new labelstring[50];
format(labelstring, sizeof(labelstring), "{1464F4}CTU {20B2AA}%d", RankName[pRank[playerid]]);
Update3DTextLabelText(ranklabelCTU[playerid], 0xF97804FF, labelstring);
}
case 2:
{
Attach3DTextLabelToPlayer(ranklabelSNAKES[playerid], playerid, 0.0, 0.0, 0.5);
new labelstring[50];
format(labelstring, sizeof(labelstring), "{CC3232}Coral Snake {C73F17}%d", RankName[pRank[playerid]]);
Update3DTextLabelText(ranklabelSNAKES[playerid], 0xF97804FF, labelstring);
}
}
return true;
}
I hope that i have helped