3dRankTextLabelUpdate
#6

I think that it can solve your problem:

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
Reply


Messages In This Thread
3dRankTextLabelUpdate - by BlackWolf120 - 11.02.2011, 18:42
Re: 3dRankTextLabelUpdate - by BlackWolf120 - 12.02.2011, 11:06
Re: 3dRankTextLabelUpdate - by xxmitsu - 12.02.2011, 11:20
Re: 3dRankTextLabelUpdate - by BlackWolf120 - 12.02.2011, 11:26
Re: 3dRankTextLabelUpdate - by xxmitsu - 12.02.2011, 11:43
Re: 3dRankTextLabelUpdate - by rjjj - 12.02.2011, 11:45
Re: 3dRankTextLabelUpdate - by BlackWolf120 - 12.02.2011, 12:44

Forum Jump:


Users browsing this thread: 1 Guest(s)